stats4trim: Minimun read mean quality and maximum percentage loss of...

Description Usage Arguments Value Author(s) Examples

View source: R/stats4trim.R

Description

This function estimates how many reads would be lost if the sequences are filtered by a minimum read mean quality value. Also this function estimates what is the minimum read mean quality value for filtering and lose max percentage defined.

Usage

1
stats4trim(rqcResultSet, qmin, pmax)

Arguments

rqcResultSet

list of RqcResultSet objects created by rqc and rqcQA functions.

qmin

Minimum read mean quality value (bewteen 0 and 41).

pmax

Maximum percentage of reads permitted been lost during trimming step.

Value

A data frame containg estimated minimum quality and maximum percentage for each input file.

Author(s)

Welliton Souza

Examples

1
2
3
4
5
6
7
checkpoint("Rqc", path=system.file(package="Rqc", "extdata"), {
  folder <- system.file(package="ShortRead", "extdata/E-MTAB-1147")
  files <- list.files(full.names=TRUE, path=folder)
  rqcResultSet <- rqcQA(files, pair=c(1,1), workers=1)
}, keep="rqcResultSet")
stats4trim(rqcResultSet, qmin=20)
stats4trim(rqcResultSet, pmax=10)

Rqc documentation built on Nov. 8, 2020, 5:11 p.m.