Skip to content

Commit 4eec975

Browse files
authored
Merge pull request #32 from MPUSP/improvements
feat!: refactoring of workflow to make it more flexible, remove hardcoded options
2 parents 5675023 + ac8ab3c commit 4eec975

48 files changed

Lines changed: 871 additions & 1673 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.editorconfig

Lines changed: 0 additions & 15 deletions
This file was deleted.
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/main.yml

Lines changed: 0 additions & 58 deletions
This file was deleted.
Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +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
9-
10-
name: release-please
10+
issues: write
1111

1212
jobs:
1313
release-please:
14-
runs-on: ubuntu-latest
15-
steps:
16-
- uses: googleapis/release-please-action@v4
17-
with:
18-
token: ${{ secrets.GITHUB_TOKEN }}
19-
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

.snakemake-workflow-catalog.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
1+
# configuration of display in snakemake workflow catalog: https://snakemake.github.io/snakemake-workflow-catalog
2+
13
usage:
2-
software-stack-deployment: # definition of software deployment method (at least one of conda, singularity, or singularity+conda)
3-
conda: true # whether pipeline works with --use-conda
4-
singularity: false # whether pipeline works with --use-singularity
5-
singularity+conda: false # whether pipeline works with --use-singularity --use-conda
6-
report: true # add this to confirm that the workflow allows to use 'snakemake --report report.zip' to generate a report containing all results and explanations
4+
mandatory-flags:
5+
desc: # describe your flags here in a few sentences
6+
flags: # put your flags here
7+
software-stack-deployment:
8+
conda: true # whether pipeline works with '--sdm conda'
9+
apptainer: false # whether pipeline works with '--sdm apptainer/singularity'
10+
apptainer+conda: true # whether pipeline works with '--sdm conda apptainer/singularity'
11+
report: true # whether creation of reports using 'snakemake --report report.zip' is supported

.test/config/config.yml

Lines changed: 25 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
samplesheet: "config/samplesheet/samples_mpusp_custom.tsv"
2-
libtype: "sense"
1+
samplesheet: "config/samplesheet/samples_neb_umi.tsv"
2+
libtype: "antisense"
33

44
get_genome:
55
database: "ncbi"
@@ -11,48 +11,34 @@ get_genome:
1111
"RefSeq": "gene",
1212
"RefSeq": "pseudogene",
1313
"RefSeq": "CDS",
14-
"Protein Homology": "CDS"
14+
"Protein Homology": "CDS",
1515
]
1616

1717
extract_features:
1818
biotypes: ["protein_coding", "pseudogene", "ncRNA", "rRNA", "tRNA"]
1919

2020
umi_extraction:
21-
method: "string"
22-
pattern: "--bc-pattern=NNNCCCNNNCCCNNNC"
21+
method: "none"
22+
pattern: ""
2323
umi_dedup: "--edit-distance-threshold=0"
2424

25-
cutadapt:
26-
read1_adapter: "TACACGACGCTCTTCCGATCT"
27-
read2_adapter: "AGATCGGAAGAGCGTCGTGTA"
28-
default:
29-
[
30-
"-q 10 ",
31-
"-m 18 ",
32-
"--overlap=3"
33-
]
25+
fastp:
26+
extra: "-M 10 -l 18 --adapter_sequence AGATCGGAAGAGCACACGTCTGAACTCCAGTCA --adapter_sequence_r2 AGATCGGAAGAGCGTCGTGTAGGGAAAGAGTGT"
3427

3528
star:
36-
index: Null
37-
genomeSAindexNbases: 9
38-
multi: 10
39-
sam_multi: 1
40-
intron_max: 1
41-
default:
29+
index: "--genomeSAindexNbases 9"
30+
extra:
4231
[
43-
"--readFilesCommand zcat ",
44-
"--outSAMstrandField None ",
45-
"--outSAMattributes All ",
46-
"--outSAMattrIHstart 0 ",
47-
"--outFilterType Normal ",
48-
"--outFilterMultimapScoreRange 1 ",
49-
"-o STARmappings ",
50-
"--outSAMtype BAM Unsorted ",
51-
"--outStd BAM_Unsorted ",
52-
"--outMultimapperOrder Random ",
53-
"--alignEndsType EndToEnd",
32+
"--outFilterMultimapNmax 10",
33+
"--outSAMmultNmax 1",
34+
"--outMultimapperOrder Random",
35+
"--alignIntronMax 1",
5436
]
5537

38+
samtools:
39+
sort: ""
40+
index: ""
41+
5642
feature_counts:
5743
defaults:
5844
[
@@ -61,18 +47,16 @@ feature_counts:
6147
"-g locus_tag",
6248
"-M",
6349
"--fracOverlap 0.2",
64-
"--largestOverlap"
50+
"--largestOverlap",
6551
]
6652

6753
deeptools:
68-
bin_size: 1
69-
normalize: "CPM"
70-
defaults: "--exactScaling"
71-
paired_end: "--extendReads"
54+
genome_size: 2000000
55+
extra: "--binSize 1 --normalizeUsing CPM --exactScaling --extendReads"
56+
57+
fastqc:
58+
extra: "--quiet --nogroup"
7259

7360
multiqc:
74-
config: "config/multiqc_config.yml"
75-
defaults: ["--dirs-depth 2 ",
76-
"--exclude general_stats ",
77-
"--force ",
78-
"--dirs"]
61+
config: "config/multiqc_config.yml"
62+
extra: "--dirs"

.test/config/multiqc_config.yml

Lines changed: 8 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
report_header_info:
2+
- Snakemake workflow: https://github.com/MPUSP/snakemake-bacterial-rnaseq-processing
23
- Contact E-mail: "bioinformatics@mpusp.mpg.de"
34
- Application Type: "Bacterial RNAseq"
45
- Sequencing Platform: "Illumina"
@@ -15,7 +16,7 @@ custom_logo_url: "https://www.mpusp.mpg.de/"
1516
custom_logo_title: "Max Planck Unit for the Science of Pathogens"
1617

1718
skip_versions_section: false
18-
disable_version_detection: true
19+
disable_version_detection: false
1920
versions_table_group_header: "Workflow Analysis Steps"
2021

2122
skip_generalstats: true
@@ -24,21 +25,10 @@ remove_sections:
2425
- samtools-stats
2526

2627
module_order:
28+
- fastqc
29+
- fastp
2730
- star
28-
- cutadapt
29-
- fastqc:
30-
name: "FastQC (trimmed)"
31-
anchor: "fastqc_trimmed"
32-
info: "This section of the report shows FastQC results after adapter trimming."
33-
target: ""
34-
path_filters:
35-
- "*/clipped_reads/*_fastqc.zip"
36-
- fastqc:
37-
name: "FastQC (raw)"
38-
anchor: "fastqc_raw"
39-
path_filters:
40-
- "*/raw_reads/*_fastqc.zip"
41-
42-
report_section_order:
43-
fastqc_raw:
44-
before: fastqc_trimmed
31+
- umitools
32+
- featurecounts
33+
- samtools
34+
- biotype_dist
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
sample condition replicate experiment data_folder fq1 fq2 fq_umi
2-
RNA-1 RNA 1 rnaseq_mpusp_custom data/rnaseq_mpusp_custom RNA-1_R1.fastq.gz RNA-1_R2.fastq.gz -
3-
RNA-2 RNA 2 rnaseq_mpusp_custom data/rnaseq_mpusp_custom RNA-2_R1.fastq.gz RNA-2_R2.fastq.gz -
1+
sample condition replicate read1 read2 readumi
2+
RNA-1 RNA 1 data/rnaseq_mpusp_custom/RNA-1_R1.fastq.gz data/rnaseq_mpusp_custom/RNA-1_R2.fastq.gz -
3+
RNA-2 RNA 2 data/rnaseq_mpusp_custom/RNA-2_R1.fastq.gz data/rnaseq_mpusp_custom/RNA-2_R2.fastq.gz -

0 commit comments

Comments
 (0)