Learn R Programming

rols (version 1.12.0)

termMetadata: Retuns an identifier's metadata

Description

This function returns the metadata (definition and synonyms) for a specific ontology identifier. The term for that identifier can be retrieved with term. The function sends a getTermMetadataRequest SOAP message and retrieves and parses the getTermMetadataResponse. The original interface is public Map getTermMetadata(String termId, String ontologyName).

Usage

termMetadata(termId, 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

Am S3 instance of class termMetadata (for pretty printing) and character if simplify is TRUE. An instance of class Map otherwise.

See Also

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

Examples

Run this code
termMetadata("GO:0005794", "GO")
termMetadata("210797", "NEWT")

Run the code above in your browser using DataLab