Hi all!
I used samtools to create sam files from bam. Then I sorted sam file with command: sort -s -k 1,1 07pos.sam > 07pos.sorted.sam . Now I am trying to run the script dexseq_count.py (it came along with the DEXSeq package). But I am getting the following error message:
I could not find the solution by searching forums and Internet. So any ideas?
Thanks in advance!
Sander
I used samtools to create sam files from bam. Then I sorted sam file with command: sort -s -k 1,1 07pos.sam > 07pos.sorted.sam . Now I am trying to run the script dexseq_count.py (it came along with the DEXSeq package). But I am getting the following error message:
Code:
$ python dexseq_count.py --paired=yes out.gff 07pos.sorted.sam 07poscounts.txt Traceback (most recent call last): File "dexseq_count.py", line 132, in <module> for af, ar in HTSeq.pair_SAM_alignments( HTSeq.SAM_Reader( sam_file ) ): File "/usr/lib/python2.6/site-packages/HTSeq/__init__.py", line 604, in pair_SAM_alignments for almnt in alignments: File "/usr/lib/python2.6/site-packages/HTSeq/__init__.py", line 543, in __iter__ algnt = SAM_Alignment.from_SAM_line( line ) File "_HTSeq.pyx", line 1249, in HTSeq._HTSeq.SAM_Alignment.from_SAM_line (src/_HTSeq.c:21848) UnboundLocalError: local variable 'cigarlist' referenced before assignment
Thanks in advance!
Sander
Comment