File: noqualErrfun.Rd

package info (click to toggle)
r-bioc-dada2 1.34.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 3,016 kB
  • sloc: cpp: 3,096; makefile: 5
file content (32 lines) | stat: -rw-r--r-- 1,282 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/errorModels.R
\name{noqualErrfun}
\alias{noqualErrfun}
\title{Estimate error rates for each type of transition while ignoring quality scores.}
\usage{
noqualErrfun(trans, pseudocount = 1)
}
\arguments{
\item{trans}{(Required). A matrix of the observed transition counts. Must be 16 rows,
with the rows named "A2A", "A2C", ...}

\item{pseudocount}{(Optional). Default 1. 
Added to each type of transition.}
}
\value{
A numeric matrix with 16 rows and the same number of columns as trans.
 The estimated error rates for each transition (row, eg. "A2C") are identical across
 all columns (which correspond to quality scores).
}
\description{
This function accepts a matrix of observed transitions, groups together all observed
transitions regardless of quality scores, and estimates the error rate for that transition
as the observed fraction of those transitions. This can be used in place of the default
\code{\link{loessErrfun}} when calling \code{\link{learnErrors}} or \code{link{dada}}
with the effect that quality scores will be effectively ignored.
}
\examples{
fl1 <- system.file("extdata", "sam1F.fastq.gz", package="dada2")
err.noqual <- learnErrors(fl1, errorEstimationFunction=noqualErrfun)

}