Patch a bug in obitag when a taxon from the reference library is unknown in the taxonomy

This commit is contained in:
Eric Coissac
2025-03-27 14:28:15 +01:00
parent 5a3705b6bb
commit fd80249b85
2 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@ import (
// corresponds to the last commit, and not the one when the file will be // corresponds to the last commit, and not the one when the file will be
// commited // commited
var _Commit = "2ab6f67" var _Commit = "5a3705b"
var _Version = "Release 4.4.0" var _Version = "Release 4.4.0"
// Version returns the version of the obitools package. // Version returns the version of the obitools package.

View File

@ -257,8 +257,8 @@ func CLIAssignTaxonomy(iterator obiiter.IBioSequence,
references[j] = seq references[j] = seq
refcounts[j] = obikmer.Count4Mer(seq, &buffer, nil) refcounts[j] = obikmer.Count4Mer(seq, &buffer, nil)
taxon := seq.Taxon(taxo) taxon := seq.Taxon(taxo)
taxa.Set(j, taxon)
if taxon != nil { if taxon != nil {
taxa.Set(j, taxon)
j++ j++
} else { } else {
obilog.Warnf("Taxid %s is not described in the taxonomy %s."+ obilog.Warnf("Taxid %s is not described in the taxonomy %s."+