Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • emilyjia2000
    Member
    • May 2011
    • 59

    htseq-count on UTR

    Hi
    Does anybody know if htseq-count works on UTR? I tried it, only got gene list, there is no count in the output.
  • chadn737
    Senior Member
    • Jan 2009
    • 392

    #2
    Read the instructions for htseq-count:



    -t <feature type>, --type=<feature type>

    feature type (3rd column in GFF file) to be used, all features of other type are ignored (default, suitable for RNA-Seq and Ensembl GTF files: exon)


    By using the -t, --type= argument you can tell what features you want htseq-count to use. The default is exon, so you cant use the defaults. The question then is do you want reads mapping only to the UTR or to the entire transcript, including the UTR? That will determine what feature type you give it.

    So say you want reads mapping only to UTRs. Whatever your UTRs are named in your GFF file, use that with the -t or --type= arguments when you run htseq-count.

    Comment

    • emilyjia2000
      Member
      • May 2011
      • 59

      #3
      Hi chadn737,

      I used -t feature in the command line and set feature to utr, please see the command i used:
      htseq-count -s no -t utr -m intersection-nonempty file.sam utr.gff > urtcount.txt

      the output looks like:

      "06100073560ik"
      "06100071803ik"
      "0610008608Rik"
      "0610008008Rik"
      "0610008007Rik"
      "0610008007Rik"
      "0610009760Rik"
      "06100094371ik"
      "06100094166ik"
      "06100094858ik"
      "0610009020Rik"
      "06100091744ik"

      Only gene_id is there and no count. BTW, we used NCBI reference and modified it according to ensembl gff file format.

      THanks,

      Comment

      • chadn737
        Senior Member
        • Jan 2009
        • 392

        #4
        Look in your gff file to find out specifically how the UTRs are labeled. I'm not familiar with your specific species/gff file. For instance in the TAIR10 GFF they are named as three_prime_UTR or five_prime_UTR. Assuming your gff file even has the UTRs listed? You may need to modify the names using sed or alternatively count reads for 5' UTRs and 3' UTRs seperately.

        Comment

        • emilyjia2000
          Member
          • May 2011
          • 59

          #5
          Hi Chand737,

          The GFF used had been modified according to ensembl format as following

          1 bed2gff utr5 8794025 8794051 . - . transcript_id "NM_27671"; utr5_number "0016"; gene_id "NM_27671"
          1 bed2gff utr5 8872242 8872295 . - . transcript_id "NM_27671"; utr5_number "0017"; gene_id "NM_27671"
          1 bed2gff utr5 8989267 8989330 . - . transcript_id "NM_27671"; utr5_number "0018"; gene_id "NM_27671"
          1 bed2gff utr5 9193260 9193341 . - . transcript_id "NM_27671"; utr5_number "0019"; gene_id "NM_27671"
          1 bed2gff utr5 9288214 9289811 . - . transcript_id "NM_27671"; utr5_number "0020"; gene_id "NM_27671"

          total 9 columns. each columns separated by tab. Starting from transcript_id to gene_id is one column (the last column).
          I am using mouse genome. 5'UTR

          Thanks,
          Li
          Last edited by emilyjia2000; 04-06-2012, 06:51 AM.

          Comment

          • chadn737
            Senior Member
            • Jan 2009
            • 392

            #6
            Originally posted by emilyjia2000 View Post
            Hi Chand737,

            The GFF used had been modified according to ensembl format as following

            1 bed2gff utr 8794025 8794051 . - . transcript_id "NM_27671"; utr_number "0016"; gene_id "NM_27671"
            1 bed2gff utr 8872242 8872295 . - . transcript_id "NM_27671"; utr_number "0017"; gene_id "NM_27671"
            1 bed2gff utr 8989267 8989330 . - . transcript_id "NM_27671"; utr_number "0018"; gene_id "NM_27671"
            1 bed2gff utr 9193260 9193341 . - . transcript_id "NM_27671"; utr_number "0019"; gene_id "NM_27671"
            1 bed2gff utr 9288214 9289811 . - . transcript_id "NM_27671"; utr_number "0020"; gene_id "NM_27671"

            I am using mouse genome.

            Thanks,
            Li
            Why does your output from your last post:

            "06100073560ik"
            "06100071803ik"
            "0610008608Rik"
            "0610008008Rik"
            "0610008007Rik"
            "0610008007Rik"
            "0610009760Rik"
            "06100094371ik"
            "06100094166ik"
            "06100094858ik"
            "0610009020Rik"
            "06100091744ik"

            Not match the gene_ids of your gff file?

            That suggests to me that the problem has to do with naming of something in one of your files.
            Last edited by chadn737; 04-06-2012, 11:10 AM.

            Comment

            • emilyjia2000
              Member
              • May 2011
              • 59

              #7
              Sorry I have two annotation files, one is the posted, another is the one with geneid as listed in the output. two files have the same format.

              Sorry I didn't make it clear.

              Comment

              • chadn737
                Senior Member
                • Jan 2009
                • 392

                #8
                Originally posted by emilyjia2000 View Post
                Hi Chand737,

                The GFF used had been modified according to ensembl format as following

                1 bed2gff utr5 8794025 8794051 . - . transcript_id "NM_27671"; utr5_number "0016"; gene_id "NM_27671"
                1 bed2gff utr5 8872242 8872295 . - . transcript_id "NM_27671"; utr5_number "0017"; gene_id "NM_27671"
                1 bed2gff utr5 8989267 8989330 . - . transcript_id "NM_27671"; utr5_number "0018"; gene_id "NM_27671"
                1 bed2gff utr5 9193260 9193341 . - . transcript_id "NM_27671"; utr5_number "0019"; gene_id "NM_27671"
                1 bed2gff utr5 9288214 9289811 . - . transcript_id "NM_27671"; utr5_number "0020"; gene_id "NM_27671"

                total 9 columns. each columns separated by tab. Starting from transcript_id to gene_id is one column (the last column).
                I am using mouse genome. 5'UTR

                Thanks,
                Li
                It looks like you edited this post while or after I replied. In this gff file your feature type is listed as "utr5" not utr.

                So try using -t utr5 instead of -t utr or alternatively --type=utr5.

                Comment

                • chadn737
                  Senior Member
                  • Jan 2009
                  • 392

                  #9
                  Something else to check. At the very end of your output from htseq-count there should be the following categories:

                  no_feature
                  ambiguous
                  too_low_aQual
                  not_aligned
                  alignment_not_unique

                  How many reads fall into these categories? Assuming that everything in your sam and gff files is right, and the only problem is the feature type you give to htseq-count, then you should see read counts in these categories. Particularly since the majority of your reads are unlikely to be coming from UTR regions.

                  If these categories are empty, then something else is wrong.

                  Comment

                  • emilyjia2000
                    Member
                    • May 2011
                    • 59

                    #10
                    Thanks Chand737, I tried both features: -t utr or -t utr5, both of them delivered the same results.

                    As you pointed out, I checked the category as follows:

                    no_feature 122533035
                    ambiguous 1417743
                    too_low_aQual 0
                    not_aligned 0
                    alignment_not_unique 20439904

                    Could you please let me know what's wrong with it?

                    Thanks

                    Comment

                    Latest Articles

                    Collapse

                    • SEQadmin2
                      Proteomic Platforms: How to Choose the Right Analytical Strategy to Improve Detection and Clinical Applications
                      by SEQadmin2


                      Proteomics platforms are evolving rapidly, with advances in mass spectrometry and affinity-based approaches expanding what researchers can detect and at what scale. As the field moves toward deeper proteome coverage and clinical applications, scientists face an increasingly complex landscape of tools. This article will explore how researchers are navigating these choices to find the right platform for their work.

                      The systematic characterization of the human proteome has
                      ...
                      07-20-2026, 11:48 AM
                    • SEQadmin2
                      Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
                      by SEQadmin2



                      Genomics studies in neuroscience face a special challenge due to the brain’s complexity and scarcity of samples. Mapping changes in cell type and state using conventional next-generation sequencing methods remains challenging. Advances in technologies like single-cell sequencing, spatial transcriptomics, and long-read sequencing have opened the door to deeper studies of the brain and diseases like Alzheimer’s, amyotrophic lateral sclerosis (ALS), and schizophrenia.
                      ...
                      07-09-2026, 11:10 AM
                    • 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...
                      07-08-2026, 05:17 AM

                    ad_right_rmr

                    Collapse

                    News

                    Collapse

                    Topics Statistics Last Post
                    Started by SEQadmin2, Yesterday, 11:41 AM
                    0 responses
                    9 views
                    0 reactions
                    Last Post SEQadmin2  
                    Started by SEQadmin2, 07-20-2026, 11:10 AM
                    0 responses
                    23 views
                    0 reactions
                    Last Post SEQadmin2  
                    Started by SEQadmin2, 07-13-2026, 10:26 AM
                    0 responses
                    36 views
                    0 reactions
                    Last Post SEQadmin2  
                    Started by SEQadmin2, 07-09-2026, 10:04 AM
                    0 responses
                    45 views
                    0 reactions
                    Last Post SEQadmin2  
                    Working...