Rename obifind obitaxonomy and introduce the new CSV format for taxonomy.

This commit is contained in:
Eric Coissac committed 2025-01-29 10:45:26 +01:00
1 parent c50a0f409d
commit 00f2dc2697
11 files changed
+4571 -55

No files matched your search

+1 -1
View File
@@ -197,7 +197,7 @@ func (taxonomy *Taxonomy) Len() int {
// - A pointer to the newly created Taxon instance.
// - An error if the taxon cannot be added (e.g., it already exists and replace is false).
func (taxonomy *Taxonomy) AddTaxon(taxid, parent string, rank string, isRoot bool, replace bool) (*Taxon, error) {
taxonomy = taxonomy.OrDefault(false)
taxonomy = taxonomy.OrDefault(true)
parentid, perr := taxonomy.Id(parent)
if perr != nil {