BioJulia / XAM.jl

Parse and process SAM and BAM formatted files
MIT License
27 stars 13 forks source link

error when using SAM.auxdata(record) #72

Closed yr-neurospace closed 5 months ago

yr-neurospace commented 5 months ago

It seems that the optional fields aren't correctly parsed which in turn leads to an error raised by SAM.auxdata(record).

I find that some keys returned by keys(record) are incorrect.

For example, AS:i:0 returns :i as the key.

yr-neurospace commented 5 months ago

it seems that the record must be emptied before reading the next record, or the error above will occur.