a first version of obisummary

Former-commit-id: cca1019d82a14a322f46a20890b996b5c7491d41
This commit is contained in:
coissac committed 2023-11-09 22:33:06 +02:00
1 parent a96ecb4837
commit 5ea2b8afcf
7 files changed
+378 -30

No files matched your search

+15
View File
@@ -287,6 +287,21 @@ func (s *BioSequence) GetIntMap(key string) (map[string]int, bool) {
return val, ok
}
func (s *BioSequence) GetStringMap(key string) (map[string]string, bool) {
var val map[string]string
var err error
v, ok := s.GetAttribute(key)
if ok {
val, err = obiutils.InterfaceToStringMap(v)
ok = err == nil
}
return val, ok
}
// GetIntSlice returns the integer slice value associated with the given key in the BioSequence object.
//
// Parameters: