Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • moser
    Junior Member
    • Oct 2011
    • 6

    #1

    htseq-count only not-unique counts

    Hi all,

    When counting for stranded RNAseq reads on an annotated BAC-sequence, i get no counts for my features although the features show tons of reads aligned to it in IGV.
    I checked if those were all multimapped reads, but there are actually also a lot of uniq alignments (NH:i:1).
    Do you know how to solve this?


    Reads were aligned using tophat2 and counted with following options:

    Code:
    htseq-count -m union -s reverse -i ID -t gene RNAseq2013-1-htseq-sorted.sam ../../BAC-Annotation/pure-bac2.gff
    The output i get from htseq-count:

    748 GFF lines processed.
    246143 sam line pairs processed.
    augustus_masked-bac2_383_131865-processed-gene-0.19 0
    maker-bac2_383_131865-augustus-gene-0.20 0
    maker-bac2_383_131865-augustus-gene-0.21 0
    no_feature 124646
    ambiguous 0
    too_low_aQual 0
    not_aligned 0
    alignment_not_unique 121497

    one of the features:
    maker-bac2_383_131865-augustus-gene-0.20 has location at: bac2:383-131865 65171-70109

    one of the unique aligned reads which should produce a count:
    ----------------------
    Read name = OBIWAN:33276GACXX:8:1106:19961:7833
    Location = bac2:383-131865:65,654
    Alignment start = 65,610 (+)
    Cigar = 51M
    Mapped = yes
    Mapping quality = 50
    ----------------------
    Base = G
    Base phred quality = 37
    ----------------------
    Pair start = bac2:383-131865:65737 (-)
    Pair is mapped = yes
    Insert size = 178
    Pair orientation = F2R1
    ----------------------
    Second in pair
    -------------------
    MD = 51
    XG = 0
    NH = 1
    NM = 0
    XM = 0
    XN = 0
    XO = 0
    AS = 0
    YT = UU
    -------------------
    Alignment start position = bac2:383-131865:65610
    TGAGAACAAGATGGTGAAGCTCATAGCTGATGCTAGCAAAGAGTGGGGGAT

    Thank you, Michel
  • dpryan
    Devon Ryan
    • Jul 2011
    • 3478

    #2
    You might use the "-o" option to try to debug things.

    Comment

    • jparsons
      Member
      • Feb 2012
      • 62

      #3
      I'd be looking at the various -s options. Although you do seem to be aware that they exist and that your run is stranded, is reverse the correct orientation?

      Comment

      • moser
        Junior Member
        • Oct 2011
        • 6

        #4
        Hi, thank you for the fast response. i already played with the -s option which doesnt change the output and i am pretty sure "reverse" is the correct setting for stranded truseq illumina rna-seq reads.

        When using the -o option, the sam file is only containing multimapped reads like:

        OBIWAN:33276GACXX:8:2311:4833:66136 161 bac2:383-131865 65536 3 51M = 65923 3264 AATGAGCAACCAGCAGCCACAACCCTGCATGGGGTAGTTCTTCAAGTGCCA @CCFFFFFHHHHHJJIJJJJIJJJJIIJGIJJJJ?FHGHIIIJJJJGIJIG AS:i:0 XN:i:0 XM:i:0 XO:i:0 XG:i:0 NM:i:0 MD:Z:51 YT:Z:UU NH:i:2 CC:Z:= CP:i:65536 HI:i:0 XF:Z:alignment_not_unique


        BUT when i look at the orginial sam file to do the counting with, i find unique aligned reads on the same feature (from position 65171 to 70109 of bac2).
        Unfortunately they dont get reported.

        OBIWAN:33276GACXX:8:2111:9231:51465 163 bac2:383-131865 65541 50 51M = 65637 147 GCAACCAGCAGCCACAACCCTGCATGGGGTAGTTCTTCAAGTGCCAGTGAT CCCFFFFFHHHHHJJJJJJJJJJJJJJJJCGIHIJIJJJJJHIJJJJFHII AS:i:0 XN:i:0 XM:i:0 XO:i:0 XG:i:0 NM:i:0 MD:Z:51 YT:Z:UU NH:i:1

        By the way, do you know what the = sign in column 7 means? Should this be the strand information?

        best, Michel

        Comment

        • dpryan
          Devon Ryan
          • Jul 2011
          • 3478

          #5
          It seems very odd that the unique alignments aren't output to the file specified with -o. Maybe try making a miniature SAM file with just a couple uniquely aligned pairs that you know should be counted in transcripts and then rerun htseq-count (optionally with a miniature annotation file). BTW, what version of htseq-count and python are you using?

          Regarding the = sign, that just means that the mate is mapped to the same chromosome/contig. If the mates are mapped to different contigs, then that field will contain the name of the other contig.

          Comment

          • moser
            Junior Member
            • Oct 2011
            • 6

            #6
            i am using htseq-count version 0.5.4p3 and Python 2.7.3

            Comment

            • dpryan
              Devon Ryan
              • Jul 2011
              • 3478

              #7
              Originally posted by moser View Post
              i am using htseq-count version 0.5.4p3 and Python 2.7.3
              I'm unable to reproduce this issue with the same versions of htseq-count and python. You might try making a SAM file with just a few reads and an annotation with just a single gene to which the reads should align and rerun htseq-count. If the reads are missing from the file specified by -o, then perhaps just post things here.

              Comment

              • aggp11
                Member
                • Jun 2011
                • 87

                #8
                Sorry, if this seems too simple to be an issue, but did you check that the location of your features match in both the sam and GTF files?

                Comment

                Latest Articles

                Collapse

                • SEQadmin2
                  Multiomic Liquid Biopsy: What DNA/RNA Panels Reveal That DNA Alone Can’t
                  by SEQadmin2



                  Tumors contain complex mixtures of cell populations that evolve in response to treatment and host-specific factors. Tissue biopsies provide only static snapshots of a tumor’s state. But what if we could follow that evolution over time using a minimally invasive technique?

                  Liquid biopsies can detect tumor-derived material circulating in the bloodstream, providing a way to study treatment response, detect emerging resistance, and discover new biomarkers. Circulating
                  ...
                  10-14-2026, 09:55 AM
                • SEQadmin2
                  New Genomics Technologies Take Aim at Long-Standing Limits
                  by SEQadmin2


                  Researchers using sequencing and genomics tools often have to make trade-offs. They can choose between speed or scale, short reads or long-range information, or targeted panels or a view of the whole transcriptome. New technologies that have been released this year are built to address those tough choices.

                  We asked six companies the same four questions to learn about their latest products. The new technologies bring a lot to the table, including rethinking sequencing
                  ...
                  09-28-2026, 10:25 AM

                ad_right_rmr

                Collapse

                News

                Collapse

                Topics Statistics Last Post
                Started by SEQadmin2, Yesterday, 11:13 AM
                0 responses
                16 views
                0 reactions
                Last Post SEQadmin2  
                Started by SEQadmin2, Yesterday, 10:48 AM
                0 responses
                17 views
                0 reactions
                Last Post SEQadmin2  
                Started by SEQadmin2, 10-15-2026, 10:52 AM
                0 responses
                35 views
                0 reactions
                Last Post SEQadmin2  
                Started by SEQadmin2, 10-14-2026, 05:39 AM
                0 responses
                42 views
                0 reactions
                Last Post SEQadmin2  
                Working...