mirror of
https://github.com/metabarcoding/obitools4.git
synced 2025-06-29 16:20:46 +00:00
17 lines
267 B
Go
17 lines
267 B
Go
|
package obitax
|
||
|
|
||
|
func (taxonomy *Taxonomy) RankList() []string {
|
||
|
ranks := make([]string, 0, 30)
|
||
|
mranks := make(map[string]bool)
|
||
|
|
||
|
for _, t := range *taxonomy.nodes {
|
||
|
mranks[t.rank] = true
|
||
|
}
|
||
|
|
||
|
for r := range mranks {
|
||
|
ranks = append(ranks, r)
|
||
|
}
|
||
|
|
||
|
return ranks
|
||
|
}
|