rarefy_whole_rep | R Documentation |
rarefy_whole_rep()
will rarefy each sample for different library sizes repeatedly in
order to generate a representative set of data to be used in rarecurve()
for generating
rarefaction curves.
rarefy_whole_rep(
x,
rep = 100,
steps = seq(from = 0.001, to = 1, by = 0.01),
set.seed = NULL,
mc.cores = 1L,
intercept = TRUE
)
x |
The |
rep |
The number of replicates to be performed. More replicates will take longer to conduct but will provide a smoother distribution for analyses. |
steps |
The steps in library sizes to rarefy to. |
set.seed |
The seed value for reproducibility. |
mc.cores |
From |
intercept |
Create data points at (0,0). |
A data.frame
containing the observed sequence counts for samples of
varying rarefied library sizes.
library(mirlyn)
data(example)
## Not run:
rarefy_whole_rep_ex <- rarefy_whole_rep(example, rep = 100)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.