resample: Make fake data from resampled controls

Description Usage Arguments Details Value

Description

Make fake data from resampled controls.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
resample(x, ...)

## Default S3 method:
resample(x, ...)

## S3 method for class 'concensusWorkflow'
resample(x, ...)

## S3 method for class 'concensusDataSet'
resample(x, n_replicates = 2, n_samples = 10000,
  prevalence = 0.5, grouping = c("id", "plate_name", "well"),
  positive_control. = NULL, ...)

Arguments

x

concensusWorkflow or concensusDataSet.

...

Other arguments.

n_replicates

Numeric.

n_samples

Numeric.

prevalence

Numeric. Positive controls (if present) are resampled at a frequency of n_samples * 2 * prevalence.

grouping

Character vector. Grouping of wells.

positive_control

Character. Pattern to assign positive controls on. Overrides any already-present positive control.

Details

None.

Value

concensusWorkflow or concensusDataSet.


eachanjohnson/concensusGLM documentation built on June 26, 2019, 2:26 a.m.