extrPCMScaleGap: Scales-Based Descriptors derived by Principal Components...

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/515-extractPCMScalesGap.R

Description

Scales-Based Descriptors derived by Principal Components Analysis (with Gap Support)

Usage

1
extrPCMScaleGap(x, propmat, pc, lag, scale = TRUE, silent = TRUE)

Arguments

x

A character vector, as the input protein sequence. Use '-' to represent gaps in the sequence.

propmat

A matrix containing the properties for the amino acids. Each row represent one amino acid type, each column represents one property. Note that the one-letter row names must be provided for we need them to seek the properties for each AA type.

pc

Integer. Use the first pc principal components as the scales. Must be no greater than the number of AA properties provided.

lag

The lag parameter. Must be less than the amino acids.

scale

Logical. Should we auto-scale the property matrix (propmat) before PCA? Default is TRUE.

silent

Logical. Whether we print the standard deviation, proportion of variance and the cumulative proportion of the selected principal components or not. Default is TRUE.

Details

This function calculates scales-based descriptors derived by Principal Components Analysis (PCA), with gap support. Users could provide customized amino acid property matrices. This function implements the core computation procedure needed for the scales-based descriptors derived by AA-Properties (AAindex) and scales-based descriptors derived by 20+ classes of 2D and 3D molecular descriptors (Topological, WHIM, VHSE, etc.) in the BioMedR package.

Value

A length lag * p^2 named vector, p is the number of scales (principal components) selected.

Author(s)

Min-feng Zhu <wind2zhu@163.com>, Nan Xiao <http://nanx.me>

See Also

See extrProtFPGap for amino acid property based scales descriptors (protein fingerprint) with gap support.

Examples

1
2
3
4
5
# amino acid sequence with gaps
x = readFASTA(system.file('protseq/align.fasta', package = 'BioMedR'))$`IXI_235`
data(AAindex)
AAidxmat = t(na.omit(as.matrix(AAindex[, 7:26])))
scales = extrPCMScaleGap(x, propmat = AAidxmat, pc = 5, lag = 7, silent = FALSE)

BioMedR documentation built on Nov. 17, 2017, 10:08 a.m.