Skip to content

Commit 67942ad

Browse files
committed
Add tag version to vignette
1 parent df77155 commit 67942ad

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

vignettes/MSTExplorer.Rmd

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ vignette: >
1212

1313
```{r setup}
1414
library(MSTExplorer)
15+
16+
# Set HPO version ID for reproducibility
17+
tag <- "v2024-02-08"
1518
```
1619

1720
# Introduction
@@ -38,7 +41,7 @@ The MSTExplorer package requires the gene data to be in a particular format. It
3841
Now we will get a dataset like this from the HPO.
3942

4043
```{r get_HPO_data}
41-
gene_data <- HPOExplorer::load_phenotype_to_genes()
44+
gene_data <- HPOExplorer::load_phenotype_to_genes(tag=tag)
4245
knitr::kable(head(gene_data))
4346
```
4447

@@ -168,7 +171,8 @@ So far, we've iterated over gene list grouped by phenotypes.
168171
But we can also do this at the level of diseases (which are composed of combinations of phenotypes).
169172

170173
```{r}
171-
gene_data <- HPOExplorer::load_phenotype_to_genes("genes_to_phenotype.txt")
174+
gene_data <- HPOExplorer::load_phenotype_to_genes("genes_to_phenotype.txt",
175+
tag = tag)
172176
#### Filter only to those with >=4 genes ####
173177
gene_counts <- gene_data[,list(genes=length(unique(gene_symbol))),
174178
by="disease_id"][genes>=4]

0 commit comments

Comments
 (0)