Documentation ¶
Overview ¶
Package geneontology contains functions for reading and parsing Gene Ontology (GO) files.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GOannotation ¶
GOannotation contains information about each GO annotation
type GOannotations ¶
type GOannotations struct { Genes *map[string]map[string]map[string]*GOannotation UniProtMapping map[string]string }
GOannotations contains GO annotations for each gene and a mapping for gene name to UniProt ID. The "Genes" value will be a map of GO namespace/gene name/GO ID, with information about each annotatedID
func Annotations ¶
func Annotations(filename string) GOannotations
Annotations reads a go-annotation.gaf file.
type GOhierarchy ¶
GOhierarchy contains a parsed GO hierarchy split into namespaces.
func (*GOhierarchy) AreConsistent ¶
func (g *GOhierarchy) AreConsistent(namespace, id1, id2 string) bool
AreConsistent determines if two GO ids are consistent (equal or one is a child of the other).
func (*GOhierarchy) GetChildren ¶
func (g *GOhierarchy) GetChildren(namespace string)
GetChildren defines all child terms for each GO term in namespace.
func (*GOhierarchy) GetParents ¶
func (g *GOhierarchy) GetParents(namespace string)
GetParents defines all parent terms for each GO term in namespace.