---
tags: GeneLab
title: dp_tools setup
---
# dp_tools_setup
Code below is for this link: https://github.com/AstrobioMike/dp_tools/tree/mike-dev
You will need to change the `git clone` command below accordingly to be your username and your branch name.
## Cloning and installing
```bash
# cloning just wanted branch
git clone -b mike-dev https://github.com/AstrobioMike/dp_tools.git
# making virtual env (six, requests, and rich i needed when doing local nextflow runs (even though they worked when outside nextflow) so just added here)
mamba create -y -n dp-tools-dev -c conda-forge -c bioconda -c defaults python=3 samtools=1.15.1 pytest=7.1.3 six requests rich
conda activate dp-tools-dev
# installing in "development mode" (so we can edit code that the package recognizes and uses)
pip install --editable dp_tools/
# quick test that it can find modules
dpt-get-isa-archive -h
```
---
## Note for Mike (this is done above also now)
When testing local nextflow workflows with the above install, libraries were missing (even though they worked outside of nextflow/pip shows them installed already). Adding them with conda worked though:
```bash
mamba install -c conda-forge six requests rich
```
<!--
## Downloading zip file and installing
```bash
# downloading zip
wget https://github.com/AstrobioMike/dp_tools/archive/refs/heads/mike-dev.zip
unzip mike-dev.zip
# making virtual env
mamba create -y -n dp-tools-test-env-1 -c conda-forge -c bioconda -c defaults python=3 samtools=1.15.1 pytest=7.1.3
conda activate dp-tools-test-env-1
# installing in "development mode" (so we can edit code that the package recognizes and uses)
pip install --editable dp_tools-mike-dev/
# quick test for finding modules
dpt-get-isa-archive -h
```
-->