Description Usage Arguments Value Examples
The frequency of each sequence (or OTU) in the input feature table as a function of the concentration of amplified DNA in each sample is used to identify contaminant sequences.
1 2 3 4 |
seqtab |
(Required). |
conc |
(Optional). |
neg |
(Optional). |
method |
(Optional).
|
batch |
(Optional). |
batch.combine |
(Optional). Default "minimum". For each input sequence variant (or OTU) the probabilities calculated in each batch are combined into a single probability that is compared to 'codethreshold' to classify contaminants. Valid values: "minimum", "product", "fisher". |
threshold |
(Optional). Default |
normalize |
(Optional). Default TRUE.
If TRUE, the input |
detailed |
(Optional). Default TRUE.
If TRUE, the return value is a |
If detailed=TRUE
a data.frame
with classification information.
If detailed=FALSE
a logical
vector is returned, with TRUE indicating contaminants.
1 2 3 4 5 6 7 | st <- readRDS(system.file("extdata", "st.rds", package="decontam"))
# conc should be positive and non-zero
conc <- c(6413, 3581.0, 5375, 4107, 4291, 4260, 4171, 2765, 33, 48)
neg <- c(FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, TRUE, TRUE)
# Use frequency or frequency and prevalence to identify contaminants
isContaminant(st, conc=conc, method="frequency", threshold=0.2)
isContaminant(st, conc=conc, neg=neg, method="both", threshold=c(0.1,0.5))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.