nca {ENCA}R Documentation

Supervised network component analysis

Description

Function to do supervised network component analysis.

Usage

nca(X, A, P, MAXITER = 250, eps = 1e-7, PRINT=TRUE)

Arguments

X

An I by J gene expression data matrix.

A

An I by Q shrinked matrix of network connectivity strengths, with Q the number of transcription factors.

P

An J by Q shrinked activity matrix.

MAXITER

Maximum number of iterations.

eps

Convergence criterium (default 1e-7).

PRINT

Print out progress?

Value

A

The I by Q estimated sparse network connectivity strengths.

P

The J by Q estimated acitivty matrix.

VAF

The proportion of variation accounted for by the components.

Loss

The obtained loss-value.

Author(s)

Martijn Schouteden
Quantitative Psychology and Individual Differences
Katholieke Universiteit Leuven
martijn.schouteden@psy.kuleuven.be

See Also

oblique_sparse_PCA.R

Examples

#Load data and set input parameters
data(DataSpellman)
X=DataSpellman
Q=7
LASSO=2.5
MAXITER=50
NRSTARTS=2
eps=1e-4

#Obtain intial connectivity and activity matrices
tmp=oblique_sparse_PCA(X,Q,LASSO,MAXITER, NRSTARTS, eps)
A0=tmp[[1]]
P0=tmp[[2]]

#Run nca
tmp=nca(X, A0, P0, MAXITER, eps)
A=tmp[[1]]
P=tmp[[2]]

[Package ENCA version 1.0 Index]