Hi,
I'm trying to run rhe python script for counting the reads for a dexseq analysis.
But I keep getting a strange error I can't understand
and the error is:
The bam files were created by the STAR aligner and multiple mapping was allowed.
here is a sample of one of the bam files. I attached the first 1000 lines of the bam files as a file to test.
I'm trying to run rhe python script for counting the reads for a dexseq analysis.
But I keep getting a strange error I can't understand
Code:
python ~/R/x86_64-pc-linux-gnu-library/3.1/DEXSeq/python_scripts/dexseq_count.py -p yes -s no MmusGRCm38.DEXSeq.gff -f bam -r pos ../STARmapping_allSamples/C23/C23.STAR.sorted.bam C23.DEXSeq.paired.unstranded.txt
Code:
Traceback (most recent call last): File "/home/yeroslaviz/R/x86_64-pc-linux-gnu-library/3.1/DEXSeq/python_scripts/dexseq_count.py", line 236, in <module> for a in reader( sam_file ): File "/usr/local/lib/python2.7/dist-packages/HTSeq-0.6.1p1-py2.7-linux-x86_64.egg/HTSeq/__init__.py", line 946, in __iter__ yield SAM_Alignment.from_pysam_AlignedRead( pa, sf ) File "_HTSeq.pyx", line 1247, in HTSeq._HTSeq.SAM_Alignment.from_pysam_AlignedRead (src/_HTSeq.c:24235) File "csamtools.pyx", line 2308, in csamtools.AlignedRead.tags.__get__ (lib/pysam/csamtools.c:19977) OverflowError: unsigned byte integer is less than minimum
here is a sample of one of the bam files. I attached the first 1000 lines of the bam files as a file to test.
Code:
samtools view ../STARmapping_allSamples/C23/C23.STAR.sorted.bam | head HISEQ:244:C492NACXX:2:1312:7663:90531 99 10 3138670 255 86M15S = 3138670 86 HISEQ:244:C492NACXX:2:1312:7663:90531 147 10 3138670 255 15S86M = 3138670 -86 HISEQ:244:C492NACXX:2:1314:12970:38730 99 10 3140537 255 90M11S = 3140537 90 HISEQ:244:C492NACXX:2:1314:12970:38730 147 10 3140537 255 11S90M = 3140537 -90 HISEQ:244:C492NACXX:2:2110:4692:21500 99 10 3147218 3 101M = 3147234 117 HISEQ:244:C492NACXX:2:2110:4692:21500 147 10 3147234 3 101M = 3147218 -117 HISEQ:244:C492NACXX:2:2110:14708:71286 99 10 3199864 3 101M = 3199882 119 HISEQ:244:C492NACXX:2:2110:14708:71286 147 10 3199882 3 101M = 3199864 -119 HISEQ:244:C492NACXX:2:1316:5341:98737 419 10 3238883 0 101M = 3238903 121 HISEQ:244:C492NACXX:2:1316:5341:98737 339 10 3238903 0 101M = 3238883 -121
Comment