mirror of
https://github.com/metabarcoding/obitools4.git
synced 2026-11-10 01:24:41 +00:00
Patch a bug in obitag when some reference sequences have taxid absent from the taxonomy
This commit is contained in:
1 parent
2d52322876
commit
03b5ce9397
5 files changed
+27
-11
No files matched your search
+1
-1
@@ -27,7 +27,7 @@ type Taxon struct {
|
||||
// Returns:
|
||||
// - A formatted string representing the Taxon in the form "taxonomy_code:taxon_id [scientific_name]".
|
||||
func (taxon *Taxon) String() string {
|
||||
if taxon == nil {
|
||||
if taxon == nil || taxon.Node == nil {
|
||||
return "NA"
|
||||
}
|
||||
return taxon.Node.String(taxon.Taxonomy.code)
|
||||
|
||||
Reference in new issue
Block a user