Hi all,
I have a bam file, and I would like to find the total number of reads (mapped + unmapped) from this file. I used the following command:
samtools idxstats myFile.bam
and received the following results:
chr1 248956422 15149505 0
chr2 242193529 5371045 0
chr3 198295559 5414053 0
chr4 190214555 2870332 0
chr5 181538259 7748857 0
chr6 170805979 6517305 0
chr7 159345973 7533417 0
chr8 145138636 3639326 0
It looks like the unmapped reads were removed. Is there any other way to find the initial number of reads from that bam file?
Thanks in advance:)
Thank you. I'm not sure I did it correctly, but I tried the following:
and received:
Does it mean that there is a problem with my file?
no -F takes an argument (a bit set of sam flags ) . Please, read the manual.