Skip to content

Commit 45c7879

Browse files
authored
Merge pull request #3369 from nf-core/dev
dev -> main for 3.1.1
2 parents 8232947 + 82eccbe commit 45c7879

File tree

23 files changed

+142
-71
lines changed

23 files changed

+142
-71
lines changed

CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,24 @@
11
# nf-core/tools: Changelog
22

3+
## [v3.1.1 - Brass Boxfish Patch](https://github.com/nf-core/tools/releases/tag/3.1.1) - [2024-12-20]
4+
5+
### Template
6+
7+
- Use outputs instead of the environment to pass around values between steps in the Download Test Action ([#3351](https://github.com/nf-core/tools/pull/3351))
8+
- Fix pre commit template ([#3358](https://github.com/nf-core/tools/pull/3358))
9+
- Set LICENSE copyright to nf-core community ([#3366](https://github.com/nf-core/tools/pull/3366))
10+
- fix including modules.config ([#3356](https://github.com/nf-core/tools/pull/3356))
11+
12+
### Linting
13+
14+
- Linting of pipeline LICENSE file is a warning to allow for author/maintainer names ([#3366](https://github.com/nf-core/tools/pull/3366))
15+
16+
### General
17+
18+
- Add missing p ([#3357](https://github.com/nf-core/tools/pull/3357))
19+
- Use `manifest.contributors` names if available, otherwise default to `manifest.author` ([#3362](https://github.com/nf-core/tools/pull/3362))
20+
- Properly parse the names form `manifest.contributors` ([#3364](https://github.com/nf-core/tools/pull/3364))
21+
322
## [v3.1.0 - Brass Boxfish](https://github.com/nf-core/tools/releases/tag/3.1.0) - [2024-12-09]
423

524
**Highlights**

nf_core/pipeline-template/.editorconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,7 @@ indent_size = unset
3535
# ignore python and markdown
3636
[*.{py,md}]
3737
indent_style = unset
38+
39+
# ignore ro-crate metadata files
40+
[**/ro-crate-metadata.json]
41+
insert_final_newline = unset

nf_core/pipeline-template/.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ body:
1111
- [nf-core website: troubleshooting](https://nf-co.re/usage/troubleshooting)
1212
- [{{ name }} pipeline documentation](https://nf-co.re/{{ short_name }}/usage)
1313
{%- endif %}
14-
1514
- type: textarea
1615
id: description
1716
attributes:

nf_core/pipeline-template/.github/workflows/download_pipeline.yml

Lines changed: 27 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,14 @@ env:
2828
NXF_ANSI_LOG: false
2929

3030
jobs:
31-
download:
32-
runs-on: ubuntu-latest
31+
configure:
32+
runs-on: ubuntu-latest{% raw %}
33+
outputs:
34+
REPO_LOWERCASE: ${{ steps.get_repo_properties.outputs.REPO_LOWERCASE }}
35+
REPOTITLE_LOWERCASE: ${{ steps.get_repo_properties.outputs.REPOTITLE_LOWERCASE }}
36+
REPO_BRANCH: ${{ steps.get_repo_properties.outputs.REPO_BRANCH }}
3337
steps:
34-
- name: Install Nextflow
38+
- name: Install Nextflow{% endraw %}
3539
uses: nf-core/setup-nextflow@v2
3640

3741
- name: Disk space cleanup
@@ -53,65 +57,70 @@ jobs:
5357
pip install git+https://github.com/nf-core/tools.git@dev
5458
5559
- name: Get the repository name and current branch set as environment variable
60+
id: get_repo_properties
5661
run: |
57-
echo "REPO_LOWERCASE=${GITHUB_REPOSITORY,,}" >> ${GITHUB_ENV}
58-
echo "REPOTITLE_LOWERCASE=$(basename ${GITHUB_REPOSITORY,,})" >> ${GITHUB_ENV}
59-
echo "{% raw %}REPO_BRANCH=${{ github.event.inputs.testbranch || 'dev' }}" >> ${GITHUB_ENV}
62+
echo "REPO_LOWERCASE=${GITHUB_REPOSITORY,,}" >> "$GITHUB_OUTPUT"
63+
echo "REPOTITLE_LOWERCASE=$(basename ${GITHUB_REPOSITORY,,})" >> "$GITHUB_OUTPUT"
64+
echo "{% raw %}REPO_BRANCH=${{ github.event.inputs.testbranch || 'dev' }}" >> "$GITHUB_OUTPUT"
6065
6166
- name: Make a cache directory for the container images
6267
run: |
6368
mkdir -p ./singularity_container_images
6469
70+
download:
71+
runs-on: ubuntu-latest
72+
needs: configure
73+
steps:
6574
- name: Download the pipeline
6675
env:
6776
NXF_SINGULARITY_CACHEDIR: ./singularity_container_images
6877
run: |
69-
nf-core pipelines download ${{ env.REPO_LOWERCASE }} \
70-
--revision ${{ env.REPO_BRANCH }} \
71-
--outdir ./${{ env.REPOTITLE_LOWERCASE }} \
78+
nf-core pipelines download ${{ needs.configure.outputs.REPO_LOWERCASE }} \
79+
--revision ${{ needs.configure.outputs.REPO_BRANCH }} \
80+
--outdir ./${{ needs.configure.outputs.REPOTITLE_LOWERCASE }} \
7281
--compress "none" \
7382
--container-system 'singularity' \
7483
--container-library "quay.io" -l "docker.io" -l "community.wave.seqera.io/library/" \
7584
--container-cache-utilisation 'amend' \
7685
--download-configuration 'yes'
7786
7887
- name: Inspect download
79-
run: tree ./${{ env.REPOTITLE_LOWERCASE }}{% endraw %}{% if test_config %}{% raw %}
88+
run: tree ./${{ needs.configure.outputs.REPOTITLE_LOWERCASE }}{% endraw %}{% if test_config %}{% raw %}
8089

8190
- name: Count the downloaded number of container images
8291
id: count_initial
8392
run: |
8493
image_count=$(ls -1 ./singularity_container_images | wc -l | xargs)
8594
echo "Initial container image count: $image_count"
86-
echo "IMAGE_COUNT_INITIAL=$image_count" >> ${GITHUB_ENV}
95+
echo "IMAGE_COUNT_INITIAL=$image_count" >> "$GITHUB_OUTPUT"
8796
8897
- name: Run the downloaded pipeline (stub)
8998
id: stub_run_pipeline
9099
continue-on-error: true
91100
env:
92101
NXF_SINGULARITY_CACHEDIR: ./singularity_container_images
93102
NXF_SINGULARITY_HOME_MOUNT: true
94-
run: nextflow run ./${{ env.REPOTITLE_LOWERCASE }}/$( sed 's/\W/_/g' <<< ${{ env.REPO_BRANCH }}) -stub -profile test,singularity --outdir ./results
103+
run: nextflow run ./${{needs.configure.outputs.REPOTITLE_LOWERCASE }}/$( sed 's/\W/_/g' <<< ${{ needs.configure.outputs.REPO_BRANCH }}) -stub -profile test,singularity --outdir ./results
95104
- name: Run the downloaded pipeline (stub run not supported)
96105
id: run_pipeline
97-
if: ${{ job.steps.stub_run_pipeline.status == failure() }}
106+
if: ${{ steps.stub_run_pipeline.outcome == 'failure' }}
98107
env:
99108
NXF_SINGULARITY_CACHEDIR: ./singularity_container_images
100109
NXF_SINGULARITY_HOME_MOUNT: true
101-
run: nextflow run ./${{ env.REPOTITLE_LOWERCASE }}/$( sed 's/\W/_/g' <<< ${{ env.REPO_BRANCH }}) -profile test,singularity --outdir ./results
110+
run: nextflow run ./${{ needs.configure.outputs.REPOTITLE_LOWERCASE }}/$( sed 's/\W/_/g' <<< ${{ needs.configure.outputs.REPO_BRANCH }}) -profile test,singularity --outdir ./results
102111

103112
- name: Count the downloaded number of container images
104113
id: count_afterwards
105114
run: |
106115
image_count=$(ls -1 ./singularity_container_images | wc -l | xargs)
107116
echo "Post-pipeline run container image count: $image_count"
108-
echo "IMAGE_COUNT_AFTER=$image_count" >> ${GITHUB_ENV}
117+
echo "IMAGE_COUNT_AFTER=$image_count" >> "$GITHUB_OUTPUT"
109118
110119
- name: Compare container image counts
111120
run: |
112-
if [ "${{ env.IMAGE_COUNT_INITIAL }}" -ne "${{ env.IMAGE_COUNT_AFTER }}" ]; then
113-
initial_count=${{ env.IMAGE_COUNT_INITIAL }}
114-
final_count=${{ env.IMAGE_COUNT_AFTER }}
121+
if [ "${{ steps.count_initial.outputs.IMAGE_COUNT_INITIAL }}" -ne "${{ steps.count_afterwards.outputs.IMAGE_COUNT_AFTER }}" ]; then
122+
initial_count=${{ steps.count_initial.outputs.IMAGE_COUNT_INITIAL }}
123+
final_count=${{ steps.count_afterwards.outputs.IMAGE_COUNT_AFTER }}
115124
difference=$((final_count - initial_count))
116125
echo "$difference additional container images were \n downloaded at runtime . The pipeline has no support for offline runs!"
117126
tree ./singularity_container_images

nf_core/pipeline-template/.gitpod.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ tasks:
33
- name: Update Nextflow and setup pre-commit
44
command: |
55
pre-commit install --install-hooks
6-
nextflow self-update {% if code_linters %}
6+
nextflow self-update {%- if code_linters %}
77
88
vscode:
99
extensions:

nf_core/pipeline-template/.prettierignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,6 @@ testing/
1616
testing*
1717
*.pyc
1818
bin/
19+
{%- if rocrate %}
20+
ro-crate-metadata.json
21+
{%- endif %}

nf_core/pipeline-template/CITATIONS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
1919
{%- endif %}
2020

21-
{% if multiqc %}- [MultiQC](https://pubmed.ncbi.nlm.nih.gov/27312411/)
21+
{%- if multiqc %}- [MultiQC](https://pubmed.ncbi.nlm.nih.gov/27312411/)
2222

2323
> Ewels P, Magnusson M, Lundin S, Käller M. MultiQC: summarize analysis results for multiple tools and samples in a single report. Bioinformatics. 2016 Oct 1;32(19):3047-8. doi: 10.1093/bioinformatics/btw354. Epub 2016 Jun 16. PubMed PMID: 27312411; PubMed Central PMCID: PMC5039924.
2424

nf_core/pipeline-template/LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) {{ author }}
3+
Copyright (c) The {{ name }} team
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

nf_core/pipeline-template/README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
</picture>
88
</h1>
99

10-
{% else %}
10+
{%- else -%}
1111

1212
# {{ name }}
1313

@@ -48,13 +48,13 @@
4848
workflows use the "tube map" design for that. See https://nf-co.re/docs/contributing/design_guidelines#examples for examples. -->
4949
<!-- TODO nf-core: Fill in short bullet-pointed list of the default steps in the pipeline -->
5050

51-
{% if fastqc %}1. Read QC ([`FastQC`](https://www.bioinformatics.babraham.ac.uk/projects/fastqc/)){% endif %}
52-
{% if multiqc %}2. Present QC for raw reads ([`MultiQC`](http://multiqc.info/)){% endif %}
51+
{%- if fastqc %}1. Read QC ([`FastQC`](https://www.bioinformatics.babraham.ac.uk/projects/fastqc/)){% endif %}
52+
{%- if multiqc %}2. Present QC for raw reads ([`MultiQC`](http://multiqc.info/)){% endif %}
5353

5454
## Usage
5555

5656
> [!NOTE]
57-
> If you are new to Nextflow and nf-core, please refer to [this page](https://nf-co.re/docs/usage/installation) on how to set-up Nextflow. {% if test_config %}Make sure to [test your setup](https://nf-co.re/docs/usage/introduction#how-to-run-a-pipeline) with `-profile test` before running the workflow on actual data.{% endif %}
57+
> If you are new to Nextflow and nf-core, please refer to [this page](https://nf-co.re/docs/usage/installation) on how to set-up Nextflow. {%- if test_config %}Make sure to [test your setup](https://nf-co.re/docs/usage/introduction#how-to-run-a-pipeline) with `-profile test` before running the workflow on actual data.{% endif %}
5858
5959
<!-- TODO nf-core: Describe the minimum required steps to execute the pipeline, e.g. how to prepare samplesheets.
6060
Explain what rows and columns represent. For instance (please edit as appropriate):
@@ -120,10 +120,11 @@ For further information or help, don't hesitate to get in touch on the [Slack `#
120120
<!-- TODO nf-core: Add citation for pipeline after first release. Uncomment lines below and update Zenodo doi and badge at the top of this file. -->
121121
<!-- If you use {{ name }} for your analysis, please cite it using the following doi: [10.5281/zenodo.XXXXXX](https://doi.org/10.5281/zenodo.XXXXXX) -->
122122

123-
{% if citations %}<!-- TODO nf-core: Add bibliography of tools and data used in your pipeline -->
123+
{%- if citations %}<!-- TODO nf-core: Add bibliography of tools and data used in your pipeline -->
124124

125125
An extensive list of references for the tools used by the pipeline can be found in the [`CITATIONS.md`](CITATIONS.md) file.
126-
{% endif %}
126+
{%- endif %}
127+
127128
{% if is_nfcore -%}
128129
You can cite the `nf-core` publication as follows:
129130

nf_core/pipeline-template/docs/output.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Introduction
44

5-
This document describes the output produced by the pipeline. {% if multiqc %}Most of the plots are taken from the MultiQC report, which summarises results at the end of the pipeline.{% endif %}
5+
This document describes the output produced by the pipeline.{% if multiqc %} Most of the plots are taken from the MultiQC report, which summarises results at the end of the pipeline.{% endif %}
66

77
The directories listed below will be created in the results directory after the pipeline has finished. All paths are relative to the top-level results directory.
88

@@ -14,9 +14,8 @@ The pipeline is built using [Nextflow](https://www.nextflow.io/) and processes d
1414

1515
{% if fastqc -%}
1616

17-
- [FastQC](#fastqc) - Raw read QC
18-
{%- endif %}
19-
{%- if multiqc %}
17+
- [FastQC](#fastqc) - Raw read QC{% endif %}
18+
{%- if multiqc -%}
2019
- [MultiQC](#multiqc) - Aggregate report describing results and QC from the whole pipeline
2120
{%- endif %}
2221
- [Pipeline information](#pipeline-information) - Report metrics generated during the workflow execution
@@ -35,7 +34,7 @@ The pipeline is built using [Nextflow](https://www.nextflow.io/) and processes d
3534
</details>
3635

3736
[FastQC](http://www.bioinformatics.babraham.ac.uk/projects/fastqc/) gives general quality metrics about your sequenced reads. It provides information about the quality score distribution across your reads, per base sequence content (%A/T/G/C), adapter contamination and overrepresented sequences. For further reading and documentation see the [FastQC help pages](http://www.bioinformatics.babraham.ac.uk/projects/fastqc/Help/).
38-
{%- endif %}
37+
{%- endif -%}
3938

4039
{% if multiqc -%}
4140

@@ -54,7 +53,7 @@ The pipeline is built using [Nextflow](https://www.nextflow.io/) and processes d
5453
[MultiQC](http://multiqc.info) is a visualization tool that generates a single HTML report summarising all samples in your project. Most of the pipeline QC results are visualised in the report and further statistics are available in the report data directory.
5554

5655
Results generated by MultiQC collate pipeline QC from supported tools e.g. FastQC. The pipeline has special steps which also allow the software versions to be reported in the MultiQC output for future traceability. For more information about how to use MultiQC reports, see <http://multiqc.info>.
57-
{%- endif %}
56+
{%- endif -%}
5857

5958
### Pipeline information
6059

0 commit comments

Comments
 (0)