Learn R Programming

hpoPlot (version 2.2)

get.ancestors: Get set of all ancestors of set of terms

Description

Get set of all ancestors of set of terms

Usage

get.ancestors(hpo.terms, terms)

Arguments

hpo.terms
R-Object representation of HPO
terms
Character vector of HPO terms

Value

  • Character vector of all HPO terms which are an ancestor of at least one term in terms, including the terms themselves

See Also

link{get.descendants}

Examples

Run this code
data(hpo.terms)
get.ancestors(hpo.terms, c("HP:0001873", "HP:0011877"))

Run the code above in your browser using DataLab