replicates | R Documentation |
To ensure that the batches are comparable some samples are processed in each
batch. This function allows to take into account that effect.
It uses the most different samples as controls as defined with extreme_cases()
.
replicates(pheno, size_subset, controls, omit = NULL, iterations = 500)
pheno |
Data.frame with the sample information. |
size_subset |
Numeric value of the number of sample per batch. |
controls |
The numeric value of the amount of technical controls per batch. |
omit |
Name of the columns of the |
iterations |
Numeric value of iterations that will be performed. |
To control for variance replicates are important, see for example https://www.nature.com/articles/nmeth.3091.
A index with some samples duplicated in the batches.
design()
, extreme_cases()
.
samples <- data.frame(L = letters[1:25], Age = rnorm(25),
type = sample(LETTERS[1:5], 25, TRUE))
index <- replicates(samples, 5, controls = 2, omit = "L", iterations = 10)
head(index)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.