Reduces an alphabet using physicochemical properties.
create_encoding(prop, len)
prop |
|
---|---|
len | length of the resulting encoding. Must be larger than zero and smaller than number of elements in the alphabet. |
An encoding.
The encoding is a list of groups to which elements of an alphabet should be reduced. All elements of the alphabet (all amino acids or all nucleotides) should appear in the encoding.
calc_ed
: calculate the encoding distance between two encodings.
encoding2df
: converts an encoding to a data frame.
validate_encoding
: validate a structure of an encoding.
#> gr_id element #> 1 1 a #> 2 1 t #> 3 2 g #> 4 2 c