lingfeiwang / findr-R

Standalone R package for findr
2 stars 2 forks source link

Error in findr.netr_one_greedy(ans) : long vectors (argument 2) are not supported in .C #6

Closed whtop closed 4 years ago

whtop commented 4 years ago

ans1 = findr.pij_gassist(genotype, mVals, mVals, nodiag=T). Here, genotype is 60000 X 700, and mVals is 60000 X 700. I get the above error.

Or, when using: net = findr.netr_one_greedy(ans) When ans is a matrix of 60000 X 60000. And I also get the above error.

When the matrix size is small, there is no error.

lingfeiwang commented 4 years ago

Hi whtop,

It seems to be a similar issue with this due to R's internal limits of parameter size in function .C.

The workaround using R's .Call function requires quite some refactoring of the code which we have no intention of implementing at the moment. Also, R is quite memory intensive compared to python or C. With large input sizes, we would recommend the binary or python interface instead. Note that they need separate, prior installation of the findr library. If you really need the program in R, the reticulate package might help.

Please let us know if these solutions don't work.

whtop commented 4 years ago

Thanks, python works.