acc | R Documentation |
Calculates auto covariance and auto cross covariance for generating scale-based descriptors of the same length.
acc(mat, lag)
mat |
A |
lag |
The lag parameter. Must be less than the amino acids. |
A length lag * p^2
named vector, the element names are
constructed by: the scales index (crossed scales index) and
lag index.
To see more details about auto cross covariance, check the references.
Wold, S., Jonsson, J., Sjörström, M., Sandberg, M., & Rännar, S. (1993). DNA and peptide sequences and chemical processes multivariately modelled by principal component analysis and partial least-squares projections to latent structures. Analytica chimica acta, 277(2), 239–253.
Sjöström, M., Rännar, S., & Wieslander, Å. (1995). Polypeptide sequence property relationships in Escherichia coli based on auto cross covariances. Chemometrics and intelligent laboratory systems, 29(2), 295–305.
See extractPCMScales
for
generalized scales-based descriptors.
For more details, see extractPCMDescScales
and extractPCMPropScales
.
p = 8 # p is the scales number
n = 200 # n is the amino acid number
lag = 7 # lag parameter
mat = matrix(rnorm(p * n), nrow = p, ncol = n)
acc(mat, lag)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.