estimateAbundance
estimates the complete clonal relative abundance distribution
and confidence intervals on clone sizes using bootstrapping.
estimateAbundance(
data,
clone = "clone_id",
copy = NULL,
group = NULL,
min_n = 30,
max_n = NULL,
uniform = TRUE,
ci = 0.95,
nboot = 200,
progress = FALSE
)
A AbundanceCurve object summarizing the abundances.
data.frame with Change-O style columns containing clonal assignments.
name of the data
column containing clone identifiers.
name of the data
column containing copy numbers for each
sequence. If copy=NULL
(the default), then clone abundance
is determined by the number of sequences. If a copy
column
is specified, then clone abundances is determined by the sum of
copy numbers within each clonal group.
name of the data
column containing group identifiers.
If NULL
then no grouping is performed and the group
column of the output will contain the value NA
for each row.
minimum number of observations to sample. A group with less observations than the minimum is excluded.
maximum number of observations to sample. If NULL
then no
maximum is set.
if TRUE
then uniformly resample each group to the same
number of observations. If FALSE
then allow each group to
be resampled to its original size or, if specified, max_size
.
confidence interval to calculate; the value must be between 0 and 1.
number of bootstrap realizations to generate.
if TRUE
show a progress bar.
Chao A. Nonparametric Estimation of the Number of Classes in a Population. Scand J Stat. 1984 11, 265270.
Chao A, et al. Rarefaction and extrapolation with Hill numbers: A framework for sampling and estimation in species diversity studies. Ecol Monogr. 2014 84:45-67.
Chao A, et al. Unveiling the species-rank abundance distribution by generalizing the Good-Turing sample coverage theory. Ecology. 2015 96, 11891201.
See plotAbundanceCurve for plotting of the abundance distribution. See alphaDiversity for a similar application to clonal diversity.
abund <- estimateAbundance(ExampleDb, group="sample_id", nboot=100)
Run the code above in your browser using DataLab