Add the --with-taxon-at-rank option code to obiannotate

This commit is contained in:
2023-02-02 16:36:32 +01:00
parent 886c5118e3
commit 5639a09fb9
4 changed files with 45 additions and 9 deletions

View File

@ -33,7 +33,7 @@ func (taxon *TaxNode) TaxonAtRank(rank string) *TaxNode {
}
}
if taxon == taxon.pparent {
if taxon == taxon.pparent && taxon.rank != rank {
taxon = nil
}