Open AroneyS opened 1 year ago
Hi! I haven't seen this error before, but it seems to be related to parallel computing. Could you please try to test "parallel=F" and see what happens?
Thanks for the prompt reply! Unfortunately I still get the same error.
r$> parallel=F
r$> EQO_ga("c",Microbiome,trait,maxIter=100)
Error in UseMethod("sendData") :
no applicable method for 'sendData' applied to an object of class "NULL"
Oh sorry I mean EQO_ga("c",Microbiome,trait,maxIter=100,parallel="F")
Oh right, haha. I get:
r$> EQO_ga("c",Microbiome,trait,maxIter=100,parallel="F")
Error in startParallel(parallel) :
Only 'snow' and 'multicore' clusters allowed!
If I change it to FALSE
, it seems to work:
r$> EQO_ga("c",Microbiome,trait,maxIter=100,parallel=FALSE)
$fitness
[1] 0.5405499
$x
[1] 1 1 1 0 0 0 0 0
$members
[1] "species1" "species2" "species3"
$abundance
sample1 sample2 sample3 sample4 sample5 sample6 sample7 sample8 sample9 sample10 sample11 sample12 sample13 sample14 sample15 sample16 sample17 sample18 sample19 sample20
0.3576157 0.3069562 0.1843896 0.4815454 0.5583474 0.3421784 0.1713994 0.4023960 0.2839882 0.2693271 0.2830664 0.3858133 0.1058092 0.2769600 0.3627146 0.6091891 0.3884003 0.2491890 0.2316346 0.2928571
$performance
[1] 1
ah, sorry, I did mean FALSE... Ok cool, thank you for sharing with us this information. It seems that doParallel R package leveraged for genetic algorithm does not work well on your computer, which might take some time to figure out why. For the time being perhaps just run it without parallel :)
Hi @Xiaoyu2425,
I've installed mEQO using devtools into
R version 4.2.3
. It seems to install fine and I can accessMicrobiome
andtrait
, but when I runEQO_ga("c",Microbiome,trait,maxIter=100)
, I get the following error:Any ideas?