Skip to content

Error-Error in sample.int(length(x), size, replace, prob) : invalid 'size' argument #78

Description

@Jigyasa3

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-

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions