Skip to content

Bug: phenClones() uses invalid sample size in permutation step #8

Description

@dillard064

phenClones() errors during the permutation loop because it passes a vector to the size argument of sample():

ts <- sample(pvt$predicted.value, dim(mgd) * 2, replace = FALSE)

dim(mgd) returns a vector (c(n_pairs, 2)), so dim(mgd) * 2 is also a vector, which leads to:
"Error in sample.int(...): invalid 'size' argument".

Probably need to change it nrow(mgd) instead

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions