I build Indexing using this cammand:
/home/yog/software/bwa-0.7.15/bwa index Rs_1.0.cds.fasta
After that I am running BWA cammand for mapping raw reads to indexed transcripts using this cammand:
/home/yog/software/bwa-0.7.15/bwa mem Rs_1.0.cds.fasta 216.all.right.fasta 216.all.left.fasta >paired-end.aln.sam
It showing error:
/home/yog/software/bwa-0.7.15/bwa mem Rs_1.0.cds.fasta 216.all.right.fasta 216.all.left.fasta >paired-end.aln.sam [bns_restore_core] Parse error reading Rs_1.0.cds.fasta.amb
Please suggest how I can resolve it.
In the command
Shouldn't you use the created index rather than the fasta file?
I did indexing first and after that I run BWA.
I build Indexing using this cammand:
/home/yog/software/bwa-0.7.15/bwa index Rs_1.0.cds.fasta
After that I am running BWA cammand for mapping raw reads to indexed transcripts using this cammand:
/home/yog/software/bwa-0.7.15/bwa mem Rs_1.0.cds.fasta 216.all.right.fasta 216.all.left.fasta >paired-end.aln.sam
Now can you suggest me how to get unmapped Right and Left reads in two separate file using samtool or sambanba cammand from the output sam file.
So, you resolved your first problem. Can you shortly comment on this?
A sam file has for each alignment a set of flags stored in one number. You can check the number you need at this web site: https://broadinstitute.github.io/picard/explain-flags.html . With samtools view -f [respectively -F] you can select those alignments having (resp. having not) this bit.