library(echoconda)
echoconda
's primary purpose is to robustly build, use and export
conda environments from within R.
Will build the "echoR_mini" conda environment by default.
conda_env <- echoconda::yaml_to_env("echoR_mini")
yaml_path <- echoconda::env_to_yaml(conda_env = "echoR_mini")
echoconda::activate_env(conda_env = "echoR_mini")
pkgs <- echoconda::find_packages(packages = c("python","tabix","axel"), conda_env = "echoR_mini") knitr::kable(pkgs)
python <- echoconda::find_python_path(conda_env = "echoR_mini") print(python)
In addition, echoconda
has some functionality for automatically converting
command line interface (CLI) tools into R functions.
Here we will use a conda-installed version of tabix as an example.
#### Import tool #### tabix <- echoconda::import_cli(path = "tabix", conda_env = "echoR_mini") #### Use function to query file #### target_path <- system.file("extdata", "BST1.1KGphase3.vcf.bgz", package = "echodata") query <- "4:5000-100000000" res <- tabix(D = TRUE, h = TRUE, ... = paste(target_path, query)) dat <- data.table::fread(text = res, skip = "#CHROM")
utils::sessionInfo()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.