Skip to content

Commit 48d5e4a

Browse files
Resolved merge conflicts
2 parents afd559f + 8dcff23 commit 48d5e4a

Some content is hidden

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

59 files changed

+2860
-1288
lines changed

.github/workflows/awsfulltest.yml

Lines changed: 31 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,40 @@
11
name: nf-core AWS full size tests
2-
# This workflow is triggered on published releases.
2+
# This workflow is triggered on PRs opened against the master branch.
33
# It can be additionally triggered manually with GitHub actions workflow dispatch button.
44
# It runs the -profile 'test_full' on AWS batch
55

66
on:
7-
release:
8-
types: [published]
7+
pull_request:
8+
branches:
9+
- master
910
workflow_dispatch:
11+
pull_request_review:
12+
types: [submitted]
13+
1014
jobs:
11-
run-tower:
15+
run-platform:
1216
name: Run AWS full tests
13-
if: github.repository == 'nf-core/rnasplice'
17+
# run only if the PR is approved by at least 2 reviewers and against the master branch or manually triggered
18+
if: github.repository == 'nf-core/rnasplice' && github.event.review.state == 'approved' && github.event.pull_request.base.ref == 'master' || github.event_name == 'workflow_dispatch'
1419
runs-on: ubuntu-latest
1520
steps:
16-
- name: Launch workflow via tower
21+
- uses: octokit/request-action@v2.x
22+
id: check_approvals
23+
with:
24+
route: GET /repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/reviews
25+
env:
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27+
- id: test_variables
28+
if: github.event_name != 'workflow_dispatch'
29+
run: |
30+
JSON_RESPONSE='${{ steps.check_approvals.outputs.data }}'
31+
CURRENT_APPROVALS_COUNT=$(echo $JSON_RESPONSE | jq -c '[.[] | select(.state | contains("APPROVED")) ] | length')
32+
test $CURRENT_APPROVALS_COUNT -ge 2 || exit 1 # At least 2 approvals are required
33+
- name: Launch workflow via Seqera Platform
1734
uses: seqeralabs/action-tower-launch@v2
35+
# TODO nf-core: You can customise AWS full pipeline tests as required
36+
# Add full size test data (but still relatively small datasets for few samples)
37+
# on the `test_full.config` test runs with only one set of parameters
1838
with:
1939
workspace_id: ${{ secrets.TOWER_WORKSPACE_ID }}
2040
access_token: ${{ secrets.TOWER_ACCESS_TOKEN }}
@@ -27,9 +47,10 @@ jobs:
2747
"outdir": "s3://${{ secrets.AWS_S3_BUCKET }}/rnasplice/results-${{ github.sha }}"
2848
}
2949
profiles: test_full
30-
- uses: actions/upload-artifact@v3
50+
51+
- uses: actions/upload-artifact@v4
3152
with:
32-
name: Tower debug log file
53+
name: Seqera Platform debug log file
3354
path: |
34-
tower_action_*.log
35-
tower_action_*.json
55+
seqera_platform_action_*.log
56+
seqera_platform_action_*.json

.github/workflows/ci.yml

Lines changed: 53 additions & 183 deletions
Original file line numberDiff line numberDiff line change
@@ -7,218 +7,88 @@ on:
77
pull_request:
88
release:
99
types: [published]
10+
workflow_dispatch:
1011

1112
env:
1213
NXF_ANSI_LOG: false
14+
NXF_SINGULARITY_CACHEDIR: ${{ github.workspace }}/.singularity
15+
NXF_SINGULARITY_LIBRARYDIR: ${{ github.workspace }}/.singularity
1316

1417
concurrency:
1518
group: "${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}"
1619
cancel-in-progress: true
1720

1821
jobs:
1922
test:
20-
name: Run full pipeline with test data
23+
name: "Run pipeline with test data (${{ matrix.NXF_VER }} | ${{ matrix.test_name }} | ${{ matrix.profile }})"
2124
# Only run on push if this is the nf-core dev branch (merged PRs)
2225
if: "${{ github.event_name != 'push' || (github.event_name == 'push' && github.repository == 'nf-core/rnasplice') }}"
2326
runs-on: ubuntu-latest
2427
strategy:
2528
matrix:
2629
NXF_VER:
27-
- "23.04.0"
30+
- "24.04.2"
2831
- "latest-everything"
32+
profile:
33+
- "conda"
34+
- "docker"
35+
- "singularity"
36+
test_name:
37+
- "test"
38+
# - "test_dexseq"
39+
# - "test_edger"
40+
# - "test_rmats"
41+
# - "test_suppa"
42+
# - "test_fastq"
43+
# - "test_genome_bam"
44+
# - "test_transcriptome_bam"
45+
# - "test_salmon_results"
46+
# - "test_isoformswitchanalyzer"
47+
isMaster:
48+
- ${{ github.base_ref == 'master' }}
49+
# Exclude conda and singularity on dev
50+
exclude:
51+
- isMaster: false
52+
profile: "conda"
53+
- isMaster: false
54+
profile: "singularity"
2955
steps:
3056
- name: Check out pipeline code
31-
uses: actions/checkout@v4
57+
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4
3258

33-
- name: Install Nextflow
34-
uses: nf-core/setup-nextflow@v1
59+
- name: Set up Nextflow
60+
uses: nf-core/setup-nextflow@v2
3561
with:
3662
version: "${{ matrix.NXF_VER }}"
3763

38-
- name: Run full pipeline with test data
39-
run: |
40-
nextflow run ${GITHUB_WORKSPACE} -profile test,docker --outdir ./results
41-
42-
test_dexseq:
43-
name: Run DEXSeq pipeline with test data
44-
# Only run on push if this is the nf-core dev branch (merged PRs)
45-
if: "${{ github.event_name != 'push' || (github.event_name == 'push' && github.repository == 'nf-core/rnasplice') }}"
46-
runs-on: ubuntu-latest
47-
strategy:
48-
matrix:
49-
NXF_VER:
50-
- "23.04.0"
51-
- "latest-everything"
52-
steps:
53-
- name: Check out pipeline code
54-
uses: actions/checkout@v3
55-
56-
- name: Install Nextflow
57-
uses: nf-core/setup-nextflow@v1
58-
with:
59-
version: "${{ matrix.NXF_VER }}"
60-
61-
- name: Run DEXSeq pipeline with test data
62-
run: |
63-
nextflow run ${GITHUB_WORKSPACE} -profile test_dexseq,docker --outdir ./results
64-
65-
test_edger:
66-
name: Run edgeR pipeline with test data
67-
# Only run on push if this is the nf-core dev branch (merged PRs)
68-
if: "${{ github.event_name != 'push' || (github.event_name == 'push' && github.repository == 'nf-core/rnasplice') }}"
69-
runs-on: ubuntu-latest
70-
strategy:
71-
matrix:
72-
NXF_VER:
73-
- "23.04.0"
74-
- "latest-everything"
75-
steps:
76-
- name: Check out pipeline code
77-
uses: actions/checkout@v3
78-
79-
- name: Install Nextflow
80-
uses: nf-core/setup-nextflow@v1
81-
with:
82-
version: "${{ matrix.NXF_VER }}"
83-
84-
- name: Run edgeR pipeline with test data
85-
run: |
86-
nextflow run ${GITHUB_WORKSPACE} -profile test_edger,docker --outdir ./results
87-
88-
test_rmats:
89-
name: Run rMATS pipeline with test data
90-
# Only run on push if this is the nf-core dev branch (merged PRs)
91-
if: "${{ github.event_name != 'push' || (github.event_name == 'push' && github.repository == 'nf-core/rnasplice') }}"
92-
runs-on: ubuntu-latest
93-
strategy:
94-
matrix:
95-
NXF_VER:
96-
- "23.04.0"
97-
- "latest-everything"
98-
steps:
99-
- name: Check out pipeline code
100-
uses: actions/checkout@v3
101-
102-
- name: Install Nextflow
103-
uses: nf-core/setup-nextflow@v1
104-
with:
105-
version: "${{ matrix.NXF_VER }}"
106-
107-
- name: Run rMATS pipeline with test data
108-
run: |
109-
nextflow run ${GITHUB_WORKSPACE} -profile test_rmats,docker --outdir ./results
110-
111-
test_suppa:
112-
name: Run SUPPA pipeline with test data
113-
# Only run on push if this is the nf-core dev branch (merged PRs)
114-
if: "${{ github.event_name != 'push' || (github.event_name == 'push' && github.repository == 'nf-core/rnasplice') }}"
115-
runs-on: ubuntu-latest
116-
strategy:
117-
matrix:
118-
NXF_VER:
119-
- "23.04.0"
120-
- "latest-everything"
121-
steps:
122-
- name: Check out pipeline code
123-
uses: actions/checkout@v3
64+
- name: Set up Apptainer
65+
if: matrix.profile == 'singularity'
66+
uses: eWaterCycle/setup-apptainer@main
12467

125-
- name: Install Nextflow
126-
uses: nf-core/setup-nextflow@v1
127-
with:
128-
version: "${{ matrix.NXF_VER }}"
129-
130-
- name: Run SUPPA pipeline with test data
131-
run: |
132-
nextflow run ${GITHUB_WORKSPACE} -profile test_suppa,docker --outdir ./results
133-
134-
test_fastq:
135-
name: Run full pipeline with FASTQ data
136-
# Only run on push if this is the nf-core dev branch (merged PRs)
137-
if: "${{ github.event_name != 'push' || (github.event_name == 'push' && github.repository == 'nf-core/rnasplice') }}"
138-
runs-on: ubuntu-latest
139-
strategy:
140-
matrix:
141-
NXF_VER:
142-
- "23.04.0"
143-
- "latest-everything"
144-
steps:
145-
- name: Check out pipeline code
146-
uses: actions/checkout@v3
147-
148-
- name: Install Nextflow
149-
uses: nf-core/setup-nextflow@v1
150-
with:
151-
version: "${{ matrix.NXF_VER }}"
152-
153-
- name: Run full pipeline with FASTQ data
154-
run: |
155-
nextflow run ${GITHUB_WORKSPACE} -profile test_fastq,docker --outdir ./results
156-
157-
test_genome_bam:
158-
name: Run full pipeline with genome BAM data
159-
# Only run on push if this is the nf-core dev branch (merged PRs)
160-
if: "${{ github.event_name != 'push' || (github.event_name == 'push' && github.repository == 'nf-core/rnasplice') }}"
161-
runs-on: ubuntu-latest
162-
strategy:
163-
matrix:
164-
NXF_VER:
165-
- "23.04.0"
166-
- "latest-everything"
167-
steps:
168-
- name: Check out pipeline code
169-
uses: actions/checkout@v3
170-
171-
- name: Install Nextflow
172-
uses: nf-core/setup-nextflow@v1
173-
with:
174-
version: "${{ matrix.NXF_VER }}"
175-
176-
- name: Run full pipeline with genome BAM data
68+
- name: Set up Singularity
69+
if: matrix.profile == 'singularity'
17770
run: |
178-
nextflow run ${GITHUB_WORKSPACE} -profile test_genome_bam,docker --outdir ./results
179-
180-
test_transcriptome_bam:
181-
name: Run full pipeline with transcriptome BAM data
182-
# Only run on push if this is the nf-core dev branch (merged PRs)
183-
if: "${{ github.event_name != 'push' || (github.event_name == 'push' && github.repository == 'nf-core/rnasplice') }}"
184-
runs-on: ubuntu-latest
185-
strategy:
186-
matrix:
187-
NXF_VER:
188-
- "23.04.0"
189-
- "latest-everything"
190-
steps:
191-
- name: Check out pipeline code
192-
uses: actions/checkout@v3
71+
mkdir -p $NXF_SINGULARITY_CACHEDIR
72+
mkdir -p $NXF_SINGULARITY_LIBRARYDIR
19373
194-
- name: Install Nextflow
195-
uses: nf-core/setup-nextflow@v1
74+
- name: Set up Miniconda
75+
if: matrix.profile == 'conda'
76+
uses: conda-incubator/setup-miniconda@a4260408e20b96e80095f42ff7f1a15b27dd94ca # v3
19677
with:
197-
version: "${{ matrix.NXF_VER }}"
78+
miniconda-version: "latest"
79+
auto-update-conda: true
80+
conda-solver: libmamba
81+
channels: conda-forge,bioconda
19882

199-
- name: Run full pipeline with transcriptome BAM data
83+
- name: Set up Conda
84+
if: matrix.profile == 'conda'
20085
run: |
201-
nextflow run ${GITHUB_WORKSPACE} -profile test_transcriptome_bam,docker --outdir ./results
202-
203-
test_salmon_results:
204-
name: Run full pipeline with Salmon results data
205-
# Only run on push if this is the nf-core dev branch (merged PRs)
206-
if: "${{ github.event_name != 'push' || (github.event_name == 'push' && github.repository == 'nf-core/rnasplice') }}"
207-
runs-on: ubuntu-latest
208-
strategy:
209-
matrix:
210-
NXF_VER:
211-
- "23.04.0"
212-
- "latest-everything"
213-
steps:
214-
- name: Check out pipeline code
215-
uses: actions/checkout@v3
86+
echo $(realpath $CONDA)/condabin >> $GITHUB_PATH
87+
echo $(realpath python) >> $GITHUB_PATH
21688
217-
- name: Install Nextflow
218-
uses: nf-core/setup-nextflow@v1
219-
with:
220-
version: "${{ matrix.NXF_VER }}"
89+
- name: Clean up Disk space
90+
uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # v1.3.1
22191

222-
- name: Run full pipeline with Salmon results data
92+
- name: "Run pipeline with test data ${{ matrix.NXF_VER }} | ${{ matrix.test_name }} | ${{ matrix.profile }}"
22393
run: |
224-
nextflow run ${GITHUB_WORKSPACE} -profile test_salmon_results,docker --outdir ./results
94+
nextflow run ${GITHUB_WORKSPACE} -profile ${{ matrix.test_name }},${{ matrix.profile }} --outdir ./results

.github/workflows/linting.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,15 @@ jobs:
5858
GITHUB_COMMENTS_URL: ${{ github.event.pull_request.comments_url }}
5959
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6060
GITHUB_PR_COMMIT: ${{ github.event.pull_request.head.sha }}
61-
run: nf-core -l lint_log.txt lint --dir ${GITHUB_WORKSPACE} --markdown lint_results.md
61+
run: nf-core -l lint_log.txt pipelines lint --dir ${GITHUB_WORKSPACE} --markdown lint_results.md
62+
63+
- name: Run nf-core pipelines lint --release
64+
if: ${{ github.base_ref == 'master' }}
65+
env:
66+
GITHUB_COMMENTS_URL: ${{ github.event.pull_request.comments_url }}
67+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
68+
GITHUB_PR_COMMIT: ${{ github.event.pull_request.head.sha }}
69+
run: nf-core -l lint_log.txt pipelines lint --release --dir ${GITHUB_WORKSPACE} --markdown lint_results.md
6270

6371
- name: Run nf-core pipelines lint --release
6472
if: ${{ github.base_ref == 'master' }}

.nf-core.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,16 @@
1+
bump_version: null
2+
lint: null
3+
nf_core_version: 3.0.2
4+
org_path: null
15
repository_type: pipeline
2-
nf_core_version: 2.14.1
6+
template:
7+
author: Ben Southgate, James Ashmore
8+
description: Alternative splicing analysis using RNA-seq.
9+
force: false
10+
is_nfcore: true
11+
name: rnasplice
12+
org: nf-core
13+
outdir: .
14+
skip_features: null
15+
version: 1.0.5
16+
update: null

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@
33
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
44
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
55

6+
## v1.0.5 - 2024-11-03
7+
8+
- Added IsoformSwitchAnalyzeR to pipeline.
9+
- Updated to migrate from nf-validation to nf-schema.
10+
- Updated to remove max_memory, max_cpus, max_time and replace with process resourceLimits.
11+
- Updated for nf-core template version 3.0.2.
12+
- Updated to remove lib folder and add utils subworkflows.
613
## Dev v1.0.5dev - TBD - TBD
714

815
- Add first steps of leafcutter splicing quantification

CITATIONS.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,12 @@
8181

8282
> Nowicka M, Robinson MD (2016). “DRIMSeq: a Dirichlet-multinomial framework for multivariate count outcomes in genomics [version 2; referees: 2 approved].” F1000Research, 5(1356). doi: 10.12688/f1000research.8900.2.
8383
84+
- [IsoformSwitchAnalyzeR](https://www.bioconductor.org/packages/release/bioc/html/IsoformSwitchAnalyzeR.html)
85+
86+
> Vitting-Seerup K, Sandelin A (2017). “The Landscape of Isoform Switches in Human Cancers.” Mol. Cancer Res. doi:10.1158/1541-7786.MCR-16-0459, doi: 10.1158/1541-7786.MCR-16-0459.
87+
88+
> Vitting-Seerup K, Sandelin A (2019). “IsoformSwitchAnalyzeR: Analysis of changes in genome-wide patterns of alternative splicing and its functional consequences.” Bioinformatics. doi:10.1093/bioinformatics/btz247, doi: 10.1093/bioinformatics/btz247.
89+
8490
- [edgeR](https://bioconductor.org/packages/release/bioc/html/edgeR.html)
8591

8692
> Robinson MD, McCarthy DJ, Smyth GK (2010). “edgeR: a Bioconductor package for differential expression analysis of digital gene expression data.” Bioinformatics, 26(1), 139-140. doi: 10.1093/bioinformatics/btp616.

0 commit comments

Comments
 (0)