'Regenerates' amino acid or nucleic sequence written in a simplified
alphabet by converting groups to regular expression.
Usage
regenerate(x, element_groups)
Arguments
x
character string representing single n-gram.
element_groups
encoding of elements: list of groups to which elements
of sequence should be aggregated. Must have unique names.
Value
A character string representing a POSIX regular expression.
See Also
degenerate to easily convert information stored in biological sequences from
letters to numbers.
calc_ed to calculate distance between simplified alphabets.