getErrors: Extract already computed error rates.

Description Usage Arguments Value Examples

View source: R/errorModels.R

Description

Extract already computed error rates.

Usage

1
getErrors(obj, detailed = FALSE, enforce = TRUE)

Arguments

obj

(Required). An R object with error rates. Supported objects: dada-class; list of dada-class; numeric matrix; named list with $err_out, $err_in, $trans.

detailed

(Optional). Default FALSE. If FALSE, an error rate matrix corresponding to $err_out is returned. If TRUE, a named list with $err_out, $err_in and $trans. $err_in and $trans can be NULL.

enforce

(Optional). Default TRUE. If TRUE, will check validity of $err_out and error if invalid or NULL.

Value

A numeric matrix of error rates. Or, if detailed=TRUE, a named list with $err_out, $err_in and $trans.

Examples

1
2
3
4
 fl1 <- system.file("extdata", "sam1F.fastq.gz", package="dada2")
 drp <- derepFastq(fl1)
 dd <- dada(drp, err=NULL, selfConsist=TRUE)
 err <- getErrors(dd)

Bioconductor-mirror/dada2 documentation built on June 1, 2017, 7:31 a.m.