Seqanswers Leaderboard Ad

Collapse

Announcement

Collapse
No announcement yet.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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,
    Flo

  • #2
    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/
    Last edited by GenoMax; 10-08-2015, 05:32 AM.

    Comment

    Latest Articles

    Collapse

    • seqadmin
      New Genomics Tools and Methods Shared at AGBT 2025
      by seqadmin


      This year’s Advances in Genome Biology and Technology (AGBT) General Meeting commemorated the 25th anniversary of the event at its original venue on Marco Island, Florida. While this year’s event didn’t include high-profile musical performances, the industry announcements and cutting-edge research still drew the attention of leading scientists.

      The Headliner
      The biggest announcement was Roche stepping back into the sequencing platform market. In the years since...
      03-03-2025, 01:39 PM
    • seqadmin
      Investigating the Gut Microbiome Through Diet and Spatial Biology
      by seqadmin




      The human gut contains trillions of microorganisms that impact digestion, immune functions, and overall health1. Despite major breakthroughs, we’re only beginning to understand the full extent of the microbiome’s influence on health and disease. Advances in next-generation sequencing and spatial biology have opened new windows into this complex environment, yet many questions remain. This article highlights two recent studies exploring how diet influences microbial...
      02-24-2025, 06:31 AM

    ad_right_rmr

    Collapse

    News

    Collapse

    Topics Statistics Last Post
    Started by seqadmin, 03-03-2025, 01:15 PM
    0 responses
    179 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, 02-28-2025, 12:58 PM
    0 responses
    272 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, 02-24-2025, 02:48 PM
    0 responses
    656 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, 02-21-2025, 02:46 PM
    0 responses
    267 views
    0 likes
    Last Post seqadmin  
    Working...
    X