geneontology

package
v0.0.0-...-40008dc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 11, 2022 License: MIT Imports: 9 Imported by: 0

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

type GOannotation struct {
	Sources map[string]bool
}

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

type GOhierarchy map[string]map[string]*GOterm

GOhierarchy contains a parsed GO hierarchy split into namespaces.

func OBO

func OBO(filename string) *GOhierarchy

OBO reads a go hiearchy in .obo format.

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.

type GOsynonym

type GOsynonym map[string][]string

GOsynonym contains synonyms for a GO term. Exact: an exact equivalent; interchangeable with the term name Broad: the synonym is broader than the term name Narrow: the synonym is narrower or more precise than the term name Related: the terms are related in some imprecise way

type GOterm

type GOterm struct {
	Children      []string
	DirectParents []string
	Name          string
	Parents       []string
	Synonyms      GOsynonym
}

GOterm contains details about a GO term.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL