Learn R Programming

hpoPlot (version 1.0)

get.node.friendly.long.names: Get Node-Friendly Long Names

Description

Get the clinical names of HPO terms, shortened, where possible, to exclude phrases like `Abnormality of' and split onto several lines where necessary so they fit neatly onto nodes

Usage

get.node.friendly.long.names(hpo.terms, terms)

Arguments

hpo.terms
An R-Object representing the HPO, as returned by get.hpo.terms.
terms
Character vector of HPO terms.

Value

  • Character vector of descriptions

Examples

Run this code
data(hpo)

	body.height <- hpo.terms$id[hpo.terms$name == "Abnormality of body height"]

	print(
		paste(
			hpo.terms$name[hpo.terms$id == body.height],
			"-> ",
			get.node.friendly.long.names(
				hpo.terms,
				body.height
			),
			sep=""
		)
	)

Run the code above in your browser using DataLab