In my program I am trying to follow the CRAM specs for updating the CRAM header container and then updating the CRC32 hash to match it.
I can't seem to create a valid CRC32 hash (not recognized by samtools). I have tried to feed the exact same header bytes into my program to create this hash and it comes out different than the valid CRAM file's CRC32.
Has anyone had this issue? Maybe i'm not understanding how the header data is serialized for the CRC32 hash
While
samtools
devs stop by it is not very often. You may want to create an issue onsamtools/htslib
GitHub site and then link it here.