Learn R Programming

hpoPlot (version 1.0)

get.descendants: Get Descendants

Description

Get all terms which descend from a given term in the HPO.

Usage

get.descendants(hpo.terms, ancestor)

Arguments

hpo.terms
An R-Object representing the HPO, as returned by get.hpo.terms.
ancestor
Single HPO term

Value

  • Character vector of HPO terms which descend from `ancestor'.

Examples

Run this code
data(hpo)

	types.of.headache <- get.descendants(
		hpo.terms,
		hpo.terms$id[hpo.terms$name == "Headache"]
	)

	print(hpo.terms$name[types.of.headache])

Run the code above in your browser using DataLab