mirror of
https://github.com/metabarcoding/obitools4.git
synced 2025-06-29 16:20:46 +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
|
// 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.
|
||||||
|
@ -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."+
|
||||||
|
Reference in New Issue
Block a user