Description Usage Arguments Details Value Author(s) References See Also Examples
ascii2char
calculates character representations for given phred values. char2ascii
returns phred values for given ASCII encoded representations (the reverse transformation of ascii2char
).
1 2 | ascii2char(x,multiple = FALSE)
char2ascii(c)
|
x |
|
multiple |
|
c |
|
The functions are only wrappers for convenience. char2ascii
is defined as strtoi(charToRaw(c), base = 16L)
. ascii2char
is defined as rawToChar(as.raw(x), multiple)
.
ascii2char
returns character
. char2ascii
returns integer
.
Wolfgang Kaisers
Ewing B, Green P Base-Calling of Automated Sequencer Traces Using Phred. II. Error Probabilities Genome Research 1998 8(3): 186-194
getPhredTable
1 2 3 4 5 | ascii2char(97:101,multiple=FALSE)
ascii2char(97:101,multiple=TRUE)
char2ascii("abcde")
char2ascii(paste("a","b","c",collapse=""))
ascii2char(char2ascii("abcde"))
|
Loading required package: zlibbioc
[1] "abcde"
[1] "a" "b" "c" "d" "e"
[1] 97 98 99 100 101
[1] 97 32 98 32 99
[1] "abcde"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.