View source: R/dada_learn_errors_subset.R
dada_learn_errors_subset | R Documentation |
Function to learn the error rates from a subset of the data (for the big data workflow)
dada_learn_errors_subset(
filts,
n = 25,
samps = NULL,
multitr = TRUE,
verbose = TRUE
)
filts |
character vector with the names of pre-filtered fastq or fastq.gz files |
n |
integer, how many samples to choose for learning (will be ignored if samps != NULL) |
samps |
character vector, which samples to take for learning (overrides n-argument) |
multitr |
logical, enables multithreading |
verbose |
logical, shows some additional information |
Matrix with estimated error rates that can be used with dada-function.
https://benjjneb.github.io/dada2/bigdata.html
dada
library(dada2)
# filtF and filtR are character vectors with the full path to fastq.gz-files
errsF <- learn_errors_subset(filtF, n = 30)
errsR <- learn_errors_subset(filtR, samps = attr(errsF, "selected_samples"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.