get_pseudo_adjacency_matrix: Get an adjacency matrix for a set of ontological terms

Description Usage Arguments Value See Also Examples

View source: R/sets.R

Description

Get an adjacency matrix for a set of ontological terms

Usage

1

Arguments

ontology

ontology_index object

terms

Character vector of ontological terms

Value

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 within terms.

See Also

get_adjacency_matrix

Examples

1
2
3
library(ontologyIndex)
data(hpo)
get_pseudo_adjacency_matrix(hpo, c("HP:0000118", "HP:0001873", "HP:0011877"))

ontologyPlot documentation built on May 29, 2017, 5:52 p.m.