simple2full: Convert encoding from simple to full format

Description Usage Arguments Details Examples

View source: R/degenerate.R

Description

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

Usage

1

Arguments

x

encoding (see Details).

Details

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

Examples

1
2
3
4
5
6
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)

biogram documentation built on March 31, 2020, 5:14 p.m.