Entering edit mode
5.4 years ago
oozcan18
▴
10
Hello,
I would like to ask a question. While trying to get raw counts from bam file with htseq-count, it is throwing an error i that i couldn't find a solution. In short I'm reproducing some rna-seq data.
Here is my input:
htseq-count --format bam --order pos --mode intersection-strict --stranded reverse --minaqual 1 --type exon --idattr gene_id file.bam file.gtf > file.tsv
and this is the error that i get:
29438 GFF lines processed.
Error occured when reading beginning of SAM/BAM file.
_open() got an unexpected keyword argument 'check_sq'
[Exception type: TypeError, raised in csamtools.pyx:476]
Thanks for your reply
This is the header of bam file, if anyone needs.
That error is saying that a function is being called incorrectly. It's an error in the code, not in your input. This is probably being caused by incompatible versions of different python packages being installed. It can be pretty annoying to fix these kinds of issues, but reinstalling the software is always a good place to start.
Now, I solved the problem. For some reason, github version of htseq worked without causing a problem.
Thank you for your reply. It could solve my issue probably, but somehow, I managed to make it worse. But that is because of me probably.