You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "~/mhic/bin/KR_norm_mHiC.py", line 468, in <module>
writeInteraction(norm_mtx, baseName, args.outdir, revFragsDic, args.chrNum, args.resolution)
File "~/mhic/bin/KR_norm_mHiC.py", line 361, in writeInteraction
matrixFile.write(("%s\t%d\t%s\t%d\t%.4f\n") % (chr1, mid1, chr2, mid2, values[i]))
TypeError: %d format: a number is required, not str
When I interrogate KR_norm_mHiC.py, it is trying to print the following:
When executing step 4 I get the following error:
When I interrogate KR_norm_mHiC.py, it is trying to print the following:
LtaP_01 12500 LtaP_01 15500 3.3297406440638815
Where the type of each object is such:
<class 'str'> <class 'str'> <class 'str'> <class 'str'> <class 'numpy.float64'>
Clearly the bin coordinates are meant to be integers. I'm not sure why I would be running into this error, maybe a python version difference?
Also in regards to the string formatting, I think it is a bit more readable to use the Python 3 f-string formatting.
The text was updated successfully, but these errors were encountered: