\name{runICA}
\alias{runICA}
\title{Run of fastICA and JADE algorithms}
\usage{
runICA(method = c("fastICA", "JADE"), X, nbComp,
alg.type = c("deflation", "parallel"),
fun = c("logcosh", "exp"), maxit = 500, tol = 10^-6,
...)
}
\arguments{
\item{method}{The ICA method to use, either "JADE" (the
default) or "fastICA".}

\item{X}{A data matrix with n rows representing
observations (e.g genes) and p columns representing
variables (e.g samples).}

\item{nbComp}{The number of components to be extracted.}

\item{alg.type}{If \code{alg.type="parallel"} the
components are extracted simultaneously (the default), if
\code{alg.type="deflation"} the components are extracted
one at a time, see \code{\link[fastICA]{fastICA}}.}

\item{fun}{The functional form of the G function used in
the approximation to neg-entropy (see 'details' of the

\item{maxit}{The maximum number of iterations to
perform.}

\item{tol}{A positive scalar giving the tolerance at
which the un-mixing matrix is considered to have
converged.}

}
\value{
A list, see outputs of \code{\link[fastICA]{fastICA}} and
three elements: \describe{\item{A}{the estimated mixing
matrix} \item{S}{the estimated source matrix},
item{W}{the estimated unmixing matrix}}
}
\description{
This function performs ICA decomposition of a matrix
}
\details{
See details of the functions