feat: support map and slice types in OBI attributes

Extends OBI header parsing to recognize and deserialize JSON-like arrays and objects. Introduces safe conversion utilities in `obiutils` to cast generic interface values into typed maps, and exposes them via new `BioSequence` methods. Header values are now marshaled, quote-normalized, and formatted for map and slice types.
This commit is contained in:
Eric Coissac
2026-06-01 13:18:44 +02:00
parent af7ae3d60c
commit dcdaf9e372
4 changed files with 144 additions and 13 deletions
+1 -1
View File
@@ -103,7 +103,7 @@ func TestNewBioSequence(t *testing.T) {
// Return type: None.
func TestNewBioSequenceWithQualities(t *testing.T) {
id := "123"
sequence := []byte("ATGC")
sequence := []byte("atgc")
definition := "DNA sequence"
qualities := []byte("1234")