taxonomy

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2021 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UploadDatabases

func UploadDatabases(db *dbIO.DBIO, proc int, logger *log.Logger)

Types

type Hierarchy

type Hierarchy struct {
	// contains filtered or unexported fields
}

func NewHierarchy

func NewHierarchy(taxa []*Taxonomy) *Hierarchy

func (*Hierarchy) AddTaxonomy

func (h *Hierarchy) AddTaxonomy(t *Taxonomy)

func (*Hierarchy) FillTaxonomy

func (h *Hierarchy) FillTaxonomy(t *Taxonomy)

type Taxonomy

type Taxonomy struct {
	ID      string
	Kingdom string
	Phylum  string
	Class   string
	Order   string
	Family  string
	Genus   string
	Species string
	Source  string
	Found   bool
	Nas     int
	// contains filtered or unexported fields
}

func NewTaxonomy

func NewTaxonomy() *Taxonomy

func (*Taxonomy) CheckTaxa

func (t *Taxonomy) CheckTaxa()

func (*Taxonomy) ContainsLevel

func (t *Taxonomy) ContainsLevel(s string) string

func (*Taxonomy) Copy

func (t *Taxonomy) Copy(x *Taxonomy)

func (*Taxonomy) CountNAs

func (t *Taxonomy) CountNAs()

func (*Taxonomy) IsLevel

func (t *Taxonomy) IsLevel(s string, translate bool) string

func (*Taxonomy) ScrapeAnimalDiversityWeb

func (t *Taxonomy) ScrapeAnimalDiversityWeb(url string)

func (*Taxonomy) ScrapeEOL

func (t *Taxonomy) ScrapeEOL(result []byte, url string)

func (*Taxonomy) ScrapeIUCN

func (t *Taxonomy) ScrapeIUCN(result []byte, url string)

func (*Taxonomy) ScrapeItis

func (t *Taxonomy) ScrapeItis(url string)

func (*Taxonomy) ScrapeNCBI

func (t *Taxonomy) ScrapeNCBI(url string)

func (*Taxonomy) ScrapeWiki

func (t *Taxonomy) ScrapeWiki(url string)

func (*Taxonomy) ScrapeWikiSpecies

func (t *Taxonomy) ScrapeWikiSpecies(url string)

func (*Taxonomy) SetLevel

func (t *Taxonomy) SetLevel(key, value string)

func (*Taxonomy) Slice

func (t *Taxonomy) Slice(id, db string) []string

func (*Taxonomy) SpeciesCaps

func (t *Taxonomy) SpeciesCaps(name string) string

func (*Taxonomy) String

func (t *Taxonomy) String() string

Jump to

Keyboard shortcuts

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