Unconfigured Ad

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

    #1

    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
                      Beyond CRISPR/Cas9: Understand, Choose, and Use the Right Genome Editing Tool
                      by SEQadmin2



                      CRISPR/Cas9 sparked the gene editing revolution for both research and therapeutics.1 But this system still showed severe issues that limited its applications. The most prominent were the heavy reliance on PAM sequences, delivery limitations, double-stranded breaks that prompt unintended edits and cell death, and editing inefficiency (both in targeting and in knock-in reliability).

                      Despite this, “CRISPR helped turn genome editing from a specialized technique into
                      ...
                      07-31-2026, 11:01 AM
                    • 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

                    ad_right_rmr

                    Collapse

                    News

                    Collapse

                    Topics Statistics Last Post
                    Started by SEQadmin2, Yesterday, 12:22 PM
                    0 responses
                    14 views
                    0 reactions
                    Last Post SEQadmin2  
                    Started by SEQadmin2, 08-11-2026, 10:35 AM
                    0 responses
                    16 views
                    0 reactions
                    Last Post SEQadmin2  
                    Started by SEQadmin2, 08-06-2026, 07:41 AM
                    0 responses
                    31 views
                    0 reactions
                    Last Post SEQadmin2  
                    Started by SEQadmin2, 08-03-2026, 10:13 AM
                    0 responses
                    50 views
                    0 reactions
                    Last Post SEQadmin2  
                    Working...