-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathQCscores.Rd
49 lines (45 loc) · 1.78 KB
/
QCscores.Rd
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/QCscores.R
\name{QCscores}
\alias{QCscores}
\title{Compute Phred scores by position or by read}
\usage{
QCscores(flnm, ln = 301, byPos = FALSE, byRead = FALSE)
}
\arguments{
\item{flnm}{Path of the fastq file to be evaluated.}
\item{ln}{Amplicon length.}
\item{byPos}{Logical indicating if QC by position should be computed.}
\item{byRead}{Logical indicating if QC by read should be computed.
Note that Arguments \code{byPos} and \code{byRead} are mutually exclusive.}
}
\value{
If argument \code{byPos=TRUE}, the function returns a list including
the following parameters:
\enumerate{
\item{\code{fvnq}: A matrix with Phred quality scores across each nucleotide base in the reads.
Columns indicate base position and rows indicate 0.05, 0.25, 0.5, 0.75 and 0.95 Phred quantiles.}
\item{\code{fvnl}: A vector with normalized read lengths for each Phred quantile.}
\item{\code{all.ln}: A vector with all read lengths.}}
If argument \code{byRead=TRUE}, the function returns a list including
the following parameters:
\enumerate{
\item{\code{all.ln}: A vector with all read lengths.}
\item{\code{all.ln30}: A vector with the number of bases below Q30 for each read.}
\item{\code{all.fnl30}: The result of dividing all.ln30/all.ln, which is the
fraction of bases below Q30 for each read.}}
}
\description{
Applies \code{\link{FastqStreamer}} over a fastq file and returns quality
control mesures (Phred scores), either by position or by read.
}
\note{
This function is only defined for correct execution of \code{\link{PoolQCbyPos}} and \code{\link{PoolQCbyRead}}
functions from the same package.
}
\seealso{
\code{\link{PoolQCbyPos}}, \code{\link{PoolQCbyRead}}, \code{\link{QCplot}}
}
\author{
Alicia Aranda
}