diff --git a/pkg/obioptions/version.go b/pkg/obioptions/version.go index 51e3ef7..762836d 100644 --- a/pkg/obioptions/version.go +++ b/pkg/obioptions/version.go @@ -8,7 +8,7 @@ import ( // corresponds to the last commit, and not the one when the file will be // commited -var _Commit = "9965370" +var _Commit = "add9d89" var _Version = "Release 4.4.0" // Version returns the version of the obitools package. diff --git a/pkg/obitools/obimatrix/obimatrix.go b/pkg/obitools/obimatrix/obimatrix.go index a7b0b9e..a08a31c 100644 --- a/pkg/obitools/obimatrix/obimatrix.go +++ b/pkg/obitools/obimatrix/obimatrix.go @@ -79,7 +79,11 @@ func (data1 *MatrixData) MergeMatrixData(data2 *MatrixData) *MatrixData { // - *MatrixData: The updated MatrixData object. func (data *MatrixData) Update(s *obiseq.BioSequence, mapkey string) *MatrixData { if v, ok := s.GetAttribute(mapkey); ok { - if obiutils.IsAMap(v) { + if m, ok := v.(*obiseq.StatsOnValues); ok { + m.RLock() + (*data)[s.Id()] = obiutils.MapToMapInterface(m.Map()) + m.RUnlock() + } else if obiutils.IsAMap(v) { (*data)[s.Id()] = obiutils.MapToMapInterface(v) } else { log.Panicf("Attribute %s is not a map in the sequence %s", mapkey, s.Id())