Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

GOTerms-class

Class "GOTerms"


Description

A class to represent Gene Ontology nodes

Objects from the Class

Objects can be created by calls of the form GOTerms(GOId, term, ontology, definition, synonym, secondary). GOId, term, and ontology are required.

Slots

GOID:

Object of class "character" A character string for the GO id of a primary node.

Term:

Object of class "character" A character string that defines the role of gene product corresponding to the primary GO id.

Ontology:

Object of class "character" Gene Ontology category. Can be MF - molecular function, CC - cellular component, or BP - biological process.

Definition:

Object of class "character" Further definition of the ontology of the primary GO id.

Synonym:

Object of class "character" other ontology terms that are considered to be synonymous to the primary term attached to the GO id (e.g. "type I programmed cell death" is a synonym of "apoptosis"). 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" GO ids that are secondary to the primary GO id as results of merging GO terms so that One GO id becomes the primary GO id and the rest become the secondary.

Methods

GOID

signature(object = "GOTerms"): The get method for slot GOID.

Term

signature(object = "GOTerms"): The get method for slot Term.

Ontology

signature(object = "GOTerms"): The get method for slot Ontology.

Definition

signature(object = "GOTerms"): The get method for slot Definition.

Synonym

signature(object = "GOTerms"): The get method for slot Synonym.

Secondary

signature(object = "GOTerms"): The get method for slot Secondary.

show

signature(x = "GOTerms"): The method for pretty print.

Note

GOTerms objects are used to represent primary GO nodes in the SQLite-based annotation data package GO.db

References

See Also

makeGOGraph shows how to make GO mappings into graphNEL objects.

Examples

gonode <- new("GOTerms", GOID="GO:1234567", Term="Test", Ontology="MF",
                          Definition="just for testing")
  GOID(gonode)
  Term(gonode)
  Ontology(gonode)

  ##Or you can just use these methods on a GOTermsAnnDbBimap
## Not run: ##I want to show an ex., but don't want to require GO.db
  require(GO.db)
  FirstTenGOBimap <- GOTERM[1:10] ##grab the 1st ten
  Term(FirstTenGOBimap)

  ##Or you can just use GO IDs directly
  ids = keys(FirstTenGOBimap)
  Term(ids)

## End(Not run)

AnnotationDbi

Manipulation of SQLite-based annotations in Bioconductor

v1.52.0
Artistic-2.0
Authors
Hervé Pagès, Marc Carlson, Seth Falcon, Nianhua Li
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.