Closed daviesrob closed 1 year ago
Set state->nmods to 0 at the start, in case the function returns early. This ensures calls to bam_mods_at_next_pos() won't try to replay the mods from an earlier line.
state->nmods
bam_mods_at_next_pos()
Thanks. Kind of suprising we haven't noticed this before.
Set
state->nmods
to 0 at the start, in case the function returns early. This ensures calls tobam_mods_at_next_pos()
won't try to replay the mods from an earlier line.