Question: BWA error [bns_restore_core] Parse error reading
2
gravatar for Picasa
4.2 years ago by
Picasa590
Picasa590 wrote:

Hi,

I have downloaded some bacteria genomes on ncbi and then I cat them.

I have built an index with these genome after trying to map my reads I got this error:

[bns_restore_core] Parse error reading db/contaminants.amb

Someone know what is going on ? Thanks

bwa index • 4.6k views
ADD COMMENTlink modified 2.9 years ago by said3427100 • written 4.2 years ago by Picasa590

I have the same problem with bwa-0.7.12 (I tried 0.7.4 and it works). Did you find a solution? my genome file does not contain spaces.

ADD REPLYlink written 3.8 years ago by lironyoffe0
2
gravatar for lakhujanivijay
4.2 years ago by
lakhujanivijay5.4k
India/Ahmedabad
lakhujanivijay5.4k wrote:

Based on previous encounters with such issues, please check if your genome file contains any spaces. Remove using sed or tr (if you find any).

ADD COMMENTlink written 4.2 years ago by lakhujanivijay5.4k
1
gravatar for tshtatland
3.6 years ago by
tshtatland70
United States
tshtatland70 wrote:

See the answer from Vijay Lakhujani above. More specifically, remove whitespace from the fasta reference sequences (whitespace in fasta header is okay). See also: Burrows-Wheeler Aligner / Mailing Lists

https://sourceforge.net/p/bio-bwa/mailman/message/33230220/

https://sourceforge.net/p/bio-bwa/mailman/message/34430833/

ADD COMMENTlink written 3.6 years ago by tshtatland70
1
gravatar for said3427
2.9 years ago by
said3427100
Mexico
said3427100 wrote:

sed -i 's/\s*$//g' db/contaminants

bwa index db/contaminants

ADD COMMENTlink modified 2.9 years ago • written 2.9 years ago by said3427100
2

If you have spaces in your header, use this instead:

sed -i 's/^[^>]\s*$//g' db/contaminants
ADD REPLYlink modified 2.9 years ago • written 2.9 years ago by bird7770
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1488 users visited in the last hour
_