BWA not working with Velvet output
0
0
Entering edit mode
6.6 years ago
17501199 • 0

Hello, I am new to bioinformatics and have recently created a de novo assembly in Velvet. I want to align my contigs.fa to the model organism to see the percentage that mapped. I cannot seem to get the script to work correctly.

bwa index -a bwtsw zebrafish_genome.fa.gz
bwa mem -M -t 4 zebrafish_genome.fa.gz* contigs69_1000.fa > bwa_output.sam

Also on a side note? Can I use discosnp to identify variants or is there a better alternative? With discosnp can I use my velvet_asm.afg file?

Thanks

assembly Assembly • 1.2k views
ADD COMMENT
0
Entering edit mode

What was the output of the index command?

Did you get any errors? What is not working correctly?

ADD REPLY
0
Entering edit mode

From the index I created the 5 output files. amb, ann, bwt, pac and sa. I use the * as I was told all these index files are needed to run bwa mem

ADD REPLY
0
Entering edit mode

Just for explanation: you need to have all those files (which form the index) present, but the index itself is addressed only by its name, which is the zebrafish_genome.fa.gz.

ADD REPLY
0
Entering edit mode

Why do you use the * at the end of your index?

ADD REPLY
0
Entering edit mode

it gives me no error but all the options for bwa in the error file and no output

ADD REPLY
0
Entering edit mode

this is what the error file says

[M::bwa_idx_load_from_disk] read 0 ALT contigs
[M::process] read 710 sequences (812701 bp)...
[M::mem_process_seqs] Processed 710 reads in 1.957 CPU sec, 0.492 real sec
[main] Version: 0.7.13-r1126
[main] CMD: bwa mem -t 4 zebrafish_genome.fa.gz contigs.fa
[main] Real time: 15.015 sec; CPU: 3.431 se
ADD REPLY
0
Entering edit mode

As @cschu181 said above try running your job like this

bwa mem -M -t 4 zebrafish_genome.fa.gz contigs69_1000.fa > bwa_output.sam

You just need to indicate the basename of the index. In your case that is zebrafish_genome.fa.gz.

ADD REPLY

Login before adding your answer.

Traffic: 2358 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