Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • Samtools filtering

    Hi

    I am trying to filter for those reads which are mapped but where the mate is unmapped.

    I tried:

    Code:
    bsub "source samtools-0.1.18; samtools view -bt -f 8 F3H.fa.fai L2557F3H.sam > L2557F3H.bam"
    This doesn't appear to have worked correctly.

    I understand the bitwise flag codes to an extent but to be honest I've just been using the "plain english" picard tool (http://picard.sourceforge.net/explain-flags.html). I don't think I understand how to specify for these codes using the minus "-f" parameter.

    Thanks

    Jon

  • #2
    Throw a -F 4 in there too, or you will get unmapped reads whose mate also did not map.

    Comment


    • #3
      Thanks. Very useful, I wasn't aware you could combine -F and -f

      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
      178 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 02-28-2025, 12:58 PM
      0 responses
      271 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 02-24-2025, 02:48 PM
      0 responses
      654 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