R/sample_individuals.r
sample_individuals.Rd
Sample the data for a specified number of individuals from the dataset
sample_individuals(
data,
Nsamples,
sampleID = "Donor.ID",
sexID = "sex",
Nperms = 20
)
the input data (should be an SCE object)
the number of samples to be included in each subset
the column name in the SCE object which is the patient identifier (usually just "sample_id")
the column name in the SCE object which is the sex (usually just "sex" or "Sex")
the number of subsets the user needs (default 20)
a list of size Nperms, with each item being a subset of the input SCE containing the specified number of individuals