I have used BWA-0.7.12 to align my reference to my reads using this command:
bwa mem hg19.fa reads.fq > aln.sam
It worked away for over an hour showing many lines of the same read/sequences message followed by this ending:
[M::main_mem] read 66226 sequences (10000126 bp)...
[M::main_mem] read 66226 sequences (10000126 bp)...
[M::main_mem] read 66226 sequences (10000126 bp)...
[M::main_mem] read 66226 sequences (10000126 bp)...
[M::main_mem] read 32148 sequences (4854348 bp)...
[main] Version: 0.7.5a-r405
[main] CMD: bwa mem hg19.fa read.fq
[main] Real time: 4518.796 sec; CPU: 4011.641 sec
I got the file aln.sam
from this but now I am lost. I tried to open it and can't and I've tried to use Picard to convert it to a BAM file and got the error
[main_samview] fail to open "aln.sam" for reading
I am confused as to whether I have in fact aligned anything and got a SAM file with information in it! Any advice on what to try from here would be great as I am learning this all from scratch by myself.
Many thanks
Laura
The BWA prompt output seems OK... It is strange that you are not able to open it. How are you trying to open? Because maybe the file is to big to open with gedit, if you do
head aln.sam
do you see something?Hi thank you all for responding - sorry for the late response (internet issues).
For
head aln.sam
I see:For
whoami && groups && ls -l aln.sam
I see:Thanks again!
That means that your sam file is OK. You can continue :). You can follow your analysis using Pierre's suggestion to convert sam to bam.
Please give us the output of: