deepTools
deepTools copied to clipboard
computeMatrix scale-regions. error("'i' format requires -2147483648 <= number <= 2147483647",)
Hi
I am having issues with computeMatrix scale-regions.
-
I did not find this issue (or a similar issue) using the search tab above. Please point me to the right issue if this has been asked before.
-
My deepTools version (
deeptools --version) isdeeptools 3.4.3and my python version (python --version) isPython 2.7.17and (python3 --version) isPython 3.6.9. -
my command is:
computeMatrix scale-regions
-p 10 -R file.bed
-S sample1.bpm.bw
sample2.bpm.bw
sample3.bpm.bw
-b 20000
-a 20000
--regionBodyLength 20
--skipZeros
-o matrix.gz
My bed file looks like: chr1 11504 11675 -248944747 - L1MC5a LINE L1 -2382 395 199 3 chr1 18906 19048 -248937374 + L2a LINE L2 2942 3104 -322 8 chr1 19971 20405 -248936017 + L3 LINE CR1 2680 3129 -970 9 chr1 20530 20679 -248935743 + Plat_L3 LINE CR1 2802 2947 -639 1 chr1 23803 24038 -248932384 + L2b LINE L2 2940 3212 -175 1 chr1 24294 24448 -248931974 + L2b LINE L2 3268 3425 -1 1 chr1 26582 26790 -248929632 - L2c LINE L2 -14 3373 3116 1 chr1 27053 27137 -248929285 - L2c LINE L2 -272 3115 3026 1 chr1 29901 30198 -248926224 + L1MB3 LINE L1 5883 6181 -2 2 chr1 33047 33456 -248922966 + L1MB5 LINE L1 5746 6174 0 2
and the bpm.bw files were generated using the following command:
bamCompare -p 20
--operation mean
--effectiveGenomeSize 2913022398
--normalizeUsing BPM
--binSize 50
--scaleFactorsMethod None
-b1 file1.bam
-b2 file2.bam
-o sample1.bpm.bw
- The error is:
Traceback (most recent call last):
File "/usr/local/bin/computeMatrix", line 14, in
The 3 ... were added by me, the error is gigantic. I found this question in stackoverflow that I think is related to this issue but I am unsure how to apply the suggested solution. I must add I have used deeptools before in my system with no issues.
Thank you very much for your help!
Is there any reason your scores span such an extreme range? It's column 4 of you BED file that's causing an issue.
Thanks for the quick answer. I guess I can keep only the first 3 columns to make a 'minimal' bed file and avoid this issue. I know is a weird range but a collaborator asked for it and decided to give it a try. Is there any reason against a range as extreme as this one? Thanks again!
Well you will end up running into weird corner cases like this due to treating it as a 32-bit integer.