get_term_definition: Get term definition

Description Usage Arguments Value Examples

View source: R/get_term_definition.R

Description

This function accesses the HPO API to get a description/ definition of an HPO term. If a line_length > 0 is passed to the funtion, it will add newlines every nth word. This can be useful when displaying the description in plots with limited space.

Usage

1
get_term_definition(ontologyId, line_length = FALSE)

Arguments

ontologyId

A HPO term Id (e.g. "HP:0000002") <string>

line_length

The number of desired words per line <int>

Value

A disease definition <string>

Examples

1
2
3
4
5
## Not run: 
ontologyId = "HP:0000002"
get_term_definition(ontologyId)

## End(Not run)

ovrhuman/HPOExplorer documentation built on Dec. 22, 2021, 5:21 a.m.