Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • NicoBxl
    not just another member
    • Aug 2010
    • 264

    extract alignment from SAM with a GFF file

    Hi,

    All is in the title. I aligned small reads (~25nt) with bowtie on my reference genome and I've a GFF file with annotations.

    Is it possible to extract only the alignment that are in the gff file ?

    Thanks,

    N.
  • colindaven
    Senior Member
    • Oct 2008
    • 417

    #2
    Bedtools or Galaxy should do it! Extract the SAM alignments according to the GFF coordinates.

    R would also be an option.

    Comment

    • NicoBxl
      not just another member
      • Aug 2010
      • 264

      #3
      how can I do that with R ?

      Comment

      • NicoBxl
        not just another member
        • Aug 2010
        • 264

        #4
        is this bedtools command correct ?


        intersectBed -abam alignment.bam -b coordinates.gff > alignment_filtered.bam

        Thanks,

        N.

        EDIT > I found it : intersectBed -abam alignment.bam -b coordinates.gff -wa > alignment_filtered.bam
        Last edited by NicoBxl; 08-02-2011, 04:47 AM.

        Comment

        • pbluescript
          Senior Member
          • Nov 2009
          • 224

          #5
          Originally posted by NicoBxl View Post
          is this bedtools command correct ?


          intersectBed -abam alignment.bam -b coordinates.gff > alignment_filtered.bam

          Thanks,

          N.

          EDIT > I found it : intersectBed -abam alignment.bam -b coordinates.gff -wa > alignment_filtered.bam
          The GFF format and bed format have the genomic coordinates in different columns, so you will have to fix that first.

          Comment

          Latest Articles

          Collapse

          ad_right_rmr

          Collapse

          News

          Collapse

          Topics Statistics Last Post
          Started by SEQadmin2, Yesterday, 10:09 AM
          0 responses
          9 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 06-04-2026, 08:59 AM
          0 responses
          17 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 06-02-2026, 12:03 PM
          0 responses
          26 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 06-02-2026, 11:40 AM
          0 responses
          21 views
          0 reactions
          Last Post SEQadmin2  
          Working...