Header Leaderboard Ad

Collapse

Samtools filtering

Collapse

Announcement

Collapse

SEQanswers June Challenge Has Begun!

The competition has begun! We're giving away a $50 Amazon gift card to the member who answers the most questions on our site during the month. We want to encourage our community members to share their knowledge and help each other out by answering questions related to sequencing technologies, genomics, and bioinformatics. The competition is open to all members of the site, and the winner will be announced at the beginning of July. Best of luck!

For a list of the official rules, visit (https://www.seqanswers.com/forum/sit...wledge-and-win)
See more
See less
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

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by seqadmin, Yesterday, 07:14 AM
      0 responses
      4 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 06-06-2023, 01:08 PM
      0 responses
      6 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 06-01-2023, 08:56 PM
      0 responses
      132 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 06-01-2023, 07:33 AM
      0 responses
      269 views
      0 likes
      Last Post seqadmin  
      Working...
      X