# install.packages("devtools")
devtools::install_github("mqzhanglab/BSDE", build_vignettes = TRUE)
In case of missing dependency, the following R packages need to be installed from BioConductor:
if (!requireNamespace("BiocManager", quietly = TRUE))
install.packages("BiocManager")
BiocManager::install("scater")
BiocManager::install("SingleCellExperiment")
Additionally, the package calls (via reticulate) Python module POT to compute optimal transport. To things work properly, POT should be pre-installed in a conda environment named r-reticulate
. This can be set up automatically the first time BSDE is loaded.
But if that fails, you can install manually:
First, make sure conda/miniconda is installed. You can follow the instructions here.
Run the following in a terminal (line by line):
bash
conda create --name r-reticulate python=3.7
conda activate r-reticulate
conda install -c conda-forge pot
If you are using RStudio, make sure the Python interpreter is not overridden to something else. In the Preferences
→ Python
, select interpreter from the r-reticulate
conda environment. Then, restart R and try library(BSDE)
. You should be able to see message "Python environment loaded".
vignette("BSDE")
to see a short introduction.Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.