Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • barak
    replied
    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

    Leave a comment:


  • kmcarr
    replied
    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

    Leave a comment:


  • barak
    started a topic HTSeq count : outsam

    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

Latest Articles

Collapse

  • 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
  • seqadmin
    Genetic Variation in Immunogenetics and Antibody Diversity
    by seqadmin



    The field of immunogenetics explores how genetic variations influence immune responses and susceptibility to disease. In a recent SEQanswers webinar, Oscar Rodriguez, Ph.D., Postdoctoral Researcher at the University of Louisville, and Ruben Martínez Barricarte, Ph.D., Assistant Professor of Medicine at Vanderbilt University, shared recent advancements in immunogenetics. This article discusses their research on genetic variation in antibody loci, antibody production processes,...
    11-06-2024, 07:24 PM

ad_right_rmr

Collapse

News

Collapse

Topics Statistics Last Post
Started by seqadmin, 12-02-2024, 09:29 AM
0 responses
151 views
0 likes
Last Post seqadmin  
Started by seqadmin, 12-02-2024, 09:06 AM
0 responses
51 views
0 likes
Last Post seqadmin  
Started by seqadmin, 12-02-2024, 08:03 AM
0 responses
43 views
0 likes
Last Post seqadmin  
Started by seqadmin, 11-22-2024, 07:36 AM
0 responses
76 views
0 likes
Last Post seqadmin  
Working...
X