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
        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 on Modified Bases...
        Today, 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
      37 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 04-10-2024, 10:19 PM
      0 responses
      41 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 04-10-2024, 09:21 AM
      0 responses
      35 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 04-04-2024, 09:00 AM
      0 responses
      54 views
      0 likes
      Last Post seqadmin  
      Working...
      X