Update obisummary to account new obiseq.StatsOnValues type

This commit is contained in:
Eric Coissac
2025-06-19 17:21:30 +02:00
parent 27fa984a63
commit 235a7e202a
3 changed files with 44 additions and 2 deletions
+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):