Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RankStr = map[Rank]string{ Empty: "empty", Unknown: "unknown", SubSpecies: "subspecies", Species: "species", SuperSpecies: "superspecies", SubGenus: "subgenus", Genus: "genus", SuperGenus: "supergenus", SubFamily: "subfamily", Family: "family", SuperFamily: "superfamily", Order: "order", SuperOrder: "superorder", ParvClass: "parvclass", SubTerClass: "subterclass", InfraClass: "infraclass", SubClass: "subclass", Class: "class", SuperClass: "superclass", SubPhylum: "subphylum", Phylum: "phylum", SuperPhylum: "superphylum", SubKingdom: "subkingdom", Kingdom: "kingdom", SuperKingdom: "superkingdom", Empire: "empire", Biota: "biota", }
Functions ¶
Types ¶
type Context ¶
func New ¶ added in v0.4.1
New takes several items that include bio-clasification and returns back the kingdom where most of items belong to (if rank 'kingdom' is provided), percentage of how many items belong to that kingdom, and the highest ranking clade that includes a certain percentage of species. The percentage is provided via threshold parameter.
The algorithm assumes that all items belong to the same classification tree and that classification does not skip clades from item to item.
type Hierarch ¶
type Hierarch interface { // Clades method produces a slice of clades that represent a path in a // hierarchy. Clades() []Clade }
An interface that allows to produce a normalized verion of a hierarchy as a slice of clades, ordered accorting from more general to more specific clades.
Click to show internal directories.
Click to hide internal directories.