phred2prob: Convert Phred scores to Error probabilities

Description Usage Arguments Examples

View source: R/phred2prob.R

Description

convert the phred scores to error probability or log10(error probability)

Usage

1
phred2prob(phred, log_scale = TRUE)

Arguments

phred

phred scores

log_scale

whether to get the probability in log10 scale or not

Examples

1
2
3
phred2prob("BE")  # -3.3 -3.6
phred2prob("BE",  log_scale = FALSE) # 0.0005011872 0.0002511886
phred2prob("!!!", log_scale = FALSE) # 1 1 1

clintko/BarcodeMatcher documentation built on May 30, 2019, 12:02 p.m.