Skip to content

Commit

Permalink
Merge pull request #15 from BDI-pathogens/upgrades
Browse files Browse the repository at this point in the history
Upgrades
  • Loading branch information
lithomson authored Jul 11, 2024
2 parents b7d0baa + d7e3fa1 commit 2312540
Show file tree
Hide file tree
Showing 22 changed files with 313 additions and 355 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pep8.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: PEP8 Python 3.7
name: PEP8 Python 3.12

on:
push:
Expand All @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7]
python-version: [3.12]

steps:
- uses: actions/checkout@v4
Expand Down
24 changes: 8 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![PEP8 Python 3.7](https://github.com/BDI-pathogens/ShiverCovid/actions/workflows/pep8.yml/badge.svg)](https://github.com/BDI-pathogens/ShiverCovid/actions/workflows/pep8.yml)
[![PEP8 Python 3.12](https://github.com/BDI-pathogens/ShiverCovid/actions/workflows/pep8.yml/badge.svg)](https://github.com/BDI-pathogens/ShiverCovid/actions/workflows/pep8.yml)
[![Shellcheck](https://github.com/BDI-pathogens/ShiverCovid/actions/workflows/shellcheck.yml/badge.svg)](https://github.com/BDI-pathogens/ShiverCovid/actions/workflows/shellcheck.yml)

# About
Expand All @@ -15,16 +15,14 @@ The snakemake workflow will fail upon error. Once an issue is resolved, it can b

# Prerequisites

- Slurm Workload Manager
- Miniconda 3
- Snakemake
- Shiver 1.5.8 (and associated prerequisites) *

The pipeline has been tested on a Linux environment using a Slurm Workload Manager.

The project relies on a Kraken 2 database, which is not yet part of this repo so this solution is not currently (standalone) portable.

\* The shiver package available in conda is out of date, and relies on `2to3`.

## Main conda environment

Ensure the conda environment exists:
Expand All @@ -48,13 +46,6 @@ If it doesn't exist, create it using the instructions here:

https://github.com/cov-lineages/pangolin#install-pangolin

## Load Python 2

Ensure the correct version of Python 2 is loaded, i.e. where shiver and it's prerequisites are installed. E.g:
```
module load python/2.7.11
```

# Running

## Manual setup
Expand All @@ -81,16 +72,17 @@ module load python/2.7.11
```
You will be prompted for input parameter(s).

7. Execute the Snakemake workflow.
7. Activate the conda environment:
```
conda activate shivercovid
```

8. Execute the Snakemake workflow.

A script has been provided to submit the job to a Slurm Workload Manager: `./snakemake/submit.sh`

Further information about executing Snakemake can be found in the documentation (https://snakemake.readthedocs.io/en/stable/).

### Completion flag

Once processing is complete, a flag file is created in the `COMPLETION_FLAG_DIR` defined in `_config.yaml`.

### Log files

The location of logs associated with each script will be detailed in the Snakemake output.
Loading

0 comments on commit 2312540

Please sign in to comment.