Bowtie2 align error
0
0
Entering edit mode
5.9 years ago

Hi All,

While performing alignment using Bowtie2, i get the following error: Error: Encountered exception: 'std::bad_alloc' (ERR): bowtie2-align exited with value 1

My alignment command is as follow: bowtie2 -x Refgenome -1 Read_R1_001.fastq.gz -2 Read_R2_001.fastq.gz -S alignedfile.sam

Could anyone help me in understanding the error.

Thanks in advance

alignment • 3.0k views
ADD COMMENT
0
Entering edit mode

Such basic questions could be easily googled. Anyways, you must check your bowtie2 index prefix. Adding your indexing command here will help others to look into the issue

ADD REPLY
0
Entering edit mode

I actually googled but could not find any answer. so wrote here Here is the index command: bowtie2-build -p 20 -f SeqRef.fasta 25Ref

ADD REPLY
0
Entering edit mode

the index base is 25ref then the command should be

 bowtie2 -x 25ref -1 Read_R1_001.fastq.gz -2 Read_R2_001.fastq.gz -S alignedfile.sam
ADD REPLY
0
Entering edit mode

i have given the proper index file

ADD REPLY
0
Entering edit mode

Memory issues ? How many RAM do you have ?

ADD REPLY
0
Entering edit mode

The memory available is 128 GB.

ADD REPLY
0
Entering edit mode

Did you compile this program yourself or download a precompiled binary?

ADD REPLY
0
Entering edit mode

No. It was already installed on the server i am using

ADD REPLY
0
Entering edit mode

Have you tried @Vijay's suggestion above. I will suggest the following modification if your index files are in a different directory than your data files (replace path_to with a real value on your computer).

bowtie2 -x /path_to/25ref -1 Read_R1_001.fastq.gz -2 Read_R2_001.fastq.gz -S alignedfile.sam
ADD REPLY
0
Entering edit mode

std::bad_alloc' is a memory problem, meaning the memory that you used is not sufficient.

ADD REPLY
0
Entering edit mode

If OP really have 128GB of RAM, he can align every genome he wants with bowtie2.

It's a memory problem but I don't think the solution is to increase memory.

How large is your index file OP ?

ADD REPLY
0
Entering edit mode

Hi All, Thanks for your comments. The size of index file is 35 GB

ADD REPLY

Login before adding your answer.

Traffic: 2629 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6