Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • Liy
    Member
    • Feb 2012
    • 19

    Split Paired-End bam file

    Hi all,

    How can I split a paired-end bam file, to separate paired reads?

    Paired.bam > Pair_1.bam Pair_2.bam

    Thanks!
  • dpryan
    Devon Ryan
    • Jul 2011
    • 3478

    #2
    Code:
    samtools view -f 0x40 Paired.bam > Pair_1.bam
    samtools view -f 0x80 Paired.bam > Pair_2.bam
    If you wanted it all in one go you could just script something (gawk/python/perl/etc.).
    Last edited by dpryan; 12-27-2013, 02:41 AM. Reason: I should really proof read

    Comment

    • Liy
      Member
      • Feb 2012
      • 19

      #3
      Thank you!

      Comment

      Latest Articles

      Collapse

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by SEQadmin2, 06-09-2026, 11:58 AM
      0 responses
      22 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 06-05-2026, 10:09 AM
      0 responses
      28 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 06-04-2026, 08:59 AM
      0 responses
      39 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 06-02-2026, 12:03 PM
      0 responses
      61 views
      0 reactions
      Last Post SEQadmin2  
      Working...