hmm_distance {protHMM} | R Documentation |
hmm_distance
Description
This feature calculates the cosine distance matrix between two HMMs and
before dynamic time warp is applied to
the distance matrix calculate the cumulative distance between the HMMs, which acts as a measure of similarity,
The cosine distance matrix
is found to be
,
in which
and
refer to row vectors of
and
respectively.
This in turn means that
is of dimensions
. Dynamic time warp then calculates the
cumulative distance by calculating matrix
,
where
is 0 when
or
are less than 1. The lower rightmost point of the matrix
is then returned as the cumulative distance between proteins.
Usage
hmm_distance(hmm_1, hmm_2)
Arguments
hmm_1 |
The name of a profile hidden markov model file. |
hmm_2 |
The name of another profile hidden markov model file. |
Value
A double that indicates distance between the two proteins.
References
Lyons, J., Paliwal, K. K., Dehzangi, A., Heffernan, R., Tsunoda, T., & Sharma, A. (2016). Protein fold recognition using HMM–HMM alignment and dynamic programming. Journal of Theoretical Biology, 393, 67–74.
Examples
h<- hmm_distance(system.file("extdata", "1DLHA2-7", package="protHMM"),
system.file("extdata", "1TEN-7", package="protHMM"))