Converts an encoding from the simple format to the full format.

simple2full(x)

Arguments

x

encoding (see Details).

Details

The encoding should be named. Each name should correspond to a different amino acid or nucleotide.

Examples

aa1 = structure(c("1", "4", "3", "3", "4", "1", "2", "1", "2", "1", "1", "4", "1", "4", "4", "4", "4", "1", "4", "4"), .Names = c("a", "c", "d", "e", "f", "g", "h", "i", "k", "l", "m", "n", "p", "q", "r", "s", "t", "v", "w", "y")) simple2full(aa1)
#> $`1` #> [1] "a" "g" "i" "l" "m" "p" "v" #> #> $`2` #> [1] "h" "k" #> #> $`3` #> [1] "d" "e" #> #> $`4` #> [1] "c" "f" "n" "q" "r" "s" "t" "w" "y" #>