Skip to content

Commit df6d610

Browse files
authored
Merge pull request #11 from MPUSP/dev
feat: update github CI workflows and config options
2 parents ed958ac + 328c40a commit df6d610

17 files changed

Lines changed: 198 additions & 235 deletions
Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
name: Lint PR
1+
name: Conventional PRs
2+
23
on:
34
pull_request_target:
45
types:
@@ -11,10 +12,5 @@ permissions:
1112
pull-requests: read
1213

1314
jobs:
14-
main:
15-
name: Validate PR title
16-
runs-on: ubuntu-latest
17-
steps:
18-
- uses: amannn/action-semantic-pull-request@v5
19-
env:
20-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
15+
conventional-prs:
16+
uses: MPUSP/mpusp-github-actions/.github/workflows/conventional-prs.yml@main
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Deploy Apptainer
2+
3+
on:
4+
workflow_run:
5+
workflows: ["Release Please"]
6+
types:
7+
- completed
8+
workflow_dispatch:
9+
10+
permissions:
11+
contents: read
12+
packages: write
13+
14+
jobs:
15+
deploy-apptainer:
16+
if: ${{ github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' }}
17+
uses: MPUSP/mpusp-github-actions/.github/workflows/deploy-apptainer.yml@main

.github/workflows/deploy_apptainer.yml

Lines changed: 0 additions & 60 deletions
This file was deleted.

.github/workflows/main.yml

Lines changed: 0 additions & 57 deletions
This file was deleted.
Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,14 @@
1+
name: Release Please
2+
13
on:
24
push:
3-
branches:
4-
- main
5+
branches: [main]
56

67
permissions:
78
contents: write
89
pull-requests: write
910
issues: write
1011

11-
name: release-please
12-
1312
jobs:
1413
release-please:
15-
runs-on: ubuntu-latest
16-
steps:
17-
- uses: googleapis/release-please-action@v4
18-
with:
19-
token: ${{ secrets.GITHUB_TOKEN }}
20-
release-type: simple
14+
uses: MPUSP/mpusp-github-actions/.github/workflows/release-please.yml@main
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: Snakemake Tests
2+
3+
on:
4+
pull_request:
5+
branches: [main]
6+
7+
jobs:
8+
snakemake-tests:
9+
uses: MPUSP/mpusp-github-actions/.github/workflows/snakemake-tests.yml@main
10+
with:
11+
cores: 2
12+
dryrun: false

.test/config/config.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
samplesheet: "config/samples.csv"
22
tool: ["prokka"]
33

4+
reference:
5+
fasta: ""
6+
gff: ""
7+
48
pgap:
59
bin: "path/to/pgap.py"
610
use_yaml_config: True
@@ -18,12 +22,14 @@ bakta:
1822
extra: "--keep-contig-headers --compliant"
1923

2024
quast:
21-
reference_fasta: ""
22-
reference_gff: ""
2325
extra: ""
2426

2527
panaroo:
2628
skip: False
2729
remove_source: "cmsearch"
2830
remove_feature: "tRNA|rRNA|ncRNA|exon|sequence_feature"
2931
extra: "--clean-mode strict --remove-invalid-genes"
32+
33+
fastani:
34+
skip: False
35+
extra: ""

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# snakemake-assembly-postprocessing
22

33
[![Snakemake](https://img.shields.io/badge/snakemake-≥8.24.1-brightgreen.svg)](https://snakemake.github.io)
4-
[![GitHub actions status](https://github.com/MPUSP/snakemake-assembly-postprocessing/actions/workflows/main.yml/badge.svg)](https://github.com/MPUSP/snakemake-assembly-postprocessing/actions/workflows/main.yml)
4+
[![GitHub Actions](https://github.com/MPUSP/snakemake-assembly-postprocessing/actions/workflows/snakemake-tests.yml/badge.svg)](https://github.com/MPUSP/snakemake-assembly-postprocessing/actions/workflows/snakemake-tests.yml)
55
[![run with conda](http://img.shields.io/badge/run%20with-conda-3EB049?labelColor=000000&logo=anaconda)](https://docs.conda.io/en/latest/)
66
[![run with apptainer](https://img.shields.io/badge/run%20with-apptainer-1D355C.svg?labelColor=000000)](https://apptainer.org/)
77
[![workflow catalog](https://img.shields.io/badge/Snakemake%20workflow%20catalog-darkgreen)](https://snakemake.github.io/snakemake-workflow-catalog/docs/workflows/MPUSP/snakemake-assembly-postprocessing)

config/README.md

Lines changed: 2 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ A Snakemake workflow for the post-processing of microbial genome assemblies.
99
3. [bakta](https://github.com/oschwengers/bakta), a fast, alignment-free annotation tool. Note: Bakta will automatically download its companion database from zenodo (light: 1.5 GB, full: 40 GB)
1010
3. Create a QC report for the assemblies using [Quast](https://github.com/ablab/quast)
1111
4. Create a pangenome analysis (orthologs/homologs) using [Panaroo](https://gthlab.au/panaroo/)
12+
5. Compute pairwise average nucleotide identity (ANI) between the assemblies using [FastANI](https://github.com/ParBLiSS/FastANI) and plot a phylogenetic tree based on the ANI distances.
1213

1314
## Running the workflow
1415

@@ -22,34 +23,4 @@ The samplesheet table has the following layout:
2223
| EC2224 | "Streptococcus pyogenes" | SF370 | SPY | assembly.fasta |
2324
| ... | ... | ... | ... | ... |
2425

25-
**Note:** Pangenome analysis with `Panaroo` requires at least two samples.
26-
27-
### Parameters
28-
29-
This table lists all parameters that can be used to run the workflow.
30-
31-
| Parameter | Type | Details | Default |
32-
|:---|:---|:---|:---|
33-
| **samplesheet** | string | Path to the sample sheet file in csv format | |
34-
| **tool** | array[string] | Annotation tool to use (one of `prokka`, `pgap`, `bakta`) | |
35-
| **pgap** | | PGAP configuration object | |
36-
| bin | string | Path to the PGAP script | |
37-
| use_yaml_config | boolean | Whether to use YAML configuration for PGAP | `False` |
38-
| _prepare_yaml_files_ | | Paths to YAML templates for PGAP | |
39-
| generic | string | Path to the generic YAML configuration file | |
40-
| submol | string | Path to the submol YAML configuration file | |
41-
| **prokka** | | Prokka configuration object | |
42-
| center | string | Center name for Prokka annotation (used in sequence IDs) | |
43-
| extra | string | Extra command-line arguments for Prokka | `--addgenes` |
44-
| **bakta** | | Bakta configuration object | |
45-
| download_db | string | Bakta database type (`full`, `light`, or `none`) | `light` |
46-
| existing_db | string | Path to an existing Bakta database (optional). Needs to be combined with `download_db='none'` | `--keep-contig-headers --compliant` |
47-
| extra | string | Extra command-line arguments for Bakta | |
48-
| **quast** | | QUAST configuration object | |
49-
| reference_fasta | string | Path to the reference genome for QUAST | |
50-
| reference_gff | string | Path to the reference annotation for QUAST |
51-
| extra | string | Extra command-line arguments for QUAST | |
52-
| **panaroo** | | Panaroo configuration object | |
53-
| remove_source | string | Source types to remove in Panaroo (regex supported) | `cmsearch` |
54-
| remove_feature | string | Feature types to remove in Panaroo (regex supported) | `tRNA\|rRNA\|ncRNA\|exon\|sequence_feature` |
55-
| extra | string | Extra command-line arguments for Panaroo | `--clean-mode strict --remove-invalid-genes` |
26+
**Note:** Pangenome analysis with `Panaroo` and pairwise similarity analysis with `FastANI` requires at least two samples.

config/config.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
samplesheet: "config/samples.csv"
22
tool: ["prokka"]
33

4+
reference:
5+
fasta: ""
6+
gff: ""
7+
48
pgap:
59
bin: "path/to/pgap.py"
610
use_yaml_config: True
@@ -18,12 +22,14 @@ bakta:
1822
extra: "--keep-contig-headers --compliant"
1923

2024
quast:
21-
reference_fasta: ""
22-
reference_gff: ""
2325
extra: ""
2426

2527
panaroo:
2628
skip: False
2729
remove_source: "cmsearch"
2830
remove_feature: "tRNA|rRNA|ncRNA|exon|sequence_feature"
2931
extra: "--clean-mode strict --remove-invalid-genes"
32+
33+
fastani:
34+
skip: False
35+
extra: ""

0 commit comments

Comments
 (0)