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
        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...
        Yesterday, 07:01 AM
      • seqadmin
        Current Approaches to Protein Sequencing
        by seqadmin


        Proteins are often described as the workhorses of the cell, and identifying their sequences is key to understanding their role in biological processes and disease. Currently, the most common technique used to determine protein sequences is mass spectrometry. While still a valuable tool, mass spectrometry faces several limitations and requires a highly experienced scientist familiar with the equipment to operate it. Additionally, other proteomic methods, like affinity assays, are constrained...
        04-04-2024, 04:25 PM

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by seqadmin, 04-11-2024, 12:08 PM
      0 responses
      59 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 04-10-2024, 10:19 PM
      0 responses
      57 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 04-10-2024, 09:21 AM
      0 responses
      48 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 04-04-2024, 09:00 AM
      0 responses
      55 views
      0 likes
      Last Post seqadmin  
      Working...
      X