Skip to content

Commit eef058f

Browse files
committed
Template update for nf-core/tools version 2.2
1 parent d376a15 commit eef058f

Some content is hidden

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

50 files changed

+439
-678
lines changed

.gitattributes

+2
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
*.config linguist-language=nextflow
2+
modules/nf-core/** linguist-generated
3+
subworkflows/nf-core/** linguist-generated

.github/CONTRIBUTING.md

+7-31
Original file line numberDiff line numberDiff line change
@@ -68,16 +68,13 @@ If you wish to contribute a new step, please use the following coding standards:
6868
1. Define the corresponding input channel into your new process from the expected previous process channel
6969
2. Write the process block (see below).
7070
3. Define the output channel if needed (see below).
71-
4. Add any new flags/options to `nextflow.config` with a default (see below).
72-
5. Add any new flags/options to `nextflow_schema.json` with help text (with `nf-core schema build`).
73-
6. Add any new flags/options to the help message (for integer/text parameters, print to help the corresponding `nextflow.config` parameter).
74-
7. Add sanity checks for all relevant parameters.
75-
8. Add any new software to the `scrape_software_versions.py` script in `bin/` and the version command to the `scrape_software_versions` process in `main.nf`.
76-
9. Do local tests that the new code works properly and as expected.
77-
10. Add a new test command in `.github/workflow/ci.yml`.
78-
11. If applicable add a [MultiQC](https://https://multiqc.info/) module.
79-
12. Update MultiQC config `assets/multiqc_config.yaml` so relevant suffixes, name clean up, General Statistics Table column order, and module figures are in the right order.
80-
13. Optional: Add any descriptions of MultiQC report sections and output files to `docs/output.md`.
71+
4. Add any new parameters to `nextflow.config` with a default (see below).
72+
5. Add any new parameters to `nextflow_schema.json` with help text (via the `nf-core schema build` tool).
73+
6. Add sanity checks and validation for all relevant parameters.
74+
7. Perform local tests to validate that the new code works as expected.
75+
8. If applicable, add a new test command in `.github/workflow/ci.yml`.
76+
9. Update MultiQC config `assets/multiqc_config.yaml` so relevant suffixes, file name clean up and module plots are in the appropriate order. If applicable, add a [MultiQC](https://https://multiqc.info/) module.
77+
10. Add a description of the output files and if relevant any appropriate images from the MultiQC report to `docs/output.md`.
8178

8279
### Default values
8380

@@ -102,27 +99,6 @@ Please use the following naming schemes, to make it easy to understand what is g
10299

103100
If you are using a new feature from core Nextflow, you may bump the minimum required version of nextflow in the pipeline with: `nf-core bump-version --nextflow . [min-nf-version]`
104101

105-
### Software version reporting
106-
107-
If you add a new tool to the pipeline, please ensure you add the information of the tool to the `get_software_version` process.
108-
109-
Add to the script block of the process, something like the following:
110-
111-
```bash
112-
<YOUR_TOOL> --version &> v_<YOUR_TOOL>.txt 2>&1 || true
113-
```
114-
115-
or
116-
117-
```bash
118-
<YOUR_TOOL> --help | head -n 1 &> v_<YOUR_TOOL>.txt 2>&1 || true
119-
```
120-
121-
You then need to edit the script `bin/scrape_software_versions.py` to:
122-
123-
1. Add a Python regex for your tool's `--version` output (as in stored in the `v_<YOUR_TOOL>.txt` file), to ensure the version is reported as a `v` and the version number e.g. `v2.1.1`
124-
2. Add a HTML entry to the `OrderedDict` for formatting in MultiQC.
125-
126102
### Images and figures
127103

128104
For overview images and other documents we follow the nf-core [style guidelines and examples](https://nf-co.re/developers/design_guidelines).

.github/ISSUE_TEMPLATE/bug_report.md

-63
This file was deleted.

.github/ISSUE_TEMPLATE/bug_report.yml

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
2+
name: Bug report
3+
description: Report something that is broken or incorrect
4+
labels: bug
5+
body:
6+
7+
- type: markdown
8+
attributes:
9+
value: |
10+
Before you post this issue, please check the documentation:
11+
12+
- [nf-core website: troubleshooting](https://nf-co.re/usage/troubleshooting)
13+
- [nf-core/rnavar pipeline documentation](https://nf-co.re/rnavar/usage)
14+
15+
- type: textarea
16+
id: description
17+
attributes:
18+
label: Description of the bug
19+
description: A clear and concise description of what the bug is.
20+
validations:
21+
required: true
22+
23+
- type: textarea
24+
id: command_used
25+
attributes:
26+
label: Command used and terminal output
27+
description: Steps to reproduce the behaviour. Please paste the command you used to launch the pipeline and the output from your terminal.
28+
render: console
29+
placeholder: |
30+
$ nextflow run ...
31+
32+
Some output where something broke
33+
34+
- type: textarea
35+
id: files
36+
attributes:
37+
label: Relevant files
38+
description: |
39+
Please drag and drop the relevant files here. Create a `.zip` archive if the extension is not allowed.
40+
Your verbose log file `.nextflow.log` is often useful _(this is a hidden file in the directory where you launched the pipeline)_ as well as custom Nextflow configuration files.
41+
42+
- type: textarea
43+
id: system
44+
attributes:
45+
label: System information
46+
description: |
47+
* Nextflow version _(eg. 21.10.3)_
48+
* Hardware _(eg. HPC, Desktop, Cloud)_
49+
* Executor _(eg. slurm, local, awsbatch)_
50+
* Container engine: _(e.g. Docker, Singularity, Conda, Podman, Shifter or Charliecloud)_
51+
* OS _(eg. CentOS Linux, macOS, Linux Mint)_
52+
* Version of nf-core/rnavar _(eg. 1.1, 1.5, 1.8.2)_

.github/ISSUE_TEMPLATE/config.yml

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
blank_issues_enabled: false
21
contact_links:
32
- name: Join nf-core
43
url: https://nf-co.re/join

.github/ISSUE_TEMPLATE/feature_request.md

-32
This file was deleted.
+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: Feature request
2+
description: Suggest an idea for the nf-core/rnavar pipeline
3+
labels: enhancement
4+
body:
5+
- type: textarea
6+
id: description
7+
attributes:
8+
label: Description of feature
9+
description: Please describe your suggestion for a new feature. It might help to describe a problem or use case, plus any alternatives that you have considered.
10+
validations:
11+
required: true

.github/workflows/awsfulltest.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- name: Launch workflow via tower
17-
uses: nf-core/tower-action@master
17+
uses: nf-core/tower-action@v2
1818
# TODO nf-core: You can customise AWS full pipeline tests as required
1919
# Add full size test data (but still relatively small datasets for few samples)
2020
# on the `test_full.config` test runs with only one set of parameters
2121

2222
with:
2323
workspace_id: ${{ secrets.TOWER_WORKSPACE_ID }}
24-
bearer_token: ${{ secrets.TOWER_BEARER_TOKEN }}
24+
access_token: ${{ secrets.TOWER_ACCESS_TOKEN }}
2525
compute_env: ${{ secrets.TOWER_COMPUTE_ENV }}
2626
pipeline: ${{ github.repository }}
2727
revision: ${{ github.sha }}
@@ -30,5 +30,5 @@ jobs:
3030
{
3131
"outdir": "s3://${{ secrets.AWS_S3_BUCKET }}/rnavar/results-${{ github.sha }}"
3232
}
33-
profiles: '[ "test_full", "aws_tower" ]'
34-
33+
profiles: test_full,aws_tower
34+
pre_run_script: 'export NXF_VER=21.10.3'

.github/workflows/awstest.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,18 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Launch workflow via tower
14-
uses: nf-core/tower-action@master
14+
uses: nf-core/tower-action@v2
1515

1616
with:
1717
workspace_id: ${{ secrets.TOWER_WORKSPACE_ID }}
18-
bearer_token: ${{ secrets.TOWER_BEARER_TOKEN }}
18+
access_token: ${{ secrets.TOWER_ACCESS_TOKEN }}
1919
compute_env: ${{ secrets.TOWER_COMPUTE_ENV }}
2020
pipeline: ${{ github.repository }}
2121
revision: ${{ github.sha }}
2222
workdir: s3://${{ secrets.AWS_S3_BUCKET }}/work/rnavar/work-${{ github.sha }}
2323
parameters: |
2424
{
25-
"outdir": "s3://${{ secrets.AWS_S3_BUCKET }}/rnavar/results-${{ github.sha }}"
25+
"outdir": "s3://${{ secrets.AWS_S3_BUCKET }}/rnavar/results-test-${{ github.sha }}"
2626
}
27-
profiles: '[ "test", "aws_tower" ]'
28-
27+
profiles: test,aws_tower
28+
pre_run_script: 'export NXF_VER=21.10.3'

.github/workflows/ci.yml

+15-8
Original file line numberDiff line numberDiff line change
@@ -8,29 +8,36 @@ on:
88
release:
99
types: [published]
1010

11-
# Uncomment if we need an edge release of Nextflow again
12-
# env: NXF_EDGE: 1
11+
env:
12+
NXF_ANSI_LOG: false
13+
CAPSULE_LOG: none
1314

1415
jobs:
1516
test:
1617
name: Run workflow tests
1718
# Only run on push if this is the nf-core dev branch (merged PRs)
1819
if: ${{ github.event_name != 'push' || (github.event_name == 'push' && github.repository == 'nf-core/rnavar') }}
1920
runs-on: ubuntu-latest
20-
env:
21-
NXF_VER: ${{ matrix.nxf_ver }}
22-
NXF_ANSI_LOG: false
2321
strategy:
2422
matrix:
25-
# Nextflow versions: check pipeline minimum and current latest
26-
nxf_ver: ['21.04.0', '']
23+
# Nextflow versions
24+
include:
25+
# Test pipeline minimum Nextflow version
26+
- NXF_VER: '21.10.3'
27+
NXF_EDGE: ''
28+
# Test latest edge release of Nextflow
29+
- NXF_VER: ''
30+
NXF_EDGE: '1'
2731
steps:
2832
- name: Check out pipeline code
2933
uses: actions/checkout@v2
3034

3135
- name: Install Nextflow
3236
env:
33-
CAPSULE_LOG: none
37+
NXF_VER: ${{ matrix.NXF_VER }}
38+
# Uncomment only if the edge release is more recent than the latest stable release
39+
# See https://github.com/nextflow-io/nextflow/issues/2467
40+
# NXF_EDGE: ${{ matrix.NXF_EDGE }}
3441
run: |
3542
wget -qO- get.nextflow.io | bash
3643
sudo mv nextflow /usr/local/bin/

.github/workflows/linting_comment.yml

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ jobs:
1515
uses: dawidd6/action-download-artifact@v2
1616
with:
1717
workflow: linting.yml
18+
workflow_conclusion: completed
1819

1920
- name: Get PR number
2021
id: pr_number

CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
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-
## v3.1 - [date]
6+
## v1.0dev - [date]
77

88
Initial release of nf-core/rnavar, created with the [nf-core](https://nf-co.re/) template.
99

CITATIONS.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
* [FastQC](https://www.bioinformatics.babraham.ac.uk/projects/fastqc/)
1414

15-
* [MultiQC](https://www.ncbi.nlm.nih.gov/pubmed/27312411/)
15+
* [MultiQC](https://pubmed.ncbi.nlm.nih.gov/27312411/)
1616
> 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.
1717
1818
## Software packaging/containerisation tools

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) Praveen Raj
3+
Copyright (c) @praveenraj2018
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

0 commit comments

Comments
 (0)