mirror of
https://github.com/metabarcoding/obitools4.git
synced 2025-06-29 16:20:46 +00:00
18 lines
405 B
Go
18 lines
405 B
Go
package obiiter
|
|
|
|
// func MakeSetAttributeWorker(rank string) obiiter.SeqWorker {
|
|
|
|
// if !obiutils.Contains(taxonomy.RankList(), rank) {
|
|
// log.Fatalf("%s is not a valid rank (allowed ranks are %v)",
|
|
// rank,
|
|
// taxonomy.RankList())
|
|
// }
|
|
|
|
// w := func(sequence *obiseq.BioSequence) *obiseq.BioSequence {
|
|
// taxonomy.SetTaxonAtRank(sequence, rank)
|
|
// return sequence
|
|
// }
|
|
|
|
// return w
|
|
// }
|