Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • Darwin
    Member
    • Oct 2008
    • 16

    Convert SAM to GFF

    Hi,

    Does anyone know of an easy way to convert files in the SAM format to GFF (or GFF3)?

    I do RNA-seq and have my output from tophat that I'd like to visualize on gbrowse (v1.7), which as far as I can tell does not support SAM. I know I could upgrade to Gbrowse2, haven't got the courage just yet..

    Any help is appreciated,
    Darwin
  • kmcarr
    Senior Member
    • May 2008
    • 1181

    #2
    Do not try to use GFF for Next Gen sequencing data. You will melt your cpu into a smoking pile of ash. O.K. not really; truth is you browser will time out before GBrowse ever returns.

    GBrowse 1.7 can use the Bio:B::SAM backend. See the poster at this link.

    But really, make the switch to GBrowse 2.0. It is now very easy to install; you install both BioPerl 1.6 and GBrowse 2 through CPAN. Configuring multiple data sources for a single browser makes life much easier.

    Comment

    • Darwin
      Member
      • Oct 2008
      • 16

      #3
      Thanks for the reply.

      I'm a bench biologist just getting my toes wet on the command line and so prefer to keep it as uncomplicated as possible. But I think you're right that there's a shiny new GBrowse in my future.

      Have you or anybody else installed GBrowse2 on OS 10.6 or would I need to set up a virtual ubuntu box? It took me *a while* to install GBrowse 1.7 on this system hence my hesitation to switch.

      Comment

      • kmcarr
        Senior Member
        • May 2008
        • 1181

        #4
        Originally posted by Darwin View Post
        Thanks for the reply. Have you or anybody else installed GBrowse2 on OS 10.6 or would I need to set up a virtual ubuntu box? It took me *a while* to install GBrowse 1.7 on this system hence my hesitation to switch.
        The more times you install BioPerl and GBrowse, the faster you get at it .

        I have installed GBrowse on my Mac which is running 10.5. When installing on a Mac the thing to remember is that the standard locations for the web browser document and cgi-bin directories are different from the standard Linux locations. You will need to know these locations when you are configuring GBrowse on your Mac.

        Also, if you are installing via the CPAN shell, make sure to set the shell to 'verbose', otherwise you will not see the configuration queries and it will appear that the install is stalled. This is true for both Mac and Linux.

        Comment

        • steven
          Senior Member
          • Aug 2009
          • 269

          #5
          If you are not limited to GBrowse, you may be interested in trying other browsers (IGV, IGB, CisGenome, etc). A lot of them load SAM/BAM files directly. You can find more info in this thread for instance.

          Comment

          • Darwin
            Member
            • Oct 2008
            • 16

            #6
            I would like to stay on GBrowse because is seems versatile (can host all sorts of genomic features) and that's where I have accumulated whatever experience that I now have.

            IGV does look fairly easy to setup so I'll keep that in mind.

            Thanks for your help guys!

            Comment

            • neXtGen seq
              Junior Member
              • Dec 2010
              • 2

              #7
              Sam to gff3

              Darwin. Have you found a way to convert sam files to gff3. if so please share

              i HAVE INCLUDED MY EMAIL INCASE YOU WANT TO SEND IT TO MY EMAIL [email protected]

              Comment

              • sagarutturkar
                Member
                • Sep 2010
                • 61

                #8
                SAM to GFF

                Have anybody figure out how to convert SAM to GFF? Please share.

                Comment

                • arvid
                  Senior Member
                  • Jul 2011
                  • 156

                  #9
                  GBrowse supports BAM nowadays, so I don't quite see the need... But it should be quite easy to write a converter (e.g. in Perl or Python), depending on which fields you wish to keep. A good exercise for learning a scripting language!
                  Otherwise you can convert the SAM to sorted BAM, use the BAM to BED converter in BEDTools, and convert BED to GFF in Galaxy...
                  Last edited by arvid; 01-30-2012, 12:14 AM.

                  Comment

                  Latest Articles

                  Collapse

                  • SEQadmin2
                    Nine Things a Sample Prep Scientist Thinks About Before Sequencing
                    by SEQadmin2


                    I’m not a sequencing expert. I’m a purification scientist who uses NGS to evaluate workflows my group develops. With this perspective, we think about the sample first and the NGS workflow second. The sequencer is an exceptionally honest reporter, but it can only report on what you give it, so whether you get clean, interpretable data from an NGS workflow is largely determined before you begin.


                    Here are nine questions we think about, in roughly the order they matter, before...
                    06-18-2026, 07:11 AM
                  • SEQadmin2
                    From Collection to Sequencing: Why Sample Preparation and Preservation Define Sequencing Data
                    by SEQadmin2


                    Data variability is still an issue in sequencing technologies despite the advances in reproducibility and accuracy of these platforms. But the problem does not originate in the sequencing itself, but in the previous steps, before the sample reaches the sequencer.


                    The first step is collection, followed by preservation and sample preparation for analysis. Most scientists overlook those steps, but not being careful might just be skewing the experiment’s results.
                    ...
                    06-02-2026, 10:05 AM

                  ad_right_rmr

                  Collapse

                  News

                  Collapse

                  Topics Statistics Last Post
                  Started by SEQadmin2, 06-17-2026, 06:09 AM
                  0 responses
                  25 views
                  0 reactions
                  Last Post SEQadmin2  
                  Started by SEQadmin2, 06-09-2026, 11:58 AM
                  0 responses
                  42 views
                  0 reactions
                  Last Post SEQadmin2  
                  Started by SEQadmin2, 06-05-2026, 10:09 AM
                  0 responses
                  48 views
                  0 reactions
                  Last Post SEQadmin2  
                  Started by SEQadmin2, 06-04-2026, 08:59 AM
                  0 responses
                  49 views
                  0 reactions
                  Last Post SEQadmin2  
                  Working...