Update obisummary to account new obiseq.StatsOnValues type

This commit is contained in:
Eric Coissac committed 2025-06-19 17:21:30 +02:00
1 parent 27fa984a63
commit 235a7e202a
3 files changed
+44 -2

No files matched your search

+3
View File
@@ -139,7 +139,10 @@ func (data *DataSummary) Update(s *obiseq.BioSequence) *DataSummary {
}
for k, v := range s.Annotations() {
_, isSov := v.(*obiseq.StatsOnValues)
switch {
case isSov:
plusOneUpdateIntMap(data.map_tags, k)
case obiutils.IsAMap(v):
plusOneUpdateIntMap(data.map_tags, k)
case obiutils.IsASlice(v):