Obitag, allow for reference sequences with bad taxid, which are discarded with the emission of a warning

Former-commit-id: a8781da1afa86de9c34b008959f0705ae69fc64f
This commit is contained in:
Eric Coissac
2024-03-18 19:11:41 +01:00
parent aa07ef2127
commit b428c48353
2 changed files with 16 additions and 5 deletions

View File

@ -12,11 +12,11 @@ import (
func (t1 *TaxNode) LCA(t2 *TaxNode) (*TaxNode, error) {
if t1 == nil {
log.Fatalf("Try to get LCA of nil taxon")
log.Panicf("Try to get LCA of nil taxon")
}
if t2 == nil {
log.Fatalf("Try to get LCA of nil taxon")
log.Panicf("Try to get LCA of nil taxon")
}
p1, err1 := t1.Path()