Skip to content

Commit 43ad0fe

Browse files
committed
Added a specification concerning the snakemake
directory to the instructions.
1 parent 1d8bbfd commit 43ad0fe

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,14 @@ cp config_templates/basic.yaml runs/my_run/config.yaml
3939

4040
4) Run the pipeline from the repository root:
4141

42-
``` {bash}
43-
snakemake --configfile runs/my_run/config.yaml --directory runs/my_run --use-conda --cores all all
42+
```bash
43+
snakemake --configfile runs/my_run/config.yaml --directory runs/my_run --use-conda --conda-prefix ./.snakemake/conda --cores all all
4444
```
4545

46+
Note: `setup_run.sh` sets a default shared conda prefix at `./.snakemake/conda` (you can override this by exporting `CONDA_PREFIX`). Using a shared `--conda-prefix` prevents Snakemake from downloading duplicate environments into each `runs/<id>/.snakemake/conda`.
47+
48+
If you use a repo-local shared prefix, add `/.snakemake/` to `.gitignore` to avoid committing environment files.
49+
4650
This will create all outputs (`results/`, `intermediate/`, etc.) inside `runs/my_run/`, keeping your runs isolated.
4751

4852
### Option 2: Legacy repository-root workflow

0 commit comments

Comments
 (0)