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

View source: R/floundeR.R

qualToMeanQR Documentation

calculate mean Phred score from an ASCII encoded phred string

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

qualToMeanQ(qstr)

Arguments

qstr

is an ASCII encoded Phred quality score

Value

mean phred scaled q-value

Examples

qualToMeanQ('ABCDEF')


sagrudd/floundeR documentation built on Nov. 18, 2022, 10:31 a.m.