Sample the data for a specified number of individuals from the dataset

sample_individuals(
  data,
  Nsamples,
  sampleID = "Donor.ID",
  sexID = "sex",
  Nperms = 20
)

Arguments

data

the input data (should be an SCE object)

Nsamples

the number of samples to be included in each subset

sampleID

the column name in the SCE object which is the patient identifier (usually just "sample_id")

sexID

the column name in the SCE object which is the sex (usually just "sex" or "Sex")

Nperms

the number of subsets the user needs (default 20)

Value

a list of size Nperms, with each item being a subset of the input SCE containing the specified number of individuals