Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • nimmi
    Member
    • Jul 2010
    • 15

    understanding HTSeq counts

    Hi,

    I ran HTSeq on a *.sam file using RefSeq genes GTF file. I got counts for each transcript and would like to understand how exactly these counts were generated. Does HTSeq count a read whenever it overlaps with an exon and then takes a sum/average of all these exons across a transcript? Or, is there some other complicated procedure to merge the counts of all the exons in a transcript?

    Thank you very much for your response.

    Nirmala
  • shurjo
    Senior Member
    • Jan 2009
    • 132

    #2
    Originally posted by nimmi View Post
    Hi,

    I ran HTSeq on a *.sam file using RefSeq genes GTF file. I got counts for each transcript and would like to understand how exactly these counts were generated. Does HTSeq count a read whenever it overlaps with an exon and then takes a sum/average of all these exons across a transcript? Or, is there some other complicated procedure to merge the counts of all the exons in a transcript?

    Thank you very much for your response.

    Nirmala
    This is a question I have also been meaning to ask. I doubt that the average would be useful here. I don't know enough Python to read the code, but maybe the authors of the software will have an answer for us here?

    Comment

    • Simon Anders
      Senior Member
      • Feb 2010
      • 995

      #3
      htseq-count is a rather simple script. First of all, it does not attempt to tease apart isoforms (transcripts), it only counts for genes. So, if a read overlaps with one or more exons of a gene, it is counted for this gene. If it overlaps with exons from more then one gene, it it counted as ambiguous, i.e, for neither of the genes. The precise definition of "overlap" can be adjusted, see the figure at http://www-huber.embl.de/users/ander...doc/count.html .

      Simon

      Comment

      • ecofriendly
        Junior Member
        • Nov 2010
        • 9

        #4
        hello,

        This is a great forum and I'm learning a lot here. I would really appreciate some help troubleshooting HTSeq.

        I've installed everything correctly in the Python window, I think, since I get no error messages. From the command line, I then type:

        python -m HTSeq.scripts.count -q <sam.file> <gtf.file>

        Since I'm running the script on quiet mode, I get the following output:

        no_feature 0
        ambiguous 0
        too low aQual 0
        not aligned 0

        I tried writing the countsTable to a file, by adding a "> countsTable.txt" to the end of the above, but this text file contains the exact same info as was printed above.

        There's nothing wrong with either the SAM file created by TopHat and Samtools, or with the GTF file, as I've worked with both of them successfully in other programs.

        Thanks for any help!!

        elena
        Last edited by ecofriendly; 11-27-2010, 08:28 PM.

        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-26-2026, 11:10 AM
        0 responses
        11 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 06-17-2026, 06:09 AM
        0 responses
        46 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 06-09-2026, 11:58 AM
        0 responses
        105 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 06-05-2026, 10:09 AM
        0 responses
        125 views
        0 reactions
        Last Post SEQadmin2  
        Working...