Entering edit mode
7.5 years ago
valerie
▴
100
Hi guys,
I am working with exomes from TCGA which are bam files. I am converting bam to fastq using SamToFastq by Picard and then realign the reads back to reference genome using another reference, not like in original bam files. With one file I get an error from Bowtie2:
Error, fewer reads in file specified with -2 than in file specified with -1
However Bowtie2 doesn't fall, it goes on running forever. Does anybody know how to solve this issue? I do not get such an error for other files I worked with from TCGA. I suppose that these unpaired reads should be simply ignored by Bowtie2.
Thanks in advance!
It seems R1 and R2 fastq files have different number of reads. Run
fastqc
orwc -l
orzcat | wc -l
to get number of reads for each file.How were your picard and bowtie commands lines?
That's true, I see that the files have slightly different sizes. My script:
Use
repair.sh
from BBMap suite to re-sync the files before remapping them.This worked! Thank you again!
Try fixing your unpaired fastq files with BBTools:
I don't use much Picard, but there may be some magic flag to output properly paired fastq files.
This worked! Thank you!
It worked fine thank you. the reads were not matching that's the problem