Skip to content

Commit

Permalink
use cond envs
Browse files Browse the repository at this point in the history
  • Loading branch information
gordonkoehn committed Sep 24, 2024
1 parent 64f20b1 commit eea1233
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 11 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/test-snake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,8 @@ jobs:
with:
directory: '.test'
snakefile: 'workflow/Snakefile'
args: '--cores 1 --use-conda --conda-cleanup-pkgs cache'
args: '--cores 1 --use-conda --conda-frontend mamba --conda-cleanup-pkgs cache'
stagein: |
source $GITHUB_WORKSPACE/.venv/bin/activate
export PYTHONPATH="${PYTHONPATH}:$GITHUB_WORKSPACE:$GITHUB_WORKSPACE/src"
export PYTHONPATH="${PYTHONPATH}:/github/workspace:/github/workspace/src"
echo $PYTHONPATH
which python
python --version
pip list
python -c "import sys; print(sys.path)"
python -c "import usefulgnom; print(usefulgnom.__file__)"
python -c "import snakemake; print(snakemake.__file__)"
show-disk-usage-on-error: true
8 changes: 7 additions & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,10 @@ channels:
dependencies:
- python=3.11.2
- snakemake=8.18.2
- poetry=1.8.3
- poetry=1.8.3
- matplotlib=3.9.2
- pandas=2.2.2
- seaborn=0.13.2
- pip
- pip:
- -e .
3 changes: 2 additions & 1 deletion src/usefulgnom/analyze/basecnt_coverage.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Implements the read coverage analysis.
"""
Implements the read coverage analysis.
Credits:
- core code: @AugusteRi ([email protected])
Expand Down
3 changes: 3 additions & 0 deletions workflow/Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ configfile: "../config/config.yaml"
include: "rules/base_coverage.smk"
include: "rules/smk_testing.smk"

conda:
"../environment.yml"

rule all:
input:
"../results/statistics.csv"

0 comments on commit eea1233

Please sign in to comment.