Seqanswers Leaderboard Ad

Collapse

Announcement

Collapse
No announcement yet.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • HtSeq counts 0 features for mapped reads in sam fliles

    Hello,
    My input :
    50 bp RNA Seq single end illumina reads mapped to GRCh 38 from ensemble.
    Mapping was performed both by STAR and bowtie-2.For star almost 70% reads were uniquely mapped and I used HtSeq to count the features:
    python -m HTSeq.scripts.count -t exon -m union -s no 1.sam $ref > 1.sam_1.counts

    and for the gene "ENSG00000100219" I got a feature count of 0. I tried to see if there was any mapping for this gene

    samtools view 1.bam 22:28794555-28800597 | wc -l

    and found that there were 2899 reads mapped.

    I tried counting just the transcript and the gene to no avail.

    I am quite not sure why this would be the case? Please let me know if my understanding is right. Is there an issue with the alignment or htseq flags?

  • #2
    Originally posted by rags_brown View Post
    Hello,
    My input :
    50 bp RNA Seq single end illumina reads mapped to GRCh 38 from ensemble.
    Mapping was performed both by STAR and bowtie-2.For star almost 70% reads were uniquely mapped and I used HtSeq to count the features:
    python -m HTSeq.scripts.count -t exon -m union -s no 1.sam $ref > 1.sam_1.counts

    and for the gene "ENSG00000100219" I got a feature count of 0. I tried to see if there was any mapping for this gene

    samtools view 1.bam 22:28794555-28800597 | wc -l

    and found that there were 2899 reads mapped.

    I tried counting just the transcript and the gene to no avail.

    I am quite not sure why this would be the case? Please let me know if my understanding is right. Is there an issue with the alignment or htseq flags?
    Hi,

    I can think of a few of reasons HTseq might not count these reads: (i) they are multimappers, (ii) they are not overlapping exons of the gene (i.e. they are all intronic) (iii) they overlap exons of more than one gene.

    If you make a new BAM file with just the selected reads, using
    samtools view -b 1.bam 22:28794555-28800597 > 2.bam
    and then run HTseq with 2.bam, it will tell you how it classified the unassigned reads (after all the gene counts):
    __no_feature --> (ii)
    __ambiguous --> (iii)
    __too_low_aQual
    __not_aligned
    __alignment_not_unique -->(i)

    Also, you can check for (i) by looking at the NH:i:<Nmult> tag of the reads selected over the gene locus.
    To check for (ii) or (iii), you can load your alignments into a browser and see if any of them overlap exons of the gene.

    Cheers
    Alex

    Comment


    • #3
      Hi,

      next to Alex' suggestions, you might also check the chromosomes' name in your gtf-file. Sometimes they come as e.g. 'chr22' while your bam-file has a '22' instead.

      Cheers,
      Michael

      Comment

      Latest Articles

      Collapse

      • seqadmin
        Recent Advances in Sequencing Analysis Tools
        by seqadmin


        The sequencing world is rapidly changing due to declining costs, enhanced accuracies, and the advent of newer, cutting-edge instruments. Equally important to these developments are improvements in sequencing analysis, a process that converts vast amounts of raw data into a comprehensible and meaningful form. This complex task requires expertise and the right analysis tools. In this article, we highlight the progress and innovation in sequencing analysis by reviewing several of the...
        Yesterday, 07:48 AM
      • seqadmin
        Essential Discoveries and Tools in Epitranscriptomics
        by seqadmin




        The field of epigenetics has traditionally concentrated more on DNA and how changes like methylation and phosphorylation of histones impact gene expression and regulation. However, our increased understanding of RNA modifications and their importance in cellular processes has led to a rise in epitranscriptomics research. “Epitranscriptomics brings together the concepts of epigenetics and gene expression,” explained Adrien Leger, PhD, Principal Research Scientist...
        04-22-2024, 07:01 AM

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by seqadmin, Today, 06:57 AM
      0 responses
      11 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, Yesterday, 07:17 AM
      0 responses
      14 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 05-02-2024, 08:06 AM
      0 responses
      19 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 04-30-2024, 12:17 PM
      0 responses
      24 views
      0 likes
      Last Post seqadmin  
      Working...
      X