Download and install Mambaforge
On Linux:
wget https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-Linux-x86_64.sh
bash Mambaforge-Linux-x86_64.sh
On MacOS:
wget https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-MacOSX-x86_64.sh
bash Mambaforge-MacOSX-x86_64.sh
Or on MacOS via Homebrew:
brew install --cask mambaforge
Run the following after installation:
mamba init
mamba config --set auto_activate_base false
Close the shell and reopen a new one to load the mamba environment.
To update the mamba base environment in future:
mamba deactivate
mamba update --all
In your Git project make an envs
directory and create a
{git repository name}.yaml
with the convention being the exact
(case-sensitive) name of your Git project, e.g.:
mkdir envs
cat > envs/deeppt.yaml <<EOF
name: deeppt
channels:
- conda-forge
- bioconda
dependencies:
- bioconductor-edger
- joblib
- libopenblas
- numpy
- pandas
- python=3.8
- r-base=3.6
- r-data.table
- r-statmod
- rpy2=3.1
- scikit-learn=0.22.2
EOF
Then create the environment:
mamba env create -f envs/deeppt.yaml
And activate:
mamba activate deeppt
To deactivate the active environment:
mamba deactivate
To update the environment, like for example to update versions of dependencies to the latest available or if you add a new dependency in the yaml file:
mamba env update -f envs/deeppt.yaml
Even though we could add sklearn-extensions
as a Git submodule, it's
easiest for now to simply clone it into the top-level of your code repository:
git clone https://github.com:hermidalc/sklearn-extensions.git sklearn_extensions
And if you need to update it:
cd sklearn_extensions
git pull