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
        Advancing Precision Medicine for Rare Diseases in Children
        by seqadmin




        Many organizations study rare diseases, but few have a mission as impactful as Rady Children’s Institute for Genomic Medicine (RCIGM). “We are all about changing outcomes for children,” explained Dr. Stephen Kingsmore, President and CEO of the group. The institute’s initial goal was to provide rapid diagnoses for critically ill children and shorten their diagnostic odyssey, a term used to describe the long and arduous process it takes patients to obtain an accurate...
        12-16-2024, 07:57 AM
      • seqadmin
        Recent Advances in Sequencing Technologies
        by seqadmin



        Innovations in next-generation sequencing technologies and techniques are driving more precise and comprehensive exploration of complex biological systems. Current advancements include improved accessibility for long-read sequencing and significant progress in single-cell and 3D genomics. This article explores some of the most impactful developments in the field over the past year.

        Long-Read Sequencing
        Long-read sequencing has seen remarkable advancements,...
        12-02-2024, 01:49 PM

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by seqadmin, 12-17-2024, 10:28 AM
      0 responses
      33 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 12-13-2024, 08:24 AM
      0 responses
      49 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 12-12-2024, 07:41 AM
      0 responses
      34 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 12-11-2024, 07:45 AM
      0 responses
      46 views
      0 likes
      Last Post seqadmin  
      Working...
      X