RHiCDB('LentiAS2.50000.matrices/',resolution=50000,chrsizes=chrsizes,ref=ref,wd=wd, mind=mind,wdsize=wdsize)
[1] "One sample is provided, detect CDBs!"
[1] "* Detect all local maximum peaks on each chromosome."
[1] "Processing chr1"
Error in N/resolution : non-numeric argument to binary operator
Matrices are in sparse format (head of chr1.matrix):
0 50000 67.345813
0 150000 5.691894
0 250000 33.409046
0 300000 13.940334
0 400000 25.948924
Matrices are in sparse format (head of chr1.matrix): 0 50000 67.345813 0 150000 5.691894 0 250000 33.409046 0 300000 13.940334 0 400000 25.948924
chrsizes in recommended format: chr1 282763074 chr2 266435125 chr3 177699992 chr4 184226339 chr5 173707219
ref sites are in recommended format: 1 33325 1 33371 1 71312 1 71370 1 72375 1 74602 1 135340
wd=1 mind=2 wdsize=6
What could be the problem? Program downloaded on 5/6/2020. R version 4.0.0.
edited:
The problem was with the chrsizes file, which should have only one column with the sizes.
Sorry.
Thank you