Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • joseph
    Member
    • Feb 2008
    • 39

    how to get coverage from TopHat output?

    Hi
    the latest versions of TopHat do not generate the coverage.wig file. I used the file accepted_hits.bam with samsamtools and bedtools to generate a bedgraph.

    Code:
    samtools sort accepted_hits.bam accepted_hits.sorted
    genomeCoverageBed -bg -ibam accepted_hits.sorted.bam -g my.genome > accepted_hits.bedgraph
    But when I looked at it in UCSC GB, I see that some of the junctions did not have reads aligned to them.
    Any kind of help will be appreciated.
    Joseph
  • honey
    Senior Member
    • Feb 2010
    • 151

    #2
    aligned reads

    Infect I am also looking for how we can actually align the reads from TopHat out put in IGV/ any other browser. Any suggestion will be highly appreciated

    Comment

    • Simon Anders
      Senior Member
      • Feb 2010
      • 995

      #3
      The newest version of IGV can look at SAM files natively, or more precisely, at sorted BAM files.

      So, use samtools to convert the accepted_hits.sam file from TopHat to the binary BAM format, sort the BAM file by position and index it. Then, you can look at it with IGV, but only at high zoom levels. To get a coverage overview that you can see while being zoomed out, you need to create a tdf file from the BAM or SAM file using igvtools.

      See the IGV documentation, in particular:
      - http://www.broadinstitute.org/software/igv/SAM
      - http://www.broadinstitute.org/software/igv/igvtools

      Comment

      • honey
        Senior Member
        • Feb 2010
        • 151

        #4
        plotting FPKM values

        OK. I want to plot FPKM reads from an RNA-seq experiment. I had run Cufflink. The purpose is just visualization of these values on a reference genome. I searched this forum and these two posts are quite important:
        Discussion of next-gen sequencing related bioinformatics: resources, algorithms, open source efforts, etc

        Discussion of next-gen sequencing related bioinformatics: resources, algorithms, open source efforts, etc

        and also from Google:

        I am still new to NGS. The confusion I have:
        1. Cufflink produces 3 values of FPKM- Conf lo(lower bound)Conf hi (upper bound) and FPKM values for each tracking ID (transcript). Which value should be taken out of three values of FPKM- average or Confhi.
        2. Secondly, FPKM values should be taken at transcript/ exon or gene level.
        3. How FPKM values will be calculated in case of overlapping exons.



        Thanks.

        Comment

        • Simon Anders
          Senior Member
          • Feb 2010
          • 995

          #5
          Do you want to do some statistical analysis, or do you just want to look at your data for now?

          In my opinion, it is always a good idea to look at once data in its raw form, before doing an normalization or preprocessing. This is why I advised you to take your SAM files as they are and look at them with IGV.

          Once you calculate summary statistics, such as read count per gene, FPKM, or whatever, a genome browser is no longer the right tool, anyway.

          So, please clarify what kind of plot you envision, if you say you want to plot FPKM values. A scatter plot? A plot along chromosomes? A histogram?

          And for clarification of your questions, maybe read the cufflinks paper.
          Last edited by Simon Anders; 02-16-2011, 07:11 AM.

          Comment

          • honey
            Senior Member
            • Feb 2010
            • 151

            #6
            Thanks Simon,

            I used the Bam file generated by Tophat to plot the raw reads in IGV. IGv can also provide me the coverage. I was thinking of plotting Cufflink out put FPKM values to visualize the differences in two samples. Perhaps histogram/ scatter plot.
            Thanks for your help. I am not sure if that is correct approach (I am still a newbie to sequencing), but I think it may be good idea to visualize the normalized FPKM values instead of what tables are reporting.

            Comment

            • billstevens
              Senior Member
              • Mar 2012
              • 120

              #7
              Hi,

              I'm having trouble converting the sorted file to tdf. Whenever I run it in IGVtools, I get this error.

              Error: cannot convert files of type '.bam' to TDF format.
              Try specifying the file type with the --fileType parameter.

              The IGV tools website also states that it only supports these formats:
              .wig, .cn, .snp, .igv, .res, and .gct

              Is there a new way to do this now?

              Comment

              • billstevens
                Senior Member
                • Mar 2012
                • 120

                #8
                So I figured out that you use Count to get it to become a tdf file.

                As a follow-up, for those doing gene expression analysis, is it worrying when the two conditions look very similar on IGV, but cuffdiff says they are significant?

                Both my coverage files, and my generated .tdf files look so alike between the two conditions....

                Comment

                • sdriscoll
                  I like code
                  • Sep 2009
                  • 436

                  #9
                  it is worrying. i have seen that myself...i'm often puzzled as to why cuffdiff assigns the expressions it assigns. i'm probably puzzled over the 5% that's expected in their false discovery rate but still, it bothers me when the expression values and/or the differential expression results don't make sense when i review the coverages.
                  /* Shawn Driscoll, Gene Expression Laboratory, Pfaff
                  Salk Institute for Biological Studies, La Jolla, CA, USA */

                  Comment

                  Latest Articles

                  Collapse

                  • SEQadmin2
                    Cancer Drug Resistance: The Lingering Barrier to Rising Survival
                    by SEQadmin2



                    Cancer survival rates have significantly increased in the last few decades in the United States, reaching a combined 70% 5-year survival rate by 2021. Behind this number, there are years of research to find new therapies, drug targets, and early detection methods. But there is one core challenge that keeps slowing down these advances, and it’s about drug resistance.

                    There is no single reason why many patients don’t respond to treatment as expected. Cancer is...
                    Today, 05:17 AM
                  • GATTACAT
                    Reply to Nine Things a Sample Prep Scientist Thinks About Before Sequencing
                    by GATTACAT
                    Love this - good data definitely starts from good input, and poor input can only give relatively poor data. I particularly like the mention of Nanodrop/absorbance based methods for quantification. It's such a toss up if you'll get an accurate reading or what amounts to a randomly generated number, and a lot of library/sequencing related issues can be traced back to poor quant.
                    07-01-2026, 11:43 AM
                  • 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

                  ad_right_rmr

                  Collapse

                  News

                  Collapse

                  Topics Statistics Last Post
                  Started by SEQadmin2, Yesterday, 11:05 AM
                  0 responses
                  7 views
                  0 reactions
                  Last Post SEQadmin2  
                  Started by SEQadmin2, 07-02-2026, 11:08 AM
                  0 responses
                  28 views
                  0 reactions
                  Last Post SEQadmin2  
                  Started by SEQadmin2, 06-30-2026, 05:37 AM
                  0 responses
                  28 views
                  0 reactions
                  Last Post SEQadmin2  
                  Started by SEQadmin2, 06-26-2026, 11:10 AM
                  0 responses
                  27 views
                  0 reactions
                  Last Post SEQadmin2  
                  Working...