Description Usage Arguments Details See Also
Calibration via the simple deterministic procedure described in McLaren, Willis, and Callahan (2019), simply involved dividing the observed vector of relative abundances by the estimated bias vector and (optionally) normalizing the result to sum to 1 or some other chosen value.
1 2 3 4 5 6 7 8 9 10 |
observed |
An abundance matrix or phyloseq object containing one |
bias |
A numeric vector of relative efficiencies or an object of class 'mc_bias_fit' (from which efficiencies will be extracted) |
margin |
Matrix margin that corresponds to observations (samples);
|
norm |
String specifying how to normalize the calibrated observations; see Details. |
mean_name |
Character vector or NULL. Name of the column in the sample data in which to store the mean efficiency, or NULL to skip. |
Normalization options specified by norm
:
"close": Divide the calibrated abundance vector by its sum, so that it sums to 1
"keep": Keep the same total abundance as the original observation
"none": Return the calibrated abundances without any normalization
If bias
is named, then the names must agree with the taxa names in
observed
and will be used to reorder bias
to match the taxa order in
observed
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.