Description Usage Arguments Details Value Examples
View source: R/adjacency_matrix.R
Create adjacency matrix of HPO child-parent relationships
1 | adjacency_matrix(pheno_ids, hpo, as_dataframe = FALSE)
|
pheno_ids |
a character vector of HPO Ids |
hpo |
ontology object (available in ontologyIndex package) |
as_dataframe |
can return matrix or df <bool> |
It may be possible to use a hash table for ggnetwork, which may be more efficent than the matrix in a shiny app ?
adjacency matrix
1 2 3 4 5 | ## Not run:
pheno_ids <- c("HP:000001","HP:000002")
adjacency_matrix(pheno_ids,hpo,as_dataframe=FALSE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.