Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
stutimishra7 opened this issue May 11, 2024 · 0 comments

Comments

@stutimishra7
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant