RHermes
is a broad-scoped targeted metabolomics software used to analyse LC-MS and LC-MS/MS data to identify compounds in biological or environmental samples.
The RHermes
workflow works with both Orbitrap and q-TOF instrument data and comes with an easy to use GUI that will guide you every step of the way.
Check out the documentation here
The recommended system requirements are:
You can download the development version from GitHub with:
if(!requireNamespace("devtools", quietly = TRUE))
install.packages("devtools")
devtools::install_github("RogerGinBer/RHermes")
RHermes
can perform almost all its functions after installation, but the SOI Blank Substraction step requires a valid keras
and tensorflow
installation (which rely on Python).
In principle both keras
and tensorflow
can be configured with:
reticulate::install_miniconda()
keras::install_keras()
tensorflow::install_tensorflow()
After which you can check the following:
tensorflow::tf_config()
model <- keras::load_model_hdf5(system.file("extdata", "ImprovedModel.h5", package = "RHermes"))
is(model, "python.builtin.object") #Gives TRUE if the loading is successful.
If both commands don’t give any error (the “Your CPU supports …” warning is fine) the installation has been successful. If it fails (which can happen in some devices, try Option 2).
First install Miniconda:
reticulate::install_miniconda()
Now find the Miniconda Prompt in your computer. Instead of relying on the default r-reticulate environment, type the following to create a new environment:
conda create -n newenv python=3.6 tensorflow keras
When finished, type in R:
reticulate::use_condaenv("newenv", required = TRUE)
tensorflow::tf_config()
model <- keras::load_model_hdf5(system.file("extdata", "ImprovedModel.h5", package = "RHermes"))
Everything should run smoothly. If not, try manually installing Anaconda from their website and letting reticulate
know where to find the environment.
Also check out Keras and Tensorflow R tutorials.
Once installed, you can use RHermes
programmatically like this:
library(RHermes)
#Generate a Exp object
example <- RHermesExp()
#Set your formula and adduct database
example <- setDB(example, db = "hmdb")
#Process your MS1 files
example <- processMS1(example,
system.file("extdata", "MS1TestData.mzML",
package = "RHermes"))
#Generate SOIs
example <- findSOI(example, getSOIpar(), 1)
#Generate an IL
example <- generateIL(example, 1, ILParam())
Or start the interactive GUI typing:
Please check the User Guide vignette for more detailed info and real examples.
Suggestions and bug reports are more than welcome at: https://github.com/RogerGinBer/RHermes/issues
Please cite this package as:
HERMES: a molecular formula-oriented method to target the metabolome Roger Giné, Jordi Capellades, Josep M. Badia, Dennis Vughs, Michaela Schwaiger-Haber, Maria Vinaixa, Andrea M. Brunner, Gary J. Patti, Oscar Yanes bioRxiv 2021.03.08.434466; doi: https://doi.org/10.1101/2021.03.08.434466