Skip to content

Commit de24fb1

Browse files
authored
Merge pull request #197 from nf-core/dev
Minor release - Nova Icaria
2 parents 970b312 + c6b8b35 commit de24fb1

210 files changed

Lines changed: 6662 additions & 2531 deletions

File tree

Some content is hidden

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

.editorconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,7 @@ indent_size = unset
3131
# ignore python and markdown
3232
[*.{py,md}]
3333
indent_style = unset
34+
35+
# ignore ro-crate metadata files
36+
[**/ro-crate-metadata.json]
37+
insert_final_newline = unset

.github/CONTRIBUTING.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# nf-core/multiplesequencealign: Contributing Guidelines
1+
# `nf-core/multiplesequencealign`: Contributing Guidelines
22

33
Hi there!
44
Many thanks for taking an interest in improving nf-core/multiplesequencealign.
@@ -19,7 +19,7 @@ If you'd like to write some code for nf-core/multiplesequencealign, the standard
1919
1. Check that there isn't already an issue about your idea in the [nf-core/multiplesequencealign issues](https://github.com/nf-core/multiplesequencealign/issues) to avoid duplicating work. If there isn't one already, please create one so that others know you're working on this
2020
2. [Fork](https://help.github.com/en/github/getting-started-with-github/fork-a-repo) the [nf-core/multiplesequencealign repository](https://github.com/nf-core/multiplesequencealign) to your GitHub account
2121
3. Make the necessary changes / additions within your forked repository following [Pipeline conventions](#pipeline-contribution-conventions)
22-
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).
22+
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).
2323
5. Submit a Pull Request against the `dev` branch and wait for the code to be reviewed and merged
2424

2525
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/).
@@ -44,7 +44,7 @@ There are typically two types of tests that run:
4444
### Lint tests
4545

4646
`nf-core` has a [set of guidelines](https://nf-co.re/developers/guidelines) which all pipelines must adhere to.
47-
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.
47+
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.
4848

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

@@ -59,27 +59,27 @@ These tests are run both with the latest available version of `Nextflow` and als
5959

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

62-
- On your own fork, make a new branch `patch` based on `upstream/master`.
62+
- On your own fork, make a new branch `patch` based on `upstream/main` or `upstream/master`.
6363
- Fix the bug, and bump version (X.Y.Z+1).
64-
- A PR should be made on `master` from patch to directly this particular bug.
64+
- Open a pull-request from `patch` to `main`/`master` with the changes.
6565

6666
## Getting help
6767

6868
For further information/help, please consult the [nf-core/multiplesequencealign documentation](https://nf-co.re/multiplesequencealign/usage) and don't hesitate to get in touch on the nf-core Slack [#multiplesequencealign](https://nfcore.slack.com/channels/multiplesequencealign) channel ([join our Slack here](https://nf-co.re/join/slack)).
6969

7070
## Pipeline contribution conventions
7171

72-
To make the nf-core/multiplesequencealign 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.
72+
To make the `nf-core/multiplesequencealign` 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.
7373

7474
### Adding a new step
7575

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

78-
1. Define the corresponding input channel into your new process from the expected previous process channel
78+
1. Define the corresponding input channel into your new process from the expected previous process channel.
7979
2. Write the process block (see below).
8080
3. Define the output channel if needed (see below).
8181
4. Add any new parameters to `nextflow.config` with a default (see below).
82-
5. Add any new parameters to `nextflow_schema.json` with help text (via the `nf-core schema build` tool).
82+
5. Add any new parameters to `nextflow_schema.json` with help text (via the `nf-core pipelines schema build` tool).
8383
6. Add sanity checks and validation for all relevant parameters.
8484
7. Perform local tests to validate that the new code works as expected.
8585
8. If applicable, add a new test command in `.github/workflow/ci.yml`.
@@ -88,13 +88,13 @@ If you wish to contribute a new step, please use the following coding standards:
8888

8989
### Default values
9090

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

93-
Once there, use `nf-core schema build` to add to `nextflow_schema.json`.
93+
Once there, use `nf-core pipelines schema build` to add to `nextflow_schema.json`.
9494

9595
### Default processes resource requirements
9696

97-
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.
97+
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.
9898

9999
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.
100100

@@ -107,7 +107,7 @@ Please use the following naming schemes, to make it easy to understand what is g
107107

108108
### Nextflow version bumping
109109

110-
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]`
110+
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]`
111111

112112
### Images and figures
113113

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ body:
99
1010
- [nf-core website: troubleshooting](https://nf-co.re/usage/troubleshooting)
1111
- [nf-core/multiplesequencealign pipeline documentation](https://nf-co.re/multiplesequencealign/usage)
12-
1312
- type: textarea
1413
id: description
1514
attributes:

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Learn more about contributing: [CONTRIBUTING.md](https://github.com/nf-core/mult
1717
- [ ] If you've fixed a bug or added code that should be tested, add tests!
1818
- [ ] If you've added a new tool - have you followed the pipeline conventions in the [contribution docs](https://github.com/nf-core/multiplesequencealign/tree/master/.github/CONTRIBUTING.md)
1919
- [ ] If necessary, also make a PR on the nf-core/multiplesequencealign _branch_ on the [nf-core/test-datasets](https://github.com/nf-core/test-datasets) repository.
20-
- [ ] Make sure your code lints (`nf-core lint`).
20+
- [ ] Make sure your code lints (`nf-core pipelines lint`).
2121
- [ ] Ensure the test suite passes (`nextflow run . -profile test,docker --outdir <OUTDIR>`).
2222
- [ ] Check for unexpected warnings in debug mode (`nextflow run . -profile debug,test,docker --outdir <OUTDIR>`).
2323
- [ ] Usage Documentation in `docs/usage.md` is updated.

.github/workflows/awsfulltest.yml

Lines changed: 34 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,48 @@
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 main/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+
- main
10+
- master
911
workflow_dispatch:
12+
pull_request_review:
13+
types: [submitted]
14+
1015
jobs:
1116
run-platform:
1217
name: Run AWS full tests
13-
if: github.repository == 'nf-core/multiplesequencealign'
18+
# run only if the PR is approved by at least 2 reviewers and against the master branch or manually triggered
19+
if: github.repository == 'nf-core/multiplesequencealign' && github.event.review.state == 'approved' && github.event.pull_request.base.ref == 'master' || github.event_name == 'workflow_dispatch'
1420
runs-on: ubuntu-latest
1521
steps:
22+
- name: Get PR reviews
23+
uses: octokit/request-action@v2.x
24+
if: github.event_name != 'workflow_dispatch'
25+
id: check_approvals
26+
continue-on-error: true
27+
with:
28+
route: GET /repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/reviews?per_page=100
29+
env:
30+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31+
32+
- name: Check for approvals
33+
if: ${{ failure() && github.event_name != 'workflow_dispatch' }}
34+
run: |
35+
echo "No review approvals found. At least 2 approvals are required to run this action automatically."
36+
exit 1
37+
38+
- name: Check for enough approvals (>=2)
39+
id: test_variables
40+
if: github.event_name != 'workflow_dispatch'
41+
run: |
42+
JSON_RESPONSE='${{ steps.check_approvals.outputs.data }}'
43+
CURRENT_APPROVALS_COUNT=$(echo $JSON_RESPONSE | jq -c '[.[] | select(.state | contains("APPROVED")) ] | length')
44+
test $CURRENT_APPROVALS_COUNT -ge 2 || exit 1 # At least 2 approvals are required
45+
1646
- name: Launch workflow via Seqera Platform
1747
uses: seqeralabs/action-tower-launch@v2
1848
with:

.github/workflows/branch.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
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
1416
if: github.repository == 'nf-core/multiplesequencealign'
1517
run: |
@@ -22,7 +24,7 @@ jobs:
2224
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: 34 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,75 +1,79 @@
1-
name: nf-core CI
2-
# This workflow runs the pipeline with the minimal test dataset to check that it completes without any syntax errors
1+
name: nf-core CI dev
2+
# This workflow runs the pipeline with the minimal test dataset to check that it completes without any syntax errors upon dev PR
33
on:
4-
push:
4+
pull_request:
55
branches:
66
- dev
7-
pull_request:
8-
release:
9-
types: [published]
7+
workflow_dispatch:
108

119
env:
1210
NXF_ANSI_LOG: false
11+
NXF_SINGULARITY_CACHEDIR: ${{ github.workspace }}/.singularity
12+
NXF_SINGULARITY_LIBRARYDIR: ${{ github.workspace }}/.singularity
1313

1414
concurrency:
1515
group: "${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}"
1616
cancel-in-progress: true
1717

1818
jobs:
1919
test:
20-
name: Run pipeline with test data
21-
# Only run on push if this is the nf-core dev branch (merged PRs)
22-
if: "${{ github.event_name != 'push' || (github.event_name == 'push' && github.repository == 'nf-core/multiplesequencealign') }}"
20+
name: "Run pipeline with test data (${{ matrix.NXF_VER }} | ${{ matrix.test_name }} | ${{ matrix.profile }})"
2321
runs-on: ubuntu-latest
2422
strategy:
2523
matrix:
2624
NXF_VER:
27-
- "24.04.1"
25+
- "24.10.4"
2826
- "latest-everything"
29-
ANALYSIS:
27+
profile:
28+
- "docker"
29+
test_name:
3030
- "test"
3131
- "test_pdb"
32-
- "test_parameters"
32+
- "test_no_sheet"
3333
steps:
3434
- name: Check out pipeline code
3535
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4
3636

37-
- name: Install Nextflow
37+
- name: Set up Nextflow
3838
uses: nf-core/setup-nextflow@v2
3939
with:
4040
version: "${{ matrix.NXF_VER }}"
4141

42-
- name: Disk space cleanup
42+
- name: Clean up Disk space
4343
uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # v1.3.1
4444

45-
- name: Run pipeline with test data
45+
- name: "Run pipeline with test data ${{ matrix.NXF_VER }} | ${{ matrix.test_name }} | ${{ matrix.profile }}"
4646
run: |
47-
nextflow run ${GITHUB_WORKSPACE} -profile ${{ matrix.ANALYSIS }},docker --outdir ./results
47+
nextflow run ${GITHUB_WORKSPACE} -profile ${{ matrix.test_name }},${{ matrix.profile }} --outdir ./results
4848
4949
parameters_stub:
50-
name: Test workflow parameters
51-
if: "${{ github.event_name != 'push' || (github.event_name == 'push' && github.repository == 'nf-core/multiplesequencealign') }}"
50+
name: Stub run
5251
runs-on: ubuntu-latest
5352
strategy:
5453
matrix:
5554
NXF_VER:
56-
- "24.04.1"
55+
- "24.10.4"
5756
- "latest-everything"
58-
PARAMS:
59-
- "--skip_stats"
60-
- "--skip_eval"
61-
- "--skip_compression"
62-
- "--skip_shiny"
63-
57+
profile:
58+
- "docker"
59+
params:
60+
- "--skip_stats --skip_eval --skip_visualisation --skip_validation --skip_preprocessing --skip_shiny --skip_multiqc"
61+
test_name:
62+
- "test_no_sheet"
6463
steps:
6564
- name: Check out pipeline code
66-
uses: actions/checkout@v4
65+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
66+
with:
67+
fetch-depth: 0
6768

68-
- name: Install Nextflow
69-
uses: nf-core/setup-nextflow@v1
69+
- name: Set up Nextflow
70+
uses: nf-core/setup-nextflow@v2
7071
with:
7172
version: "${{ matrix.NXF_VER }}"
7273

73-
- name: Test workflow parameters
74+
- name: Clean up Disk space
75+
uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # v1.3.1
76+
77+
- name: "Run pipeline with test data ${{ matrix.NXF_VER }} | ${{ matrix.test_name }} | ${{ matrix.profile }}"
7478
run: |
75-
nextflow run -stub-run ${GITHUB_WORKSPACE} -profile test,docker ${{ matrix.PARAMS }} --outdir ./results
79+
nextflow run ${GITHUB_WORKSPACE} -profile test,${{ matrix.profile }} ${{ matrix.params }} --outdir ./results

0 commit comments

Comments
 (0)