mirror of
https://github.com/metabarcoding/obitools4.git
synced 2025-06-29 08:10:45 +00:00
Patch a bug in obitag when a taxon from the reference library is unknown in the taxonomy
This commit is contained in:
@ -8,7 +8,7 @@ import (
|
||||
// corresponds to the last commit, and not the one when the file will be
|
||||
// commited
|
||||
|
||||
var _Commit = "2ab6f67"
|
||||
var _Commit = "5a3705b"
|
||||
var _Version = "Release 4.4.0"
|
||||
|
||||
// Version returns the version of the obitools package.
|
||||
|
@ -257,8 +257,8 @@ func CLIAssignTaxonomy(iterator obiiter.IBioSequence,
|
||||
references[j] = seq
|
||||
refcounts[j] = obikmer.Count4Mer(seq, &buffer, nil)
|
||||
taxon := seq.Taxon(taxo)
|
||||
taxa.Set(j, taxon)
|
||||
if taxon != nil {
|
||||
taxa.Set(j, taxon)
|
||||
j++
|
||||
} else {
|
||||
obilog.Warnf("Taxid %s is not described in the taxonomy %s."+
|
||||
|
Reference in New Issue
Block a user