count of reads having multiple references
0
0
Entering edit mode
7.1 years ago
vmicrobio ▴ 290

Hi all,

I have done an alignment using bwa on numerous references and I would like to retrieve a count of the reads matching more than one references and know witch references are involved.

This question is related to this post : How to highlight multiple references mapped reads?, but here I don't need to get reads, only a count. I also would like to answer it differently because in my case it makes samtools stop the process for some samples

Thanks a lot!

alignment read multiple references • 1.3k views
ADD COMMENT
0
Entering edit mode

but here I don't need to get reads, only a count

wc is your friend

because in my case it makes samtools stop the process for some samples

why ? show us the error

ADD REPLY
0
Entering edit mode

Yes wc is definitively what I need to count

Here is the error (certainly due to a lack of computing power, because it works for some of my files and I couldn't detect any corrupted files):

auto.sh : ligne 7 :  4800 Relais brisé (pipe)    samtools view file55-sorted.bam
      4801 Processus arrêté      | grep -f names55.txt > sequences55.sam
ADD REPLY

Login before adding your answer.

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