get.term.descendancy.matrix: Get logical descendancy matrix for set of terms

Description Usage Arguments Value Examples

Description

Get logical descendancy matrix for set of terms

Usage

1
2

Arguments

hpo.terms

R-Object representation of HPO

terms

Character vector of HPO terms

rows

Rows for resultant matrix (defaults to terms)

cols

Cols for resultant matrix (defaults to terms)

Value

A logical descendancy matrix of terms by terms based on DAG structure of HPO, where by the row term is an ancestor of the column term if result[row.term,col.term] == TRUE

Examples

1
2
data(hpo.terms)
get.term.descendancy.matrix(hpo.terms, c("HP:0001873", "HP:0011877"))

Example output

           HP:0001873 HP:0011877
HP:0001873      FALSE      FALSE
HP:0011877      FALSE      FALSE

hpoPlot documentation built on May 2, 2019, 5:52 a.m.