brentp / bwa-meth

fast and accurate alignment of BS-Seq reads using bwa-mem and a 3-letter genome
https://arxiv.org/abs/1401.1129
MIT License
139 stars 53 forks source link

unmapped reads in c2t converted #28

Closed jklughammer closed 7 years ago

jklughammer commented 7 years ago

Hi, it seems that bwameth.py only reverts the mapped reads back to their original state, while unmapped reads are reported in their c2t converted form in the aligned bam file. Is this the desired behavior? For my application it would be crucial to get the original reads from the bam file also for the unmapped reads. Is there a way to do this? Thanks!

jklughammer commented 7 years ago

commenting out lines 346 and 347 in bwameth.py seems to solve the problem. These lines look a lot like a remnant especially because reads are being checked for being unmapped again later. Could you please confirm that these lines aren't actually needed?

brentp commented 7 years ago

that looks right. please open a pull-request.