arq5x / lumpy-sv

lumpy: a general probabilistic framework for structural variant discovery
MIT License
309 stars 118 forks source link

Changes to get NM in output BAM. #271

Closed ernfrid closed 5 years ago

ernfrid commented 5 years ago

@brentp - The existing code doesn't report the number of mismatches from CRAM files.

This appears to be because they are calculated dynamically and tied to the decoding of the read sequence and the MD tag.

See https://github.com/samtools/htslib/blob/develop/cram/cram_decode.c#L1214-L1215 and https://github.com/samtools/htslib/blob/develop/cram/cram_decode.c#L1214-L1215

I'm somewhat guessing here, but only enabling MD5 decoding segfaults and adding in both seems to get the job done.

brentp commented 5 years ago

ouch. thanks for noticing that. cc @ryanlayer

ernfrid commented 5 years ago

Thanks Ryan!

ryanlayer commented 5 years ago

No, no. Thank you.

On Wed, Sep 26, 2018 at 8:56 PM Dave Larson notifications@github.com wrote:

Thanks Ryan!

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/arq5x/lumpy-sv/pull/271#issuecomment-424940790, or mute the thread https://github.com/notifications/unsubscribe-auth/AAlDUUBqSOV203Zlre5O6WLGAFHUuEvrks5ufD5OgaJpZM4W7bqI .