View source: R/createSparseMat.R
createSparseMat | R Documentation |
The sparse matrix is created via 'Matrix::sparseMatrix'. This type of representation speeds-up computation compared to 'MALDIquant::MassPeaks'.
createSparseMat(x)
x: |
a list of |
An S3 class 'sparseIntensityMatrix' with three slots; 'spmat' - sparse matrix
of type 'Matrix::dgCMatrix' holding the spectral intensities (see ?Matrix::sparseMatrix
),
'mzAxis' - a numeric holding all m/z bins (in Da) and, finally, 'coordinates' - a two-column matrix
holding the coordinates of the spectra which are stored in rows of 'spmat'.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.