ssadedin / bazam

A read extraction and realignment tool for next generation sequencing data
GNU Lesser General Public License v2.1
99 stars 16 forks source link

Option to emit original quality scores in BQSR-ed BAMs #19

Closed wengkhong closed 5 years ago

wengkhong commented 5 years ago

Hi. First of all, bazam is a really great tool and is saving us a lot of time now that we're realigning our WGS data to hg38. My BAM files have already undergone GATK BQSR, with original quality scores stored under the 'OQ' tag. I was wondering if it would be possible to add an option to bazam to use quality scores from the OQ tag when generating FASTQs. This would allow us to faithfully reproduce the original raw FASTQ files when realigning.

ssadedin commented 5 years ago

That definitely sounds like a useful option - I will look at adding this in the near future.

Thanks for the suggestion!

ssadedin commented 5 years ago

I have added some support for this in https://github.com/ssadedin/bazam/commit/e9657f74067a686c952c54a085923b710630c8b9 which is on the 1.0.2-beta branch. Would be great if you can give it a test? You would run it like:

java -jar build/libs/bazam.jar -bqtag OQ your.bam ....
wengkhong commented 5 years ago

Hi Simon. We fetched the 1.0.2-beta branch, built and tested it. We can confirm that it works as expected. Thanks for addressing this feature suggestion so quickly! Best wishes, WK

ssadedin commented 5 years ago

Great to hear it works - thanks for testing it out!