mirror of
https://github.com/metabarcoding/obitools4.git
synced 2025-06-29 16:20:46 +00:00
17 lines
403 B
Go
17 lines
403 B
Go
|
package obiiter
|
||
|
|
||
|
// func MakeSetAttributeWorker(rank string) obiiter.SeqWorker {
|
||
|
|
||
|
// if !goutils.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
|
||
|
// }
|