Closed adomingues closed 4 years ago
Addendum: the bug is also present in version 0.10.0
Hi Domingues, I am having the same output as you mentioned in the first screenshot. I am running a BAM file. htseq-count -m union -f bam -s no -r name ALZT22-2Cunsorted.bam geneassembly.gff3 -o countread.text (BAM file is name sorted )
The output it generates is the following: XF:Z:ambiguous[ENSMUSG00000098178.1+ENSMUSG00000106106.2] XF:Z:ambiguous[ENSMUSG00000098178.1+ENSMUSG00000106106.2] XF:Z:alignment_not_unique XF:Z:alignment_not_unique XF:Z:alignment_not_unique XF:Z:alignment_not_unique XF:Z:no_feature XF:Z:__no_feature XF:Z:alignment_not_unique XF:Z:__alignment_not_unique
When I ran the SAM file, I received the following output:
chr1 3206084 255 1S139M = 3206084 -139 NTACAGTTAACCAACTTATACAGTTAACCAACTCCTACACTAGGTTCCTGAGCATTTCCTTAAACTTGCTAGTTCTGGTTTCCTGGCATGTGAGAGTAAGTCACATGGTAGGAGGCTGCCTTTCTATCJJJFJJFJJJAJFJJJFJFFJFJJJJJJJJJJJJJJJJJJJJJJJFJJJJJJJJFJJJJJA<<JJJJJJJJJJJJJJJJJJJJJJJJJJJJJJFJJJJJJJFFJJJJJFJFJJJJJJJJFJJJJJJJJJJJJJJAFAAA NH:i:1 HI:i:1 AS:i:276 nM:i:0 XF:Z:ENSMUSG00000051951.5 GWNJ-0965:181:GW180227920:7:2124:9881:65265 163 chr1 3206084 255 139M1S = 3206084 139 TACAGTTAACCAACTTATACAGTTAACCAACTCCTACACTAGGTTCCTGAGCATTTCCTTAAACTTGCTAGTTCTGGTTTCCTGGCATGTGAGAGTAAGTCACATGGTAGGAGGCTGCCTTTCTATCATTCAATTTTAGN
Is there something somewhere I am wrong at?
Thanks
Hi @coolmak32 ,
I think your command is missing this bit --samout=${exp}.test1.sam
that saves the annotated alignments in the file ${exp}.test1.sam
. Because this is not set that output is being redirected to the standard out.
@iosonofabio any news on when this issue could get fixed?
Cheers, António
HI Fabio
If I remember correctly, I used "original_sam_line" for the "sam_out" function, and that works only for sam. We should check. For bam, we should use 'get_sam_line".
Simon
@adomingues are the count files the same? Also I am quite busy these days, if you could make a PR that'd speed this up significantly.
@iosonofabio sorry for the late reply, but I am also quite overwhelmed these days.
are the count files the same?
As far as I can tell yes, but to be honest I barely looked at them. My goal was not to count reads, but rather annotate them for downstream processing.
if you could make a PR that'd speed this up significantly.
The priority for me now changed and I am no longer pursuing this annotation strategy in my pipeline. That said, I might have sometime to look into this in about a month.
Stale for a long time, "-f bam" is deprecated now since the underlying library has autodetection anyway so it should not be a problem as stated in this issue anyway.
Hi all,
I have have been trying to use
htseq-count
with the option--samout
in my pipelines, and while testing it came upon what looks luke a bug: when usinf both-samout
andf bam
the output sam consists of only the tags, but not the alignments:However, piping the alignments to
htseq-count
returns the expected output:Cheers, António