Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • HTSeq count : outsam

    Hi
    I'm running HTSeq-count version 0.6.1p1. Trying out outsam option: I do get the sam file with the XF tags but the reads are blanks.
    example:
    XF:Z:__alignment_not_unique
    XF:Z:__no_feature
    XF:Z:__no_feature
    ...

    Also I tried with the python framework, imported the lib, read the bam file, everything looks OK, but the attribute: original_sam_line is indeed a blank string.

    Any ideas?

    The input bam file is from tophat (v2.0.10)


    This is my command:
    htseq-count -f bam --stranded yes -a 10 -t exon -i gene_id -m union -o samout3.sam accepted_hits.bam genes.3utr.gtf > counts3.txt

    thanks,
    B

  • #2
    Originally posted by barak View Post
    Hi
    I'm running HTSeq-count version 0.6.1p1. Trying out outsam option: I do get the sam file with the XF tags but the reads are blanks.
    example:
    XF:Z:__alignment_not_unique
    XF:Z:__no_feature
    XF:Z:__no_feature
    ...

    Also I tried with the python framework, imported the lib, read the bam file, everything looks OK, but the attribute: original_sam_line is indeed a blank string.

    Any ideas?

    The input bam file is from tophat (v2.0.10)


    This is my command:
    htseq-count -f bam --stranded yes -a 10 -t exon -i gene_id -m union -o samout3.sam accepted_hits.bam genes.3utr.gtf > counts3.txt

    thanks,
    B
    Barak,

    I think this is a bug in HTSeq when trying to use BAM files directly as input; it has happened to me as well. The only way around it is to fall back to using SAM input. You can at least pipe the SAM stream to htseq-count so you don't have to save the uncompressed SAM on disk.

    Code:
    samtools view -h accepted_hits.bam | htseq-count -f sam --stranded yes -a 10 -t exon -i gene_id -m union -o samout3.sam - genes.3utr.gtf > counts3.txt

    Comment


    • #3
      Originally posted by kmcarr View Post
      Barak,

      I think this is a bug in HTSeq when trying to use BAM files directly as input; it has happened to me as well. The only way around it is to fall back to using SAM input. You can at least pipe the SAM stream to htseq-count so you don't have to save the uncompressed SAM on disk.

      Code:
      samtools view -h accepted_hits.bam | htseq-count -f sam --stranded yes -a 10 -t exon -i gene_id -m union -o samout3.sam - genes.3utr.gtf > counts3.txt
      Thanks, it works!
      While working on this I realized that I could use the method: get_sam_line() and change the code in HTSeq-count. I'm still trying to figure out a reason NOT to do so, but it seems to hold the same info as with the original sam line.
      B

      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...
        05-06-2024, 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, Yesterday, 06:35 AM
      0 responses
      14 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 05-09-2024, 02:46 PM
      0 responses
      18 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 05-07-2024, 06:57 AM
      0 responses
      17 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 05-06-2024, 07:17 AM
      0 responses
      19 views
      0 likes
      Last Post seqadmin  
      Working...
      X