dist_blosum | R Documentation |
Calculate the genetic distance according to the BLOSUM metric. Here, only the BLOSUM80 is implemented. BLOSUM80 definition: https://www.ncbi.nlm.nih.gov/IEB/ToolBox/C_DOC/lxr/source/data/BLOSUM80
dist_blosum(x, y, sites = NULL, logistic.scale = 15)
x |
Character vector representing the amino acids sequence. |
y |
Character vector representing the amino acids sequence. |
logistic.scale |
Numeric. Scale parameter for the logistic function
when converting similarity into a distance.
Default |
Numeric. BLOSUM80 distance between x
and y
.
x = c('A','P','P','L','E','S') y = c('A','P','M','L','E','S') dist_blosum(x,y, sites = list(c(1:2), 4:6)) dist_blosum(x,y, sites = NULL)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.