Description Usage Arguments Value See Also Examples
Computes the encoding distance between two encodings.
1 |
a |
encoding (see |
b |
encoding to which |
prop |
|
measure |
See the package vignette for more details. |
an encoding distance.
calc_si
: compute the similarity index of two encodings.
encoding2df
: converts an encoding to a data frame.
validate_encoding
: validate a structure of an encoding.
1 2 3 4 5 6 7 8 9 10 11 12 13 | # calculate encoding distance between two encodings of amino acids
aa1 = list(`1` = c("g", "a", "p", "v", "m", "l", "i"),
`2` = c("k", "h"),
`3` = c("d", "e"),
`4` = c("f", "r", "w", "y", "s", "t", "c", "n", "q"))
aa2 = list(`1` = c("g", "a", "p", "v", "m", "l", "q"),
`2` = c("k", "h", "d", "e", "i"),
`3` = c("f", "r", "w", "y", "s", "t", "c", "n"))
calc_ed(aa1, aa2, measure = "pi")
# the encoding distance between two identical encodings is 0
calc_ed(aa1, aa1, measure = "pi")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.