adjacency_matrix: Adjacency matrix

Description Usage Arguments Details Value Examples

View source: R/adjacency_matrix.R

Description

Create adjacency matrix of HPO child-parent relationships

Usage

1
adjacency_matrix(pheno_ids, hpo, as_dataframe = FALSE)

Arguments

pheno_ids

a character vector of HPO Ids

hpo

ontology object (available in ontologyIndex package)

as_dataframe

can return matrix or df <bool>

Details

It may be possible to use a hash table for ggnetwork, which may be more efficent than the matrix in a shiny app ?

Value

adjacency matrix

Examples

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)

ovrhuman/HPOExplorer documentation built on Dec. 22, 2021, 5:21 a.m.