Hi all,
This is my first time attempting to align sequences to a reference index. I am using bowtie2 with the -1
and -2
arguments and have gotten the following error message:
Error, fewer reads in file specified with -1 than in file specified with -2
terminate called after throwing an instance of 'int'
(ERR): bowtie2-align died with signal 6 (ABRT) (core dumped)
The bowtie2 manual states that
Sequences specified with this option must correspond file-for-file and read-for-read with those specified in <m2>
I understand that my error message means that one or more of my R1 files have fewer reads than the associated R2 files so that they likely don't correspond read-for-read.
How can I ensure that my R1 and R2 files correspond to one another read-for-read? Currently, the fq.gz files I am working with have been trimmed to remove adapters and trimmed to 150 bp. I am concerned that this trimming step is what has caused the error with bowtie2, but I am not sure I feel comfortable using the untrimmed sequences.
Any relevant thoughts would be welcome - thanks for your help!
Oh no - how embarrassing to make such a simple mistake! You are correct and that was my issue. I re-ran trimmomatic with the correction and bowtie2 is now working. Thank you for your time!
No problem. Happens to all of us at some point.
That is why I prefer
bbduk.sh
from BBMap suite. Easy to understand options and you can't go wrong with