Skip to content

Commit cb4f792

Browse files
authored
Merge pull request #31 from MPUSP/dev
feat: update docs, CI workflows
2 parents 19993ea + d619663 commit cb4f792

10 files changed

Lines changed: 64 additions & 212 deletions

File tree

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 & 54 deletions
This file was deleted.

.github/workflows/main.yml

Lines changed: 0 additions & 56 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: go # just keep a changelog, no version anywhere outside of git tags
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

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# Snakemake-simple-mapping
22

33
[![Snakemake](https://img.shields.io/badge/snakemake-≥8.0.0-brightgreen.svg)](https://snakemake.github.io)
4-
[![GitHub actions status](https://github.com/MPUSP/snakemake-simple-mapping/actions/workflows/main.yml/badge.svg?branch=main)](https://github.com/MPUSP/snakemake-simple-mapping/actions/workflows/main.yml)
4+
[![GitHub Actions](https://github.com/MPUSP/snakemake-simple-mapping/actions/workflows/snakemake-tests.yml/badge.svg)](https://github.com/MPUSP/snakemake-simple-mapping/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/)
6-
[![run with apptainer](https://img.shields.io/badge/run%20with-singularity-1D355C.svg?labelColor=000000)](https://sylabs.io/docs/)
6+
[![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-simple-mapping)
88

99
A Snakemake workflow for the mapping of reads to reference genomes, minimalistic and simple.

config/README.md

Lines changed: 0 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -33,79 +33,3 @@ The sample sheet listing read input files needs to have the following layout:
3333
| ------- | ----------- | ------------------- | ------------------- |
3434
| sample1 | strain XY | sample1_R1.fastq.gz | sample1_R2.fastq.gz |
3535
| ... | ... | ... | ... |
36-
37-
### Parameters
38-
39-
This table lists all parameters that can be used to run the workflow.
40-
41-
| parameter | type | details | default |
42-
| ------------------------ | ------- | -------------------------------------------------------- | ----------------- |
43-
| **samplesheet** | string | path to the sample sheet in tsv format | |
44-
| **get_genome** | | | |
45-
| database | string | database to use for genome retrieval, 'ncbi' or 'manual' | `ncbi` |
46-
| assembly | string | Refseq ID to use for genome retrieval | `GCF_000307535.1` |
47-
| fasta | string | path to a custom FASTA file (optional) | |
48-
| gff | string | path to a custom GFF file (optional) | |
49-
| gff_source_type | array | mapping of GFF source types to feature types | |
50-
| **fastp** | | | |
51-
| extra | string | additional arguments to Fastp | |
52-
| **mapping** | | | |
53-
| tool | string | mapping tool to use, one of 'bowtie2', 'bwa_mem2' | `bwa_mem2` |
54-
| _bowtie2_ | | | |
55-
| index | string | additional arguments to bowtie build | |
56-
| extra | string | additional arguments to bowtie align | |
57-
| _bwa_mem2_ | | | |
58-
| extra | string | additional arguments to bwa-mem2 | |
59-
| sort | string | sorting tool to use | `samtools` |
60-
| sort_order | string | sorting order to use | `coordinate` |
61-
| sort_extra | string | additional arguments to the sorting tool | |
62-
| _samtools_sort_ | | | |
63-
| extra | string | additional arguments to Samtools sort | `-m 4G` |
64-
| index | object | Samtools index options | |
65-
| extra | string | additional arguments to Samtools index | |
66-
| _star_ | | | |
67-
| index | string | additional arguments to STAR index | |
68-
| extra | string | additional arguments to STAR align | |
69-
| _minimap2_ | | | |
70-
| index | string | additional arguments to minimap2 index | |
71-
| extra | string | additional arguments to minimap2 align | `-ax map-ont` |
72-
| sorting | string | sorting order to use | `coordinate` |
73-
| sort_extra | string | additional arguments to the sorting tool | |
74-
| **mapping_stats** | | | |
75-
| _gffread_ | | | |
76-
| extra | string | additional arguments to GFFread | |
77-
| _rseqc_infer_experiment_ | | | |
78-
| extra | string | additional arguments to RSeQC infer_experiment | |
79-
| _rseqc_bam_stat_ | | | |
80-
| extra | string | additional arguments to RSeQC bam_stat | |
81-
| _deeptools_coverage_ | | | |
82-
| genome_size | integer | genome size in base pairs | `1000` |
83-
| extra | string | additional arguments to DeepTools bamCoverage | |
84-
| **variant_calling** | | | |
85-
| _bcftools_pileup_ | | | |
86-
| uncompressed | boolean | whether to output uncompressed BCF files | `False` |
87-
| extra | string | additional arguments to BCFtools pileup | |
88-
| _bcftools_call_ | | | |
89-
| uncompressed | boolean | whether to output uncompressed VCF files | `False` |
90-
| caller | string | use '-c' for consensus or '-m' for multiallelic | `-c` |
91-
| extra | string | additional arguments to BCFtools view | |
92-
| _bcftools_view_ | | | |
93-
| extra | string | additional arguments to BCFtools call | |
94-
| _bcftools_filter_ | | | |
95-
| filter | string | expression by which to filter BCF/VCF result | `-e 'ALT=\".\"'` |
96-
| extra | string | additional arguments to BCFtools filter | |
97-
| _freebayes_ | | | |
98-
| extra | string | additional arguments to Freebayes call | |
99-
| **variant_annotation** | | | |
100-
| tool | string | annotation tool to use, one of 'vep', 'snpeff' | `vep` |
101-
| _vep_ | | | |
102-
| convert_gff | boolean | whether to convert NCBI GFF to Ensemble style GFF | `True` |
103-
| plugins | array | VEP plugins to use | `[]` |
104-
| extra | string | additional arguments to VEP | see config.yml |
105-
| _snpeff_ | | | |
106-
| extra | string | additional arguments to SnpEff | see config.yml |
107-
| **qc** | | | |
108-
| _fastqc_ | | | |
109-
| extra | string | additional arguments to FastQC | |
110-
| _multiqc_ | | | |
111-
| extra | string | additional arguments to MultiQC | |

0 commit comments

Comments
 (0)