NMFfitX-class: Virtual Class to Handle Results from Multiple Runs of NMF...

Description Usage Arguments Details Slots Methods (by generic) See Also Examples

Description

This class defines a common interface to handle the results from multiple runs of a single NMF algorithm, performed with the nmf method.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
## S4 method for signature 'NMFfitX'
runtime.all(object)

## S4 method for signature 'NMFfitX'
nrun(object)

## S4 method for signature 'NMFfitX'
consensus(object, ...)

## S4 method for signature 'NMFfitX'
fit(object)

## S4 method for signature 'NMFfitX'
minfit(object)

## S4 method for signature 'NMFfitX'
show(object)

## S4 method for signature 'NMFfitX,NMF'
nmf.equal(x, y, ...)

## S4 method for signature 'NMFfitX'
ibterms(object)

## S4 method for signature 'NMFfitX'
dispersion(object, ...)

## S4 method for signature 'NMFfitX'
summary(object, ..., with.silhouette = "both")

## S3 method for class 'NMFfitX'
silhouette(x, ...)

Arguments

object

an object of class NMFfitX

...

other arguments passed to subsequent calls of suitable methods, usually of the same generic. See details for each method in their dedicated section.

x, y

objects of that generally inherit from NMF. Depending on the method, either or both are NMFfitX objects.

with.silhouette

indicates which silhouette average width should be computed. Its value is partially matched against: 'both', 'features', 'samples' or 'none'.

Details

Currently, this interface is implemented by two classes, NMFfitX1 and NMFfitXn, which respectively handle the case where only the best fit is kept, and the case where the list of all the fits is returned.

See nmf for more details on the method arguments.

Slots

runtime.all

Object of class proc_time that contains CPU times required to perform all the runs.

Methods (by generic)

basismap:

coefmap:

consensus:

consensushc:

consensusmap:

cophcor:

deviance:

dispersion:

fit:

getRNG1:

ibterms:

metaHeatmap:

minfit:

nmf.equal:

NMFfitX:

nrun:

predict:

residuals:

runtime.all:

show:

summary:

See Also

Other multipleNMF: NMFfitX1-class, NMFfitXn-class

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
# generate a synthetic dataset with known classes
n <- 20; counts <- c(5, 2, 3);
V <- syntheticNMF(n, counts)

# perform multiple runs of one algorithm (default is to keep only best fit)
res <- nmf(V, 3, nrun=3)
res

# plot a heatmap of the consensus matrix
## Not run:  consensusmap(res) 

# perform multiple runs of one algorithm (keep all the fits)
res <- nmf(V, 3, nrun=3, .options='k')
res
 

renozao/NMF documentation built on June 14, 2020, 9:35 p.m.