Obtain highly randomised permutations of a specified dataset (based on sex labels), while maintaining consistency with the sample ID

random_permutations(
  data,
  sampleID = "Donor.ID",
  sexID = "sex",
  Nrandom_perms = 5,
  Ntests = 100
)

Arguments

data

the input data (should be an SCE object)

sampleID

sample ID

sexID

sex ID

Nrandom_perms

the number of randomised permutations the user needs (default 5)

Ntests

the number of random permutation tests (default 100)

Value

a list of size Nrandom_perms, with each item being a randomised dataset