Learn R Programming

Background

Nonnegative Matrix Factorization (NMF) is an unsupervised learning technique that has been applied successfully in several fields, including signal processing, face recognition and text mining. Recent applications of NMF in bioinformatics have demonstrated its ability to extract meaningful information from high-dimensional data such as gene expression microarrays. Developments in NMF theory and applications have resulted in a variety of algorithms and methods. However, most NMF implementations have been on commercial platforms, while those that are freely available typically require programming skills. This limits their use by the wider research community.

Results

Our objective is to provide the bioinformatics community with an open-source, easy-to-use and unified interface to standard NMF algorithms, as well as with a simple framework to help implement and test new NMF methods. For that purpose, we have developed a package for the R/BioConductor platform. The package ports public code to R, and is structured to enable users to easily modify and/or add algorithms. It includes a number of published NMF algorithms and initialization methods and facilitates the combination of these to produce new NMF strategies. Commonly used benchmark data and visualization methods are provided to help in the comparison and interpretation of the results.

Conclusions

The NMF package helps realize the potential of Nonnegative Matrix Factorization, especially in bioinformatics, providing easy access to methods that have already yielded new insights in many applications.


Travis check:

Copy Link

Version

Install

install.packages('NMF')

Monthly Downloads

12,235

Version

0.28

License

GPL (>= 2)

Maintainer

Last Published

August 22nd, 2024

Functions in NMF (0.28)

nmf_update.lee_R

NMF Algorithm/Updates for Frobenius Norm
NMFList-class

Class for Storing Heterogeneous NMF fits
NMFSeed-class

Base class that defines the interface for NMF seeding methods.
nmf_update.brunet_R

NMF Algorithm/Updates for Kullback-Leibler Divergence
NMFStrategy-class

Virtual Interface for NMF Algorithms
NMF-deprecated

Deprecated Functions in the Package NMF
NMF-package

Algorithms and framework for Nonnegative Matrix Factorization (NMF).
NMF-class

Generic Interface for Nonnegative Matrix Factorisation Models
NMFStrategyIterative-class

Interface for Algorithms: Implementation for Iterative NMF Algorithms
NMFfitX-class

Virtual Class to Handle Results from Multiple Runs of NMF Algorithms
NMFfit-class

Base Class for to store Nonnegative Matrix Factorisation results
NMFns-class

NMF Model - Nonsmooth Nonnegative Matrix Factorization
algorithm,NMFList-method

Returns the method names used to compute the NMF fits in the list. It returns NULL if the list is empty.
NMFfitX

Factory Method for Multiple NMF Run Objects
NMFfitX1-class

Structure for Storing the Best Fit Amongst Multiple NMF Runs
NMF-defunct

Defunct Functions and Classes in the NMF Package
NMFfitXn-class

Structure for Storing All Fits from Multiple NMF Runs
algorithmic-NMF

Generic Interface for Algorithms
NMFstd-class

NMF Model - Standard model
bioc-NMF

Specific NMF Layer for Bioconductor
aggregate.measure

Utility function to aggregate numerical quality measures from NMFfitXn objects.
c,NMF-method

Concatenating NMF Models
aheatmap

Annotated Heatmaps
cutdendro

Fade Out the Upper Branches from a Dendrogram
ccSpec

Extract Colour Palette Specification
cluster_mat

Cluster Matrix Rows in Annotated Heatmaps
summary

Assessing and Comparing NMF Models
basis

Accessing NMF Factors
consensus,NMFfitX1-method

Returns the consensus matrix computed while performing all NMF runs, amongst which object was selected as the best fit.
.atrack

Annotation Tracks
ccPalette

Builds a Color Palette from Compact Color Specification
connectivity

Clustering Connectivity and Consensus Matrices
NMFOffset-class

NMF Model - Nonnegative Matrix Factorization with Offset
fit

Extracting Fitted Models
Strategy-class

Generic Strategy Class
fitted

Fitted Matrix in NMF Models
checkErrors

Error Checks in NMF Runs
ccRamp

Builds a Color Ramp from Compact Color Specification
advanced-NMF

Advanced Usage of the Package NMF
consensushc

Hierarchical Clustering of a Consensus Matrix
basiscor

Correlations in NMF Models
cophcor

Cophenetic Correlation Coefficient
parse_formula

Simple Parsing of Formula
nmfObject

Updating NMF Objects
tryViewport

Internal Grid Extension
registerDoBackend

Utilities and Extensions for Foreach Loops
profplot

Plotting Expression Profiles
consensus,NMFfitXn-method

Computes the consensus matrix of the set of fits stored in object, as the mean connectivity matrix across runs.
gfile

Open a File Graphic Device
canFit

Testing Compatibility of Algorithm and Models
heatmap-NMF

Heatmaps of NMF Factors
NMFStrategy

Factory Method for NMFStrategy Objects
nmfEstimateRank

Estimate Rank for NMF Models
nmfAlgorithm.SNMF_R

NMF Algorithm - Sparse NMF via Alternating NNLS
pmax.inplace

Updating Objects In Place
deviance

Distances and Objective Functions
isCRANcheck

Package Check Utils
NMFStrategyFunction-class

Interface for Single Function NMF Strategies
latex_preamble

LaTeX Utilities for Vignettes
show,NMFns-method

Show method for objects of class NMFns
nmfApply

Apply Function for NMF Objects
nmf_update.euclidean_offset.h

NMF Multiplicative Update for NMF with Offset Models
nmfFormals

Showing Arguments of NMF Algorithms
dispersion

Dispersion of a Matrix
.fcnnls

Internal Routine for Fast Combinatorial Nonnegative Least-Squares
nmf_update.lsnmf

Multiplicative Updates for LS-NMF
options-NMF

NMF Package Specific Options
esGolub

Golub ExpressionSet
fcnnls

Fast Combinatorial Nonnegative Least-Square
revPalette

Flags a Color Palette Specification for Reversion
lverbose

Internal verbosity option
getRNG1

Extracting RNG Data from NMF Objects
nbasis

Dimension of NMF Objects
rmatrix

Generating Random Matrices
nmfWrapper

Wrapping NMF Algorithms
nmf_update.KL.h

NMF Multiplicative Updates for Kullback-Leibler Divergence
rnmf

Generating Random NMF Models
ccBreaks

Generate Break Intervals from Numeric Variables
runtime.all,NMFfitXn-method

Returns the CPU time used to perform all the NMF fits stored in object.
methods-NMF

Registry for NMF Algorithms
scale.NMF

Rescaling NMF Models
basisnames

Dimension names for NMF objects
nmfSeed

Seeding Strategies for NMF Algorithms
purity

Purity and Entropy of a Clustering
nmf.equal

Testing Equality of NMF Models
nmfAlgorithm

Listing and Retrieving NMF Algorithms
offset,NMFOffset-method

Offsets in NMF Models with Offset
nmfCheck

Checking NMF Algorithm
[,NMF-method

Sub-setting NMF Objects
parallel-NMF

Utilities for Parallel Computations
compare-NMF

Comparing Results from Different NMF Runs
rss

Residual Sum of Squares and Explained Variance
syntheticNMF

Simulating Datasets
nmf

Running NMF algorithms
offset,NMFfit-method

Returns the offset from the fitted model.
match_atrack

Extending Annotation Vectors
plot,NMFfit,missing-method

Plots the residual track computed at regular interval during the fit of the NMF model x.
nmfModel

Factory Methods NMF Models
nmf_update.ns

NMF Multiplicative Update for Nonsmooth Nonnegative Matrix Factorization (nsNMF).
show,NMFfitX1-method

Show method for objects of class NMFfitX1
objective,NMFfit-method

Returns the objective function associated with the algorithm that computed the fitted NMF model object, or the objective value with respect to a given target matrix y if it is supplied.
runtime,NMFList-method

Returns the CPU time required to compute all NMF fits in the list. It returns NULL if the list is empty. If no timing data are available, the sequential time is returned.
show,NMFSeed-method

Show method for objects of class NMFSeed
nmfReport

Run NMF Methods and Generate a Report
is.nmf

Testing NMF Objects
predict

Clustering and Prediction
residuals

Residuals in NMF Models
show,NMFfitXn-method

Show method for objects of class NMFfitXn
txtProgressBar

Simple Progress Bar
nmf_update.euclidean.h

NMF Multiplicative Updates for Euclidean Distance
randomize

Randomizing Data
featureScore

Feature Selection in NMF Models
seed

Interface for NMF Seeding Methods
t.NMF

Transformation NMF Model Objects
bterms<-

Fixed Terms in NMF Models
show,NMFStrategyIterative-method

Show method for objects of class NMFStrategyIterative
show,NMFOffset-method

Show method for objects of class NMFOffset
utils-NMF

Utility Function in the NMF Package
nneg

Transforming from Mixed-sign to Nonnegative Data
setupBackend

Computational Setup Functions
show,NMF-method

Show method for objects of class NMF
show,NMFList-method

Show method for objects of class NMFList
show,NMFfit-method

Show method for objects of class NMFfit
ibterms

Fixed Terms in NMF Models
show,NMFfitX-method

Show method for objects of class NMFfitX
setNMFMethod

Registering NMF Algorithms
staticVar

Get/Set a Static Variable in NMF Algorithms
NMFSeed

NMFSeed is a constructor method that instantiate NMFSeed objects.
NMFStop

Stopping Criteria for NMF Iterative Strategies
silhouette.NMF

Silhouette of NMF Clustering
smoothing

Smoothing Matrix in Nonsmooth NMF Models
sparseness

Sparseness