Look into "idxstats" option for samtools for getting the information you want. If you need visual graphs and such you can look at Qualimap.
Also this (cut -f2 for mapped reads and cut -f3 for unmapped): http://seqanswers.com/forums/showthr...3744#post53744 and the explanation here: https://www.biostars.org/p/14569/
Smatools "flagstat" will provide aggregate information: https://www.biostars.org/p/84396/
Seqanswers Leaderboard Ad
Collapse
Announcement
Collapse
No announcement yet.
X
-
Samtools: Information about percentages in SAM files
Hi,
I have used BWA mem to map paired-end reads to different references.
I am looking for mapped and unmapped reads percentages (e.g. mapped reads 96 %) and I don't know if samtools has such an option.
I actually know that this command line here
samtools view -c -f 4 -S filename.sam
outputs the unmapped reads and with a capital (-F) the number of mapped reads. Do I have to calculate the percentages by my own or is there a fancy option in samtools ?
Best,
FloTags: None
Latest Articles
Collapse
-
by seqadmin
The complexity of cancer is clearly demonstrated in the diverse ecosystem of the tumor microenvironment (TME). The TME is made up of numerous cell types and its development begins with the changes that happen during oncogenesis. “Genomic mutations, copy number changes, epigenetic alterations, and alternative gene expression occur to varying degrees within the affected tumor cells,” explained Andrea O’Hara, Ph.D., Strategic Technical Specialist at Azenta. “As...-
Channel: Articles
07-08-2024, 03:19 PM -
ad_right_rmr
Collapse
News
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by seqadmin, Yesterday, 06:46 AM
|
0 responses
9 views
0 likes
|
Last Post
by seqadmin
Yesterday, 06:46 AM
|
||
Started by seqadmin, 07-24-2024, 11:09 AM
|
0 responses
26 views
0 likes
|
Last Post
by seqadmin
07-24-2024, 11:09 AM
|
||
Started by seqadmin, 07-19-2024, 07:20 AM
|
0 responses
160 views
0 likes
|
Last Post
by seqadmin
07-19-2024, 07:20 AM
|
||
Started by seqadmin, 07-16-2024, 05:49 AM
|
0 responses
127 views
0 likes
|
Last Post
by seqadmin
07-16-2024, 05:49 AM
|
Leave a comment: