Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ Snakemake workflow functions that are shared across many pathogen workflows that

- [config.smk](snakemake/config.smk) - Shared functions for handling workflow configs.
- [remote_files.smk](snakemake/remote_files.smk) - Exposes the `path_or_url` function which will use Snakemake's storage plugins to download/upload files to remote providers as needed.
- [dependencies.py](./snakemake/dependencies.py) - Helper functions for checking dependency versions.


## Software requirements
Expand Down
3 changes: 3 additions & 0 deletions snakemake/config.smk
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
Shared functions to be used within a Snakemake workflow for handling
workflow configs.
"""
from dependencies import set_min_augur_version
set_min_augur_version("34.1.0")
Comment thread
victorlin marked this conversation as resolved.

import os
import sys
import yaml
Expand Down
10 changes: 10 additions & 0 deletions snakemake/dependencies.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
from packaging import version
from augur.__version__ import __version__ as augur_version
import sys


def set_min_augur_version(min_augur_version: str):
if version.parse(augur_version) < version.parse(min_augur_version):
print("This pipeline needs a newer version of augur than you currently have...")
print(f"Current augur version: {augur_version}. Minimum required: {min_augur_version}")
sys.exit(1)
Loading