obo

package
v0.0.0-...-8c2d65e Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2024 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataFormat

type DataFormat interface {
	Deploy()
	Serialize()
	Restore()
}

DataFormat defines different data type from PSI

type Onto

type Onto struct {
	met.Data
	OboFile string
	Version string
	Date    string
	Terms   []Term
}

Onto contains Ontology terms

func NewUniModOntology

func NewUniModOntology() Onto

NewUniModOntology constructucst a set of UniMod ontologies

func (*Onto) Deploy

func (m *Onto) Deploy()

Deploy deploys the OBO file to the temp folder

func (*Onto) Parse

func (m *Onto) Parse()

Parse reads the unimod.obo file and creates the data structure

type Term

type Term struct {
	ID               string
	Name             string
	Definition       string
	DateTimePosted   string
	DateTimeModified string
	Comments         string
	Synonyms         string
	IsA              string
	Composition      string
	RecordID         int
	MonoIsotopicMass float64
	AverageMass      float64
	Sites            map[string]uint8
}

Term refers to an atomic ontology definition

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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