Make obitag able to use the taxonomic path included in reference database as taxonomy

This commit is contained in:
Eric Coissac
2025-01-30 11:50:03 +01:00
parent 0df082da06
commit d3dac1b21f
3 changed files with 18 additions and 5 deletions

View File

@ -47,12 +47,27 @@ func main() {
obiconvert.OpenSequenceDataErrorMessage(args, err)
taxo := obitax.DefaultTaxonomy()
references := obitag.CLIRefDB()
if references == nil {
log.Panicln("No loaded reference database")
}
if taxo == nil {
taxo, err = references.ExtractTaxonomy(nil)
if err != nil {
log.Fatalf("No taxonomy specified or extractable from reference database: %v", err)
}
taxo.SetAsDefault()
}
if taxo == nil {
log.Panicln("No loaded taxonomy")
}
references := obitag.CLIRefDB()
var identified obiiter.IBioSequence
if obitag.CLIGeometricMode() {