simple2full: Convert encoding from simple to full format

View source: R/degenerate.R

simple2fullR Documentation

Convert encoding from simple to full format

Description

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

Usage

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)


michbur/biogram documentation built on Feb. 4, 2024, 6:38 p.m.