Skip to content

Commit c63bfba

Browse files
nf-core-botedmundmiller
authored andcommitted
Template update for nf-core/tools version 3.0.2
1 parent b4ac8c5 commit c63bfba

File tree

12 files changed

+90
-48
lines changed

12 files changed

+90
-48
lines changed

.github/workflows/ci.yml

+47-7
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ on:
1111

1212
env:
1313
NXF_ANSI_LOG: false
14+
NXF_SINGULARITY_CACHEDIR: ${{ github.workspace }}/.singularity
15+
NXF_SINGULARITY_LIBRARYDIR: ${{ github.workspace }}/.singularity
1416
NFT_VER: "0.9.0"
1517
NFT_WORKDIR: "~"
1618
NFT_DIFF: "pdiff"
@@ -22,27 +24,37 @@ concurrency:
2224

2325
jobs:
2426
test:
27+
name: "Run pipeline with test data (${{ matrix.NXF_VER }} | ${{ matrix.test_name }} | ${{ matrix.profile }})"
28+
# Only run on push if this is the nf-core dev branch (merged PRs)
29+
if: "${{ github.event_name != 'push' || (github.event_name == 'push' && github.repository == 'nf-core/nascent') }}"
2530
runs-on: ubuntu-latest
2631
strategy:
2732
fail-fast: false
2833
matrix:
2934
NXF_VER:
3035
- "24.04.2"
3136
- "latest-everything"
37+
profile:
38+
- "conda"
39+
- "docker"
40+
- "singularity"
41+
test_name:
42+
- "test"
43+
isMaster:
44+
- ${{ github.base_ref == 'master' }}
45+
# Exclude conda and singularity on dev
46+
exclude:
47+
- isMaster: false
48+
profile: "conda"
49+
- isMaster: false
50+
profile: "singularity"
3251
shard: [1, 2, 3, 4]
33-
profile: ["docker"]
3452
steps:
3553
- name: Check out pipeline code
3654
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4
3755
with:
3856
fetch-depth: 0
3957

40-
# - name: Set up JDK 11
41-
# uses: actions/setup-java@v2
42-
# with:
43-
# java-version: "11"
44-
# distribution: "adopt"
45-
4658
- uses: actions/setup-python@v4
4759
with:
4860
python-version: "3.11"
@@ -61,6 +73,34 @@ jobs:
6173
with:
6274
version: ${{ env.NFT_VER }}
6375

76+
- name: Set up Apptainer
77+
if: matrix.profile == 'singularity'
78+
uses: eWaterCycle/setup-apptainer@main
79+
80+
- name: Set up Singularity
81+
if: matrix.profile == 'singularity'
82+
run: |
83+
mkdir -p $NXF_SINGULARITY_CACHEDIR
84+
mkdir -p $NXF_SINGULARITY_LIBRARYDIR
85+
86+
- name: Set up Miniconda
87+
if: matrix.profile == 'conda'
88+
uses: conda-incubator/setup-miniconda@a4260408e20b96e80095f42ff7f1a15b27dd94ca # v3
89+
with:
90+
miniconda-version: "latest"
91+
auto-update-conda: true
92+
conda-solver: libmamba
93+
channels: conda-forge,bioconda
94+
95+
- name: Set up Conda
96+
if: matrix.profile == 'conda'
97+
run: |
98+
echo $(realpath $CONDA)/condabin >> $GITHUB_PATH
99+
echo $(realpath python) >> $GITHUB_PATH
100+
101+
- name: Clean up Disk space
102+
uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # v1.3.1
103+
64104
- name: Run Tests (Shard ${{ matrix.shard }}/${{ strategy.job-total }})
65105
run: |
66106
nf-test test \

.github/workflows/template_version_comment.yml

+12-9
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,11 @@ jobs:
1010
steps:
1111
- name: Check out pipeline code
1212
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4
13+
with:
14+
ref: ${{ github.event.pull_request.head.sha }}
1315

1416
- name: Read template version from .nf-core.yml
15-
uses: pietrobolcato/action-read-yaml@1.0.0
17+
uses: nichmor/minimal-read-yaml@v0.0.2
1618
id: read_yml
1719
with:
1820
config: ${{ github.workspace }}/.nf-core.yml
@@ -24,20 +26,21 @@ jobs:
2426
2527
- name: Check nf-core outdated
2628
id: nf_core_outdated
27-
run: pip list --outdated | grep nf-core
29+
run: echo "OUTPUT=$(pip list --outdated | grep nf-core)" >> ${GITHUB_ENV}
2830

2931
- name: Post nf-core template version comment
3032
uses: mshick/add-pr-comment@b8f338c590a895d50bcbfa6c5859251edc8952fc # v2
3133
if: |
32-
${{ steps.nf_core_outdated.outputs.stdout }} =~ 'nf-core'
34+
contains(env.OUTPUT, 'nf-core')
3335
with:
3436
repo-token: ${{ secrets.NF_CORE_BOT_AUTH_TOKEN }}
3537
allow-repeats: false
3638
message: |
37-
## :warning: Newer version of the nf-core template is available.
38-
39-
Your pipeline is using an old version of the nf-core template: ${{ steps.read_yml.outputs['nf_core_version'] }}.
40-
Please update your pipeline to the latest version.
41-
42-
For more documentation on how to update your pipeline, please see the [nf-core documentation](https://github.com/nf-core/tools?tab=readme-ov-file#sync-a-pipeline-with-the-template) and [Synchronisation documentation](https://nf-co.re/docs/contributing/sync).
39+
> [!WARNING]
40+
> Newer version of the nf-core template is available.
41+
>
42+
> Your pipeline is using an old version of the nf-core template: ${{ steps.read_yml.outputs['nf_core_version'] }}.
43+
> Please update your pipeline to the latest version.
44+
>
45+
> For more documentation on how to update your pipeline, please see the [nf-core documentation](https://github.com/nf-core/tools?tab=readme-ov-file#sync-a-pipeline-with-the-template) and [Synchronisation documentation](https://nf-co.re/docs/contributing/sync).
4346
#

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ results/
66
testing/
77
testing*
88
*.pyc
9+
null/
910
.nf-test

.nf-core.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ lint:
55
- .github/workflows/linting.yml
66
- LICENSE
77
- assets/email_template.html
8-
nf_core_version: 3.0.1
8+
nf_core_version: 3.0.2
99
org_path: null
1010
repository_type: pipeline
1111
template:

main.nf

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ workflow {
9292
params.outdir,
9393
params.input
9494
)
95-
95+
9696
//
9797
// WORKFLOW: Run main workflow
9898
//

modules.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@
249249
},
250250
"untar": {
251251
"branch": "master",
252-
"git_sha": "b8d36829fa84b6e404364abff787e8b07f6d058c",
252+
"git_sha": "cf17ca47590cc578dfb47db1c2a44ef86f89976d",
253253
"installed_by": ["modules"]
254254
}
255255
}
@@ -308,12 +308,12 @@
308308
},
309309
"utils_nextflow_pipeline": {
310310
"branch": "master",
311-
"git_sha": "9d05360da397692321d377b6102d2fb22507c6ef",
311+
"git_sha": "3aa0aec1d52d492fe241919f0c6100ebf0074082",
312312
"installed_by": ["subworkflows"]
313313
},
314314
"utils_nfcore_pipeline": {
315315
"branch": "master",
316-
"git_sha": "772684d9d66f37b650c8ba5146ac1ee3ecba2acb",
316+
"git_sha": "1b6b9a3338d011367137808b49b923515080e3ba",
317317
"installed_by": ["subworkflows"]
318318
},
319319
"utils_nfschema_plugin": {

modules/nf-core/multiqc/main.nf

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

nextflow.config

+2-2
Original file line numberDiff line numberDiff line change
@@ -276,10 +276,10 @@ validation {
276276
"""
277277
afterText = """${manifest.doi ? "* The pipeline\n" : ""}${manifest.doi.tokenize(",").collect { " https://doi.org/${it.trim().replace('https://doi.org/','')}"}.join("\n")}${manifest.doi ? "\n" : ""}
278278
* The nf-core framework
279-
https://doi.org/10.1038/s41587-020-0439-x
279+
https://doi.org/10.1038/s41587-020-0439-x
280280
281281
* Software dependencies
282-
https://github.com/${manifest.name}/blob/master/CITATIONS.md
282+
https://github.com/${manifest.name}/blob/master/CITATIONS.md
283283
"""
284284
}
285285
summary {

subworkflows/local/utils_nfcore_nascent_pipeline/main.nf

+1-3
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ workflow PIPELINE_INITIALISATION {
4747
workflow.profile.tokenize(',').intersect(['conda', 'mamba']).size() >= 1
4848
)
4949

50-
5150
//
5251
// Validate parameters and generate parameter summary to stdout
5352
//
@@ -56,14 +55,14 @@ workflow PIPELINE_INITIALISATION {
5655
validate_params,
5756
null
5857
)
59-
6058

6159
//
6260
// Check config provided to the pipeline
6361
//
6462
UTILS_NFCORE_PIPELINE (
6563
nextflow_cli_args
6664
)
65+
6766
//
6867
// Custom validation for pipeline parameters
6968
//
@@ -110,7 +109,6 @@ workflow PIPELINE_COMPLETION {
110109
email // string: email address
111110
email_on_fail // string: email address sent on pipeline failure
112111
plaintext_email // boolean: Send plain-text email instead of HTML
113-
114112
outdir // path: Path to output directory where results will be published
115113
monochrome_logs // boolean: Disable ANSI colour codes in log output
116114
hook_url // string: hook URL for notifications

subworkflows/nf-core/utils_nextflow_pipeline/main.nf

+16-14
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

subworkflows/nf-core/utils_nfcore_pipeline/main.nf

+5-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

workflows/nascent.nf

-2
Original file line numberDiff line numberDiff line change
@@ -335,13 +335,11 @@ workflow NASCENT {
335335
Channel.fromPath(params.multiqc_logo, checkIfExists: true) :
336336
Channel.empty()
337337

338-
339338
summary_params = paramsSummaryMap(
340339
workflow, parameters_schema: "nextflow_schema.json")
341340
ch_workflow_summary = Channel.value(paramsSummaryMultiqc(summary_params))
342341
ch_multiqc_files = ch_multiqc_files.mix(
343342
ch_workflow_summary.collectFile(name: 'workflow_summary_mqc.yaml'))
344-
345343
ch_multiqc_custom_methods_description = params.multiqc_methods_description ?
346344
file(params.multiqc_methods_description, checkIfExists: true) :
347345
file("$projectDir/assets/methods_description_template.yml", checkIfExists: true)

0 commit comments

Comments
 (0)