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 CalcContext ¶
CalcContext 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.
Click to show internal directories.
Click to hide internal directories.