ENCA-package {ENCA}R Documentation

Exploratory Network Component Analysis

Description

The ENCA package contains:

  1. A script to analyze your data using the ‘oblique sparse PCA’ method (see “oblique_sparse_PCA.R”).

  2. A script to analyze your data using a supervised network component model (see “nca.R”).

ENCA consists of two steps: First, by means of an oblique sparse PCA, the data can be explored to find information about the connectivity strengths between the genes and transcription factors. This information is then used to run a supervised network component model to undo the shrinkage effect. The ENCA package has been introduced in Schouteden, Van Deun, Westerhuis, Hasdemir and Van Mechelen (2012).

Details

Package: ENCA
Type: Package
Version: 1.0
Date: 2012-01-18
License: see file LICENSE

An overview of the functions:
Main functions:

Help functions:

Author(s)

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

References

Schouteden M, Van Deun K, Westerhuis JA, Hasdemir D, and Van Mechelen I (2012) ENCA: An R package for exploratory network component analysis. Manuscript submitted for publication.

Examples

# Load data
data(DataSpellman)
X=DataSpellman

# Make screeplot
fit=princomp(X)
screeplot(fit)

#set input parameters
Q=5 
LASSO=2.5
MAXITER=50
NRSTARTS=2
eps=1e-4
PRINT=TRUE

# Step 1: Run oblique sparse PCA
tmp=oblique_sparse_PCA(X,Q,LASSO,MAXITER, NRSTARTS, eps, PRINT)

# Get results
A_ospca=tmp[[1]]
P_ospca=tmp[[2]]

# Step 2: Run supervised network component analysis
tmp=nca(X, A_ospca, P_ospca, MAXITER, eps)
A=tmp[[1]]
P=tmp[[2]]

[Package ENCA version 1.0 Index]