Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • Annotating a SAM file - best method?

    Hey there,

    So far, I have put 76mers through tophat, then did BAM to SAM conversion. I looked at the Tophat page, and was happy to find IGV, etc but this doesn't seem to let me DO anything with the data, just look at it. If there was a way to dump what you see in IGV across the entire genome (i.e. reads annotated to genes and gene features) that would just be too convenient.

    So yeah I need to annotate the SAM file. The only option that seems good is HTSeq. The overall goal of the study is levels of alternative splicing; will HTseq be good enough to neatly quantify every type of event? Is there some other method out there?


    Thanks in advance.

  • #2
    I use Bedtools for annotation, I think using BAM files and GFF features. It's nice and quick.

    Otherwise Galaxy is good too for those who don't enjoy the command line.

    Comment


    • #3
      Thanks for the response.

      What part of Bedtools? I don't see any part of it that would do this. :|

      What I want to do is find out which genes my reads correspond to. There are many overlapping genes in arabiopsis, and I want reads that can't be assigned to one of these to be excluded - this is why HTseq looked good. I do not want to see which exons they map to really either, because I am looking for reads that are mostly or exclusively in introns.

      I have tried with HTSeq, but it almost always returns errors!
      I got my GFF file from TAIR, and this happens:

      Originally posted by console
      htseq-count -t gene -m union my_reads.sam TAIR10_GFF3_genes.gff
      Error occured in line 2 of file TAIR10_GFF3_genes.gff.
      Error: Feature AT1G01010 does not contain a 'gene_id' attribute
      [Exception type: SystemExit, raised in count.py:55]
      I really don't get it. The instructions it gives say to use GFF files, but only GTF files have this....I am really really confused.

      Comment


      • #4
        If you get a .bed file of features (exons) and coordinates, you can use BEDTools intersect to figure out what reads cross what genes. Or rather, what reads don't cross exons.

        But I'm not sure how to get a .bed file of exons. The format is simple; it's just feature name, start, and stop coordinate, tab-delimited.

        Comment


        • #5
          swbarnes2, BEDtools has a simple bamToBed command that converts BAM files to BED format. And I guess to annotate, I need to intersect the converted BED file with a BED file of genes for that genome, right?

          P.S.: BEDtools commands can be found here:
          "Though it may seem that all's been said and done, originality still lives on" - some unoriginal guy who had nothing better to write as his signature

          Comment


          • #6
            Originally posted by Cirno View Post
            So yeah I need to annotate the SAM file. The only option that seems good is HTSeq. The overall goal of the study is levels of alternative splicing; will HTseq be good enough to neatly quantify every type of event? Is there some other method out there?
            If by annotating a sam file you mean assigning reads to genes to determine the level of expression of each transcript, I think what you can use is the cufflinks suite.

            You can write a batch script to dump images from IGV but doing it for the whole genome would result in hundreds of thousands of image files!

            Good luck
            Dario

            Comment

            Latest Articles

            Collapse

            • seqadmin
              Recent Advances in Sequencing Analysis Tools
              by seqadmin


              The sequencing world is rapidly changing due to declining costs, enhanced accuracies, and the advent of newer, cutting-edge instruments. Equally important to these developments are improvements in sequencing analysis, a process that converts vast amounts of raw data into a comprehensible and meaningful form. This complex task requires expertise and the right analysis tools. In this article, we highlight the progress and innovation in sequencing analysis by reviewing several of the...
              05-06-2024, 07:48 AM
            • seqadmin
              Essential Discoveries and Tools in Epitranscriptomics
              by seqadmin




              The field of epigenetics has traditionally concentrated more on DNA and how changes like methylation and phosphorylation of histones impact gene expression and regulation. However, our increased understanding of RNA modifications and their importance in cellular processes has led to a rise in epitranscriptomics research. “Epitranscriptomics brings together the concepts of epigenetics and gene expression,” explained Adrien Leger, PhD, Principal Research Scientist...
              04-22-2024, 07:01 AM

            ad_right_rmr

            Collapse

            News

            Collapse

            Topics Statistics Last Post
            Started by seqadmin, Today, 06:35 AM
            0 responses
            12 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, Yesterday, 02:46 PM
            0 responses
            18 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 05-07-2024, 06:57 AM
            0 responses
            17 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 05-06-2024, 07:17 AM
            0 responses
            19 views
            0 likes
            Last Post seqadmin  
            Working...
            X