Hello,
I tried both samtools fastq
and also picard SamToFastq
commands to convert a cram file to it's original fastq files. However when I compare the fastqs to the original one the quality scores of the reads are changed.
Converted from cram
@A00718:331:HCCFYDSX2:1:1502:12292:2769/1
ACCCTAACCCTAACCCTAACCCTAACCCTAACCCTAACCCTAACCCTAACCCTAACCCTAACCCTAACCCTAACCCTAACCCTAACCCTAACCCTAAACCTAACCCAAGACCTAACACAAAACCAACACCTAACACTAAACCTAACGCTAA
+
??????????????????????????????????????????????????????????????????????????????+?????????????++?'++?+5?+?+?'?5+?+5??+'????++?++++++?'??++5'++++5?++'55'+
Original
@A00718:331:HCCFYDSX2:1:1502:12292:2769 1:N:0:GTTAGAAC+ATCACGTG
ACCCTAACCCTAACCCTAACCCTAACCCTAACCCTAACCCTAACCCTAACCCTAACCCTAACCCTAACCCTAACCCTAACCCTAACCCTAACCCTAAACCTAACCCAAGACCTAACACAAAACCAACACCTAACACTAAACCTAACGCTAA
+
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF,:FFFF::FFFF::,,:,,,:,,F,:,F,:,,F,,F:,,F:FF,,F,,,,,,:,::,,,,,,,,,:,,,,,,,
Is anything wrong with the fastqs? (Note that my case is I accidently have deleted the original fastqs and only have the cram file. this here Is just another example that I have both the fastqs and cram file)
Update 25 December 2022 (changed the question title accordingly) It seems that the cram file has been base recalibrated before (using GATK BaseRecalibrator and ApplyBQSR). but I'm not sure if this is an expected output of base recalibrator.
so , how did you get that
Original
view ?As noted in original post:
(post edited, I had put the reads in reverse)
Can you show how you did the conversion from fastq to CRAM originally? Have you considered that possibility that there was some error in that step itself?
Sure,
fastq to bam:
bam to cram:
(with indexing)
I don't think there was any error. because these cram files are viewable inside IGV.