Introduce sequence roles and filtering logic

Implement new data structures for corpus management, multi-match filtering, and barcode resolution.
This commit is contained in:
Eric Coissac committed 2026-11-03 22:50:02 +11:00
1 parent d7d63f315c
commit d6dd39f878
22 files changed
+1083 -342

No files matched your search

+3 -2
View File
@@ -58,9 +58,10 @@ func (c *Corpus) AssignTaxa(taxonomy *obitax.Taxonomy, rank string) (*Taxa, erro
t.nodes = append(t.nodes, taxon)
}
t.Of[i] = id
if c.Roles[i] == Example {
switch c.Roles[i] {
case Example:
exSeen[id] = struct{}{}
} else {
case CounterExample:
coSeen[id] = struct{}{}
}
}