hmm_trigrams {protHMM}R Documentation

hmm_trigrams

Description

This feature is calculated with a 20 x 20 x 20 block B, in which B[i, j, k] = \sum_{a = 1}^{L-2} H_{a, i}H_{a+1, j}H_{a+2, k}. H corresponds to the original HMM matrix, and L is the number of rows in H. Matrix B is then flattened to a feature vector of length 8000, and returned.

Usage

hmm_trigrams(hmm)

Arguments

hmm

The name of a profile hidden markov model file.

Value

A vector of length 8000

References

Lyons, J., Dehzangi, A., Heffernan, R., Yang, Y., Zhou, Y., Sharma, A., & Paliwal, K. K. (2015). Advancing the Accuracy of Protein Fold Recognition by Utilizing Profiles From Hidden Markov Models. IEEE Transactions on Nanobioscience, 14(7), 761–772.

Examples

h<- hmm_trigrams(system.file("extdata", "1DLHA2-7", package="protHMM"))

[Package protHMM version 0.1.1 Index]