mirror of
https://github.com/metabarcoding/obitools4.git
synced 2025-12-08 16:50:27 +00:00
Add the --with-taxon-at-rank option code to obiannotate
This commit is contained in:
@@ -33,7 +33,7 @@ func (taxon *TaxNode) TaxonAtRank(rank string) *TaxNode {
|
||||
}
|
||||
}
|
||||
|
||||
if taxon == taxon.pparent {
|
||||
if taxon == taxon.pparent && taxon.rank != rank {
|
||||
taxon = nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user