Skip to content

Commit fc548c3

Browse files
authored
Merge pull request #78 from sanger-tol/dev
1.3.0 - UNSC Pillar-of-Autumn - Release
2 parents 1cc6a31 + e9f4e9f commit fc548c3

File tree

134 files changed

+3580
-3538
lines changed

Some content is hidden

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

134 files changed

+3580
-3538
lines changed

.devcontainer/devcontainer.json

Lines changed: 0 additions & 27 deletions
This file was deleted.

.editorconfig

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,21 @@ end_of_line = unset
1818
insert_final_newline = unset
1919
trim_trailing_whitespace = unset
2020
indent_style = unset
21-
indent_size = unset
21+
22+
[/subworkflows/nf-core/**]
23+
charset = unset
24+
end_of_line = unset
25+
insert_final_newline = unset
26+
trim_trailing_whitespace = unset
27+
indent_style = unset
2228

2329
[/assets/email*]
2430
indent_size = unset
31+
32+
# ignore python and markdown
33+
[*.{py,md}]
34+
indent_style = unset
35+
36+
# ignore ro-crate metadata files
37+
[**/ro-crate-metadata.json]
38+
insert_final_newline = unset

.github/CONTRIBUTING.md

Lines changed: 20 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# sanger-tol/curationpretext: Contributing Guidelines
1+
# `sanger-tol/curationpretext`: Contributing Guidelines
22

33
Hi there!
44
Many thanks for taking an interest in improving sanger-tol/curationpretext.
@@ -9,22 +9,26 @@ Please use the pre-filled template to save time.
99
However, don't be put off by this template - other more general issues and suggestions are welcome!
1010
Contributions to the code are even more welcome ;)
1111

12-
> If you need help using or modifying sanger-tol/curationpretext then the best place to ask is on the nf-core Slack [#curationpretext](https://nfcore.slack.com/channels/curationpretext) channel ([join our Slack here](https://nf-co.re/join/slack)).
13-
1412
## Contribution workflow
1513

1614
If you'd like to write some code for sanger-tol/curationpretext, the standard workflow is as follows:
1715

1816
1. Check that there isn't already an issue about your idea in the [sanger-tol/curationpretext issues](https://github.com/sanger-tol/curationpretext/issues) to avoid duplicating work. If there isn't one already, please create one so that others know you're working on this
19-
2. [Fork](https://help.github.com/en/github/getting-started-with-github/fork-a-repo) the [sanger-tol/curationpretextxt repository](https://github.com/sanger-tol/curationpretext) to your GitHub account
17+
2. [Fork](https://help.github.com/en/github/getting-started-with-github/fork-a-repo) the [sanger-tol/curationpretext repository](https://github.com/sanger-tol/curationpretext) to your GitHub account
2018
3. Make the necessary changes / additions within your forked repository following [Pipeline conventions](#pipeline-contribution-conventions)
21-
4. Use `nf-core schema build` and add any new parameters to the pipeline JSON schema (requires [nf-core tools](https://github.com/nf-core/tools) >= 1.10).
19+
4. Use `nf-core pipelines schema build` and add any new parameters to the pipeline JSON schema (requires [nf-core tools](https://github.com/nf-core/tools) >= 1.10).
2220
5. Submit a Pull Request against the `dev` branch and wait for the code to be reviewed and merged
2321

2422
If you're not used to this workflow with git, you can start with some [docs from GitHub](https://help.github.com/en/github/collaborating-with-issues-and-pull-requests) or even their [excellent `git` resources](https://try.github.io/).
2523

2624
## Tests
2725

26+
You have the option to test your changes locally by running the pipeline. For receiving warnings about process selectors and other `debug` information, it is recommended to use the debug profile. Execute all the tests with the following command:
27+
28+
```bash
29+
nf-test test --profile debug,test,docker --verbose
30+
```
31+
2832
When you create a pull request with changes, [GitHub Actions](https://github.com/features/actions) will run automatic tests.
2933
Typically, pull-requests are only fully reviewed when these tests are passing, though of course we can help out before then.
3034

@@ -33,7 +37,7 @@ There are typically two types of tests that run:
3337
### Lint tests
3438

3539
`nf-core` has a [set of guidelines](https://nf-co.re/developers/guidelines) which all pipelines must adhere to.
36-
To enforce these and ensure that all pipelines stay in sync, we have developed a helper tool which runs checks on the pipeline code. This is in the [nf-core/tools repository](https://github.com/nf-core/tools) and once installed can be run locally with the `nf-core lint <pipeline-directory>` command.
40+
To enforce these and ensure that all pipelines stay in sync, we have developed a helper tool which runs checks on the pipeline code. This is in the [nf-core/tools repository](https://github.com/nf-core/tools) and once installed can be run locally with the `nf-core pipelines lint <pipeline-directory>` command.
3741

3842
If any failures or warnings are encountered, please follow the listed URL for more documentation.
3943

@@ -48,44 +52,38 @@ These tests are run both with the latest available version of `Nextflow` and als
4852

4953
:warning: Only in the unlikely and regretful event of a release happening with a bug.
5054

51-
- On your own fork, make a new branch `patch` based on `upstream/master`.
55+
- On your own fork, make a new branch `patch` based on `upstream/main` or `upstream/master`.
5256
- Fix the bug, and bump version (X.Y.Z+1).
53-
- A PR should be made on `master` from patch to directly this particular bug.
54-
55-
## Getting help
56-
57-
For further information/help, please consult the [sanger-tol/curationpretext documentation](https://nf-co.re/curationpretext/usage) and don't hesitate to get in touch on the nf-core Slack [#curationpretext](https://nfcore.slack.com/channels/curationpretext) channel ([join our Slack here](https://nf-co.re/join/slack)).
57+
- Open a pull-request from `patch` to `main`/`master` with the changes.
5858

5959
## Pipeline contribution conventions
6060

61-
To make the sanger-tol/curationpretext code and processing logic more understandable for new contributors and to ensure quality, we semi-standardise the way the code and other contributions are written.
61+
To make the `sanger-tol/curationpretext` code and processing logic more understandable for new contributors and to ensure quality, we semi-standardise the way the code and other contributions are written.
6262

6363
### Adding a new step
6464

6565
If you wish to contribute a new step, please use the following coding standards:
6666

67-
1. Define the corresponding input channel into your new process from the expected previous process channel
67+
1. Define the corresponding input channel into your new process from the expected previous process channel.
6868
2. Write the process block (see below).
6969
3. Define the output channel if needed (see below).
7070
4. Add any new parameters to `nextflow.config` with a default (see below).
71-
5. Add any new parameters to `nextflow_schema.json` with help text (via the `nf-core schema build` tool).
71+
5. Add any new parameters to `nextflow_schema.json` with help text (via the `nf-core pipelines schema build` tool).
7272
6. Add sanity checks and validation for all relevant parameters.
7373
7. Perform local tests to validate that the new code works as expected.
7474
8. If applicable, add a new test command in `.github/workflow/ci.yml`.
75-
9. Update MultiQC config `assets/multiqc_config.yml` 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.
76-
10. Add a description of the output files and if relevant any appropriate images from the MultiQC report to `docs/output.md`.
7775

7876
### Default values
7977

80-
Parameters should be initialised / defined with default values in `nextflow.config` under the `params` scope.
78+
Parameters should be initialised / defined with default values within the `params` scope in `nextflow.config`.
8179

82-
Once there, use `nf-core schema build` to add to `nextflow_schema.json`.
80+
Once there, use `nf-core pipelines schema build` to add to `nextflow_schema.json`.
8381

8482
### Default processes resource requirements
8583

86-
Sensible defaults for process resource requirements (CPUs / memory / time) for a process should be defined in `conf/base.config`. These should generally be specified generic with `withLabel:` selectors so they can be shared across multiple processes/steps of the pipeline. A nf-core standard set of labels that should be followed where possible can be seen in the [nf-core pipeline template](https://github.com/nf-core/tools/blob/master/nf_core/pipeline-template/conf/base.config), which has the default process as a single core-process, and then different levels of multi-core configurations for increasingly large memory requirements defined with standardised labels.
84+
Sensible defaults for process resource requirements (CPUs / memory / time) for a process should be defined in `conf/base.config`. These should generally be specified generic with `withLabel:` selectors so they can be shared across multiple processes/steps of the pipeline. A nf-core standard set of labels that should be followed where possible can be seen in the [nf-core pipeline template](https://github.com/nf-core/tools/blob/main/nf_core/pipeline-template/conf/base.config), which has the default process as a single core-process, and then different levels of multi-core configurations for increasingly large memory requirements defined with standardised labels.
8785

88-
The process resources can be passed on to the tool dynamically within the process with the `${task.cpu}` and `${task.memory}` variables in the `script:` block.
86+
The process resources can be passed on to the tool dynamically within the process with the `${task.cpus}` and `${task.memory}` variables in the `script:` block.
8987

9088
### Naming schemes
9189

@@ -96,24 +94,8 @@ Please use the following naming schemes, to make it easy to understand what is g
9694

9795
### Nextflow version bumping
9896

99-
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]`
97+
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 pipelines bump-version --nextflow . [min-nf-version]`
10098

10199
### Images and figures
102100

103101
For overview images and other documents we follow the nf-core [style guidelines and examples](https://nf-co.re/developers/design_guidelines).
104-
105-
## GitHub Codespaces
106-
107-
This repo includes a devcontainer configuration which will create a GitHub Codespaces for Nextflow development! This is an online developer environment that runs in your browser, complete with VSCode and a terminal.
108-
109-
To get started:
110-
111-
- Open the repo in [Codespaces](https://github.com/sanger-tol/curationpretext/codespaces)
112-
- Tools installed
113-
- nf-core
114-
- Nextflow
115-
116-
Devcontainer specs:
117-
118-
- [DevContainer config](.devcontainer/devcontainer.json)
119-
- [Dockerfile](.devcontainer/Dockerfile)

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,6 @@ name: Bug report
22
description: Report something that is broken or incorrect
33
labels: bug
44
body:
5-
- type: markdown
6-
attributes:
7-
value: |
8-
Before you post this issue, please check the documentation:
9-
10-
- [nf-core website: troubleshooting](https://nf-co.re/usage/troubleshooting)
11-
- [sanger-tol/curationpretext pipeline documentation](https://nf-co.re/curationpretext/usage)
12-
135
- type: textarea
146
id: description
157
attributes:
@@ -42,7 +34,7 @@ body:
4234
attributes:
4335
label: System information
4436
description: |
45-
* Nextflow version _(eg. 22.10.1)_
37+
* Nextflow version _(eg. 23.04.0)_
4638
* Hardware _(eg. HPC, Desktop, Cloud)_
4739
* Executor _(eg. slurm, local, awsbatch)_
4840
* Container engine: _(e.g. Docker, Singularity, Conda, Podman, Shifter, Charliecloud, or Apptainer)_

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 0 additions & 7 deletions
This file was deleted.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,18 @@ These are the most common things requested on pull requests (PRs).
88
99
Remember that PRs should be made against the dev branch, unless you're preparing a pipeline release.
1010
11-
Learn more about contributing: [CONTRIBUTING.md](https://github.com/sanger-tol/curationpretext/tree/master/.github/CONTRIBUTING.md)
11+
Learn more about contributing: [CONTRIBUTING.md](https://github.com/sanger-tol/curationpretext/tree/main/.github/CONTRIBUTING.md)
1212
-->
1313

1414
## PR checklist
1515

1616
- [ ] This comment contains a description of changes (with reason).
1717
- [ ] If you've fixed a bug or added code that should be tested, add tests!
18-
- [ ] If you've added a new tool - have you followed the pipeline conventions in the [contribution docs](https://github.com/sanger-tol/curationpretext/tree/master/.github/CONTRIBUTING.md)
18+
- [ ] If you've added a new tool - have you followed the pipeline conventions in the [contribution docs](https://github.com/sanger-tol/curationpretext/tree/main/.github/CONTRIBUTING.md)
1919
- [ ] If necessary, also make a PR on the sanger-tol/curationpretext _branch_ on the [nf-core/test-datasets](https://github.com/nf-core/test-datasets) repository.
2020
- [ ] Make sure your code lints (`nf-core lint`).
2121
- [ ] Ensure the test suite passes (`nextflow run . -profile test,docker --outdir <OUTDIR>`).
22+
- [ ] Check for unexpected warnings in debug mode (`nextflow run . -profile debug,test,docker --outdir <OUTDIR>`).
2223
- [ ] Usage Documentation in `docs/usage.md` is updated.
2324
- [ ] Output Documentation in `docs/output.md` is updated.
2425
- [ ] `CHANGELOG.md` is updated.

.github/workflows/branch.yml

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,30 @@
11
name: nf-core branch protection
2-
# This workflow is triggered on PRs to master branch on the repository
3-
# It fails when someone tries to make a PR against the nf-core `master` branch instead of `dev`
2+
# This workflow is triggered on PRs to `main`/`master` branch on the repository
3+
# It fails when someone tries to make a PR against the nf-core `main`/`master` branch instead of `dev`
44
on:
55
pull_request_target:
6-
branches: [master]
6+
branches:
7+
- main
8+
- master
79

810
jobs:
911
test:
1012
runs-on: ubuntu-latest
1113
steps:
12-
# PRs to the nf-core repo master branch are only ok if coming from the nf-core repo `dev` or any `patch` branches
14+
# PRs to the nf-core repo main/master branch are only ok if coming from the nf-core repo `dev` or any `patch` branches
1315
- name: Check PRs
14-
if: github.repository == 'sannger-tol/curationpretext'
16+
if: github.repository == 'sanger-tol/curationpretext'
1517
run: |
16-
{ [[ ${{github.event.pull_request.head.repo.full_name }} == sanger-tol/curationpretextt ]] && [[ $GITHUB_HEAD_REF == "dev" ]]; } || [[ $GITHUB_HEAD_REF == "patch" ]]
18+
{ [[ ${{github.event.pull_request.head.repo.full_name }} == sanger-tol/curationpretext ]] && [[ $GITHUB_HEAD_REF == "dev" ]]; } || [[ $GITHUB_HEAD_REF == "patch" ]]
1719
1820
# If the above check failed, post a comment on the PR explaining the failure
1921
# NOTE - this doesn't currently work if the PR is coming from a fork, due to limitations in GitHub actions secrets
2022
- name: Post PR comment
2123
if: failure()
22-
uses: mshick/add-pr-comment@v1
24+
uses: mshick/add-pr-comment@b8f338c590a895d50bcbfa6c5859251edc8952fc # v2
2325
with:
2426
message: |
25-
## This PR is against the `master` branch :x:
27+
## This PR is against the `${{github.event.pull_request.base.ref}}` branch :x:
2628
2729
* Do not close this PR
2830
* Click _Edit_ and change the `base` to `dev`
@@ -32,9 +34,9 @@ jobs:
3234
3335
Hi @${{ github.event.pull_request.user.login }},
3436
35-
It looks like this pull-request is has been made against the [${{github.event.pull_request.head.repo.full_name }}](https://github.com/${{github.event.pull_request.head.repo.full_name }}) `master` branch.
36-
The `master` branch on nf-core repositories should always contain code from the latest release.
37-
Because of this, PRs to `master` are only allowed if they come from the [${{github.event.pull_request.head.repo.full_name }}](https://github.com/${{github.event.pull_request.head.repo.full_name }}) `dev` branch.
37+
It looks like this pull-request is has been made against the [${{github.event.pull_request.head.repo.full_name }}](https://github.com/${{github.event.pull_request.head.repo.full_name }}) ${{github.event.pull_request.base.ref}} branch.
38+
The ${{github.event.pull_request.base.ref}} branch on nf-core repositories should always contain code from the latest release.
39+
Because of this, PRs to ${{github.event.pull_request.base.ref}} are only allowed if they come from the [${{github.event.pull_request.head.repo.full_name }}](https://github.com/${{github.event.pull_request.head.repo.full_name }}) `dev` branch.
3840
3941
You do not need to close this PR, you can change the target branch to `dev` by clicking the _"Edit"_ button at the top of this page.
4042
Note that even after this, the test will continue to show as failing until you push a new commit.

.github/workflows/ci.yml

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

1112
env:
1213
NXF_ANSI_LOG: false
@@ -19,22 +20,24 @@ concurrency:
1920

2021
jobs:
2122
test:
22-
name: Run pipeline with test data
23+
name: "Run pipeline with test data (${{ matrix.NXF_VER }} | ${{ matrix.test_name }} | ${{ matrix.profile }})"
2324
# Only run on push if this is the nf-core dev branch (merged PRs)
2425
if: "${{ github.event_name != 'push' || (github.event_name == 'push' && github.repository == 'sanger-tol/curationpretext') }}"
2526
runs-on: ubuntu-latest
2627
strategy:
2728
fail-fast: false
2829
matrix:
2930
NXF_VER:
30-
- "24.04.0"
31+
- "24.04.2"
3132
- "latest-everything"
3233

3334
steps:
3435
- name: Check out pipeline code
35-
uses: actions/checkout@v4
36+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
37+
with:
38+
fetch-depth: 0
3639

37-
- name: Install Nextflow
40+
- name: Set up Nextflow
3841
uses: nf-core/setup-nextflow@v2
3942
with:
4043
version: "${{ matrix.NXF_VER }}"
@@ -54,8 +57,3 @@ jobs:
5457
--profile="docker" \
5558
--debug \
5659
--verbose
57-
58-
# - name: Run ALL_FILES pipeline with test data
59-
# # Remember that you can parallelise this by using strategy.matrix
60-
# run: |
61-
# nextflow run ${GITHUB_WORKSPACE} -profile test,docker --outdir ./results

.github/workflows/clean-up.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
issues: write
1111
pull-requests: write
1212
steps:
13-
- uses: actions/stale@v7
13+
- uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9
1414
with:
1515
stale-issue-message: "This issue has been tagged as awaiting-changes or awaiting-feedback by an nf-core contributor. Remove stale label or add a comment otherwise this issue will be closed in 20 days."
1616
stale-pr-message: "This PR has been tagged as awaiting-changes or awaiting-feedback by an nf-core contributor. Remove stale label or add a comment if it is still useful."

0 commit comments

Comments
 (0)