Usage
## S3 method for class 'NMF':
clusters(x, what = c('samples', 'features'), ...)
## S3 method for class 'NMF':
connectivity(x, ...)
cophcor(object, ...)
dispersion(object, ...)
## S3 method for class 'NMF,factor':
entropy(x, class, ...)
## S3 method for class 'NMFfit':
residuals(object, track=FALSE)
rss(object, ...)
## S3 method for class 'NMF':
rss(object, target)
## S3 method for class 'NMF':
featureScore(x, ...)
## S3 method for class 'NMF':
extractFeatures(x, ...)
## S3 method for class 'NMF':
metaHeatmap(object, what=c('samples', 'features'), filter=FALSE, ...)
## S3 method for class 'NMF,factor':
purity(x, class, ...)
## S3 method for class 'NMF':
sparseness(x, what = c('features', 'samples'), ...)
syntheticNMF(n, r, p, offset=NULL, noise=FALSE, return.factors=FALSE)
Arguments
class
A factor
giving a known class membership for each sample.
filter
if TRUE
, only the features that are basis-specific are used.
Those features are those returned by function extractFeatures
.
n
Number of rows of the synthetic target matrix.
noise
if TRUE
, a random noise is added the target matrix.
object
A matrix
or an object that inherits from class
NMF
or NMFfit
-- depending on the method.
offset
a vector giving the offset to add to the synthetic target matrix.
Its length should be equal to the number of rows n
.
p
Number of columns of the synthetic target matrix. Not used if parameter
r
is a vector (see description of argument r
).
r
Underlying factorization rank. If a single numeric
is given,
the classes are randomly generated from a multinomial distribution.
If a numerical vector is given, then it should contain the counts in the different
classes (i.e integers
return.factors
If TRUE
, the underlying matrices W
and
H
are also returned.
target
the target object estimated by model object
. It can be
a matrix
or an ExpressionSet
.
track
if TRUE
, the whole residuals track is returned.
Otherwise only the last residuals computed is returned.
what
Specifies on which matrix (basis components or mixture coefficients)
the computation should be performed.
x
An object that inherits from class NMF
.
...
Graphical parameters passed to function heatmap.2