a first version of obisummary

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

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: