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
              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
            • seqadmin
              Current Approaches to Protein Sequencing
              by seqadmin


              Proteins are often described as the workhorses of the cell, and identifying their sequences is key to understanding their role in biological processes and disease. Currently, the most common technique used to determine protein sequences is mass spectrometry. While still a valuable tool, mass spectrometry faces several limitations and requires a highly experienced scientist familiar with the equipment to operate it. Additionally, other proteomic methods, like affinity assays, are constrained...
              04-04-2024, 04:25 PM

            ad_right_rmr

            Collapse

            News

            Collapse

            Topics Statistics Last Post
            Started by seqadmin, Today, 08:47 AM
            0 responses
            12 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 04-11-2024, 12:08 PM
            0 responses
            60 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 04-10-2024, 10:19 PM
            0 responses
            59 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 04-10-2024, 09:21 AM
            0 responses
            54 views
            0 likes
            Last Post seqadmin  
            Working...
            X