FCS_resample: Resampling function for flowSet objects

Description Usage Arguments Examples

View source: R/FCS_resample.R

Description

This function resamples each sample to an equal number of cells. Options are to resample with or withour replacement, and to resample on a per sample basis or across the entire dataset (normalization to equal sample size).

Usage

1
FCS_resample(x, sample = 0, replace = FALSE, rarefy = FALSE, progress = TRUE)

Arguments

x

flowSet object.

sample

Desired sample size. Defaults to minimum sample size.

replace

Do you want to resample with or without replacement? Defaults to FALSE, which is without replacement.

rarefy

Do you want each sample resampled without adjusting sample size? Default to FALSE.

progress

Should progress be reported? Defaults to yes.

Examples

1
2
3
# Load raw data (imported using flowCore)
data(flowData)
flowData <- FCS_resample(flowData, replace=TRUE)

rprops/Phenoflow_package documentation built on Sept. 22, 2020, 5:43 p.m.