Learn R Programming

rols (version 1.8.0)

parents: Returns the parent(s) of a term.

Description

This function returns the parent term(s) of term termId in ontology ontologyName. The function sends a getTermParentsRequest SOAP message and retrieves and parses the getTermParentsResponse. The original corresponging interface is public Map getTermParents(String termId, String ontologyName)

Usage

parents(termId = termId, ontologyName = ontologyName, simplify = TRUE)

Arguments

termId
A character with a valid ontology identifier.
ontologyName
A character with the name of a valid ontology name.
simplify
A logical indicating whether the S4 Map instance should be simplified. Default is TRUE.

Value

A named character if simplify is TRUE. An instance of class Map otherwise.

Examples

Run this code
parents("GO:0005802", "GO")

Run the code above in your browser using DataLab