'Regenerates' amino acid or nucleic sequence written in a simplified alphabet by converting groups to regular expression.
regenerate(x, element_groups)
x |
|
---|---|
element_groups | encoding of elements: list of groups to which elements of sequence should be aggregated. Must have unique names. |
A character
string representing a POSIX regular expression.
Gaps (_
) will be converted to any possible character from the alphabet
(nucleotides or amino acids).
degenerate
to easily convert information stored in biological sequences from
letters to numbers.
calc_ed
to calculate distance between simplified alphabets.
#> [1] "[23][23][14]"