Herper: Install and manage Conda packages and environments from within the R console.

ADD BADGES HERE

What is Herper?

Unfortunately many tools for data analysis are not available in R, but are present in public repositories like conda. With Herper users can install, manage, record and run conda tools from the comfort of their R session.

Furthermore, many R packages require the use of these external dependencies. Again these dependencies can be installed and managed with the Conda package repository. For example 169 Bioconductor packages have external dependencies listed in their System Requirements field (often with these packages having several requirements). Herper provides an ad-hoc approach to handling external system requirements for R packages.



Installation

Use the BiocManager package to download and install the package from our Github repository:

if (!requireNamespace("BiocManager", quietly = TRUE)) {
      install.packages("BiocManager")
  }
BiocManager::install("Herper")


Once installed, load it into your R session:

library(Herper)


Basic Usage

The install_CondaTools() function allows the user to specify required Conda software and the desired environment to install into.

install_CondaTools(tools="salmon", env="herper", pathToMiniConda = myMiniconda)

Using with_CondaEnv allows users to run external software while taking care of the required PATH and environmental variables required to access all the dependencies installed in your new conda environment.

res <- with_CondaEnv("herper",
                      system2(command="salmon",args = "-h",stdout = TRUE),
                      pathToMiniConda=myMiniconda)
res


Going Further

For a more detailed walkthrough of using Herper and all itโ€™s functions check out this vignette.

We also have a guide for using Herper on system running old compilers, such as those often found on HPCs. g++ (>= 4.9.*) is required by a dependency of Herper, so installation will fail if this is not the case.


Acknowledgements

The Herper package was developed by Matt Paul, Doug Barrows and Thomas Carroll at the Rockefeller University Bioinformatics Resources Center with contributions from Kathryn Rozen-Gagnon.