phredScoreStringToInt: Convert Phred Quality Score Strings to Integers

phredScoreStringToIntR Documentation

Convert Phred Quality Score Strings to Integers

Description

Turn the cryptic Phred quality scores from FASTQ files, etc., into integers

Usage

phredScoreStringToInt(txt, scoreType = "Phred33")

Arguments

txt

character vector of Phred quality score strings

scoreType

type of offset used for the ASCII coded scores. Currently, only 'Phred33' and 'Phred66' are supported.

Details

Most efficient for strings of equal length.

Value

an integer matrix with NR rows and NC columns, where NR = length(txt) and NC = max(nchar(txt)). Each element is the Phred score of one DNA base call.

Examples

  phredScoreStringToInt( c( "_ABBBB&&.#$&", "IIIIIIIIIIII"))

robertdouglasmorrison/DuffyTools documentation built on April 16, 2024, 6:31 a.m.