qualToMeanQ: calculate mean Phred score from an ASCII encoded phred string

Description Usage Arguments Value Examples

View source: R/Phred.R

Description

FASTQ and BAM store per base qualities as an ASCII string. Accessory methods in e.g. ShortRead allow for a sum of the numeric encoded scores; this is not corrected for the log/linear so scores are synthetically boosted - this simple method performs mean on the character level data ...

Usage

1

Arguments

qstr

is an ASCII encoded Phred quality score

Value

mean phred scaled q-value

Examples

1
qualToMeanQ('ABCDEF')

sagrudd/nanopoRe documentation built on June 7, 2020, 10:20 p.m.