This function generates bootstrap samples from the input metadata. It samples with replacement within each group defined in the metadata, and optionally adjusts for paired groups.

bootstrapS(niter, meta.info, group.name)

Arguments

niter

Integer. The number of bootstrap samples to generate.

meta.info

Data frame. Metadata containing sample information, where each row corresponds to a sample.

group.name

Character. The name of the column in meta.info that defines the grouping variable for the samples.

Value

A matrix of dimension niter x n, where n is the number of samples. Each row corresponds to a bootstrap sample, and each entry is a resampled row name from the metadata.

Details

The function works by resampling the row names of the metadata for each group separately.