parklab / HiNT

HiC for copy Number variation and Translocation detection
MIT License
36 stars 8 forks source link

TypeError: 'numpy.float64' object cannot be interpreted as an integer #26

Open stutimishra7 opened 4 months ago

stutimishra7 commented 4 months ago

hint tl -m test.hic -f juicer --refdir /home/stutik/testData/hint-files/hg19/ --backdir /home/stutik/testData/hint-files/background/hg19 -g hg19 -n 4DNFICSTCJQZ -c 50 --ppath /home/stutik/pyhtn3/envs/myenv/bin/pairix -p 30 -o HiNTtransl_juicerOUTPUT2 [15:36:59] Argument List: [15:36:59] Hi-C contact matrix = test.hic [15:36:59] Hi-C contact matrix format = juicer [15:36:59] Genome = hg19 [15:36:59] Name = 4DNFICSTCJQZ [15:36:59] Output directory = HiNTtransl_juicerOUTPUT2 [15:36:59] Prepare Matrices! HiC version: 8 Traceback (most recent call last): File "/home/stutik/python3/envs/myenv1/bin/hint", line 197, in main() File "/home/stutik/python3/envs/myenv1/bin/hint", line 193, in main translrun(argparser) File "/home/stutik/python3/envs/myenv1/lib/python3.6/site-packages/HiNT/runhint.py", line 112, in translrun matrix1MbInfo = hicToMatrix(opts.matrixfile, 1000, chromlengthf, opts.outdir, opts.name) File "/home/stutik/python3/envs/myenv1/lib/python3.6/site-packages/HiNT/hicToMatrix.py", line 44, in hicToMatrix dumpMatrix(chrom1, chrom2, resolution, hicfile, chromInfo,outputname) File "/home/stutik/python3/envs/myenv1/lib/python3.6/site-packages/HiNT/hicToMatrix.py", line 29, in dumpMatrix res = coo_matrix((data, (row, col)), shape=(binnumber1, binnumber2)).toarray() File "/home/stutik/python3/envs/myenv1/lib/python3.6/site-packages/scipy/sparse/coo.py", line 154, in init self._shape = check_shape((M, N)) File "/home/stutik/python3/envs/myenv1/lib/python3.6/site-packages/scipy/sparse/sputils.py", line 278, in check_shape new_shape = tuple(operator.index(arg) for arg in args) File "/home/stutik/python3/envs/myenv1/lib/python3.6/site-packages/scipy/sparse/sputils.py", line 278, in new_shape = tuple(operator.index(arg) for arg in args) TypeError: 'numpy.float64' object cannot be interpreted as an integer