phred_to_prob: Convert Phred Score to Probability

Description Usage Arguments Value

Description

phred_to_prob converts a series of phred scores, which are ASCII characters used to encode the probabilities of a sequencing error for given base calls in a sequence, to a vector of probability values. phred_to_prob is called by calculate_probability.

Usage

1
phred_to_prob(phred_score)

Arguments

phred_score

A string of Phred scores. Each character is a representation of the probability that the corresponding base call is an error.

Value

Returns a numeric vector of probabilities with length equal to the number of characters given in phred_score


Benji-Wagner/SequenceMapper documentation built on June 6, 2019, 1:08 p.m.