Description Objects from the Class Slots Methods Note Examples
A class to represent Disease Ontology nodes
Objects can be created by calls of the form
ONTTerms(ID, term, synonym, secondary)
.
ID, term are required.
ID
:Object of class "character"
A character
string for the ontology id of a primary node.
Definition
:Object of class "character"
A character
string for the ontology Definition of a primary node.
Ontology
:Object of class "character"
A character
string for the ontology name of a primary node.
Term
:Object of class "character"
A
character string that defines the role of gene product
corresponding to the primary ontology id.
Synonym
:Object of class "character"
other
ontology terms that are considered to be synonymous to the primary
term attached to the ontology id. Synonymous here can mean that the
synonym is an exact synonym of the primary term, is related to the
primary term, is broader than the primary term, is more precise
than the primary term, or name is related to the term, but is not
exact, broader or narrower.
Secondary
:Object of class "character"
ontology ids
that are secondary to the primary ontology id as results of merging ontology
terms so that One ontology id becomes the primary ontology id and the rest
become the secondary.
signature(object = "ONTTerms")
:
The get method for slot ID.
signature(object = "ONTTerms")
:
The get method for slot Term.
signature(object = "ONTTerms")
:
The get method for slot Term.
signature(object = "ONTTerms")
:
The get method for slot Term.
signature(object = "ONTTerms")
:
The get method for slot Synonym.
signature(object = "ONTTerms")
:
The get method for slot Secondary.
signature(x = "ONTTerms")
:
The method for pretty print.
ONTTerms objects are used to represent primary ontology nodes in the SQLite-based annotation data package topOnto.xxx.db
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | ONTnode <- new("ONTTerms", ID="DOID:1234567", Term="Test", Ontology="Test", Definition="Test")
## Not run: ##I want to show an ex., but don't want to require topOnto.xxx.db
ID(ONTnode)
Term(ONTnode)
##Or you can just use these methods on a ONTTermsAnnDbBimap
#require(DO.db)
FirstTenBimap <- ONTTERM[1:10] ##grab the 1st ten
Term(FirstTenBimap)
##Or you can just use IDs directly
ids = keys(FirstTenBimap)
Term(ids)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.