The moleculaR R package provides a computational framework that introduces probabilistic mapping and point-for-point statistical testing of metabolites in tissue via Mass spectrometry imaging. It enables collective projections of metabolites and consequently spatially-resolved investigation of ion milieus, lipid pathways or user-defined biomolecular ensembles within the same image.
moleculaR comes pre-loaded with the SwissLipids database and with is capable of importing metabolite annotation results from the METASPACE platform to compute FDR-verified moleculaR probabilistic maps (MPMs) and collective projection probabilistic maps (CPPMs). moleculaR could also be deployed and hosted on a centralized server and is equipped with a web-based GUI based on Shiny.
For more information about this package and its applications please refer to the associated published article.
The devtools package could be used to install the development version of moleculaR. By using build_vignettes=TRUE
, the vignettes provided with the package will be automatically build, but keep in mind that this will prolong the package installation processes.
install.packages("devtools")
devtools::install_github("CeMOS-Mannheim/moleculaR", build_vignettes=TRUE)
Note that moleculaR was created with renv
to help manage R package dependencies and computational reproducibility. for more info, check the renv guide page.
Example MSI data could be downloaded in imzML fomat via this link (not yet public).
Vignettes are provided with the package to illustrate basic functionality. You can see all installed vignettes by calling browseVignettes("moleculaR")
. To read a speficic vignette use, for example, vignette("moleculaR-walkthrough")
and to view its code use edit(vignette("moleculaR-walkthrough"))
.
moleculaR provides an R Shiny web app package-app
with intuitive web-based GUI. It contains an example
section which comes pre-loaded with an examplary reduced MALDI MSI dataset (see citation below) and a main
section which lets the user upload her own centroided imzML data and apply spatial probabilistic mapping through Molecular probabilistic Maps (MPMs) and Collective Projection probabilistic Maps (CPPMs).
moleculaR comes pre-loaded with two R Shiny-apps which could also be hosted on a local server by downloading and installing Shiny Server with which a user could run these apps from a local (or possibly remote) network from their browser. For more info please refer to the Shiny Server download page and installation instruction and server management.
Please cite the associated published article Abu Sammour et al., 2023, Nature Communications.
You are welcome to:
- submit suggestions and bug-reports at: https://github.com/CeMOS-Mannheim/moleculaR/issues
- send a pull request on: https://github.com/CeMOS-Mannheim/moleculaR/
- compose an e-mail to: d.abu-sammour@hs-mannheim.de
See license document.