get_adjacency_matrix | R Documentation |
Get an adjacency matrix for a set of ontological terms
get_adjacency_matrix(ontology, terms)
ontology |
|
terms |
Character vector of ontological terms |
A logical matrix representing the adjacency matrix of terms
based on the directed acyclic graph of ontology
. A TRUE
entry means the term correspnding to the column is a parent of the row term in ontology
.
get_pseudo_adjacency_matrix
library(ontologyIndex)
data(hpo)
get_adjacency_matrix(hpo, c("HP:0000118", "HP:0001873", "HP:0011877"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.