Learn R Programming

rols (version 1.8.0)

rootId: Retuns the root identifiers of an ontology

Description

This function returns root identifier(s) for a given valid ontology name. It sends a getRootTermsRequest SOAP message and retrieves and parses the getRootTermsResponse. The original interface is public Map getRootTerms(String ontologyName).

Usage

rootId(ontologyName, simplify = TRUE)

Arguments

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.

See Also

Other ols-queries: allIds; isIdObsolete; olsQuery; olsVersion; ontologies; ontologyLoadDate; ontologyNames; termMetadata; termXrefs; term

Examples

Run this code
rootId("GO")
rootId("NEWT")
rootId("MS")

Run the code above in your browser using DataLab