Open Jigyasa3 opened 1 year ago
Hi @davharris @johnstantongeddes ,
Thank you for EcoSimR package! I am running the cooc_null_model() on my dataset, and getting the following errors. Could you suggest why this might be happening?
cooc_null_model()
code1-
mmseq2_bac_plasmid_wide<-read.csv(file="/groups/rubin/projects/ML/results/inR/results/2ecoli_10plasmids_presence_absence_wideformat.csv",row.names=1) rownames(mmseq2_bac_plasmid_wide)<-mmseq2_bac_plasmid_wide$plasmid_cluster_rep mmseq2_bac_plasmid_wide$plasmid_cluster_rep<-NULL myModel <- cooc_null_model(speciesData=mmseq2_bac_plasmid_wide,suppressProg=TRUE,algo = "sim10", metric ="c_score", nReps = 1000, burn_in = 500)
error1- Error in sample.int(length(x), size, replace, prob) : invalid 'size' argument
Error in sample.int(length(x), size, replace, prob) : invalid 'size' argument
code2- myModel <- cooc_null_model(speciesData=mmseq2_bac_plasmid_wide,suppressProg=TRUE,algo = "sim9", metric ="c_score", nReps = 1000, burn_in = 500)
myModel <- cooc_null_model(speciesData=mmseq2_bac_plasmid_wide,suppressProg=TRUE,algo = "sim9", metric ="c_score", nReps = 1000, burn_in = 500)
error2- m(Sum.Is.One) > 1) { : missing value where TRUE/FALSE needed
m(Sum.Is.One) > 1) { : missing value where TRUE/FALSE needed
My dataset- dataset
Hi @davharris @johnstantongeddes ,
Thank you for EcoSimR package! I am running the
cooc_null_model()
on my dataset, and getting the following errors. Could you suggest why this might be happening?code1-
error1-
Error in sample.int(length(x), size, replace, prob) : invalid 'size' argument
code2-
myModel <- cooc_null_model(speciesData=mmseq2_bac_plasmid_wide,suppressProg=TRUE,algo = "sim9", metric ="c_score", nReps = 1000, burn_in = 500)
error2-
m(Sum.Is.One) > 1) { : missing value where TRUE/FALSE needed
My dataset- dataset