Skip to content

Commit d75ade1

Browse files
authored
Merge pull request #158 from nf-core/dev
Dev -> Master for 1.1.0 release
2 parents 22a2ada + 6f66cb0 commit d75ade1

File tree

151 files changed

+6961
-2617
lines changed

Some content is hidden

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

151 files changed

+6961
-2617
lines changed

.devcontainer/devcontainer.json

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,15 @@
22
"name": "nfcore",
33
"image": "nfcore/gitpod:latest",
44
"remoteUser": "gitpod",
5+
"runArgs": ["--privileged"],
56

67
// Configure tool-specific properties.
78
"customizations": {
89
// Configure properties specific to VS Code.
910
"vscode": {
1011
// Set *default* container specific settings.json values on container create.
1112
"settings": {
12-
"python.defaultInterpreterPath": "/opt/conda/bin/python",
13-
"python.linting.enabled": true,
14-
"python.linting.pylintEnabled": true,
15-
"python.formatting.autopep8Path": "/opt/conda/bin/autopep8",
16-
"python.formatting.yapfPath": "/opt/conda/bin/yapf",
17-
"python.linting.flake8Path": "/opt/conda/bin/flake8",
18-
"python.linting.pycodestylePath": "/opt/conda/bin/pycodestyle",
19-
"python.linting.pydocstylePath": "/opt/conda/bin/pydocstyle",
20-
"python.linting.pylintPath": "/opt/conda/bin/pylint"
13+
"python.defaultInterpreterPath": "/opt/conda/bin/python"
2114
},
2215

2316
// Add the IDs of extensions you want installed when the container is created.

.editorconfig

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ trim_trailing_whitespace = true
88
indent_size = 4
99
indent_style = space
1010

11-
[*.{md,yml,yaml,html,css,scss,js,cff}]
11+
[*.{md,yml,yaml,html,css,scss,js}]
1212
indent_size = 2
1313

1414
# These files are edited and tested upstream in nf-core/modules
@@ -18,7 +18,16 @@ end_of_line = unset
1818
insert_final_newline = unset
1919
trim_trailing_whitespace = unset
2020
indent_style = unset
21-
indent_size = unset
21+
[/subworkflows/nf-core/**]
22+
charset = unset
23+
end_of_line = unset
24+
insert_final_newline = unset
25+
trim_trailing_whitespace = unset
26+
indent_style = unset
2227

2328
[/assets/email*]
2429
indent_size = unset
30+
31+
# ignore python and markdown
32+
[*.{py,md}]
33+
indent_style = unset

.github/CONTRIBUTING.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ 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+
> [!NOTE]
1213
> If you need help using or modifying nf-core/proteinfold then the best place to ask is on the nf-core Slack [#proteinfold](https://nfcore.slack.com/channels/proteinfold) channel ([join our Slack here](https://nf-co.re/join/slack)).
1314
1415
## Contribution workflow
@@ -25,6 +26,12 @@ If you're not used to this workflow with git, you can start with some [docs from
2526

2627
## Tests
2728

29+
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:
30+
31+
```bash
32+
nextflow run . --profile debug,test,docker --outdir <OUTDIR>
33+
```
34+
2835
When you create a pull request with changes, [GitHub Actions](https://github.com/features/actions) will run automatic tests.
2936
Typically, pull-requests are only fully reviewed when these tests are passing, though of course we can help out before then.
3037

@@ -85,7 +92,7 @@ Once there, use `nf-core schema build` to add to `nextflow_schema.json`.
8592

8693
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.
8794

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.
95+
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.
8996

9097
### Naming schemes
9198

@@ -116,4 +123,3 @@ To get started:
116123
Devcontainer specs:
117124

118125
- [DevContainer config](.devcontainer/devcontainer.json)
119-
- [Dockerfile](.devcontainer/Dockerfile)

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ body:
4242
attributes:
4343
label: System information
4444
description: |
45-
* Nextflow version _(eg. 22.10.1)_
45+
* Nextflow version _(eg. 23.04.0)_
4646
* Hardware _(eg. HPC, Desktop, Cloud)_
4747
* Executor _(eg. slurm, local, awsbatch)_
48-
* Container engine: _(e.g. Docker, Singularity, Conda, Podman, Shifter or Charliecloud)_
48+
* Container engine: _(e.g. Docker, Singularity, Conda, Podman, Shifter, Charliecloud, or Apptainer)_
4949
* OS _(eg. CentOS Linux, macOS, Linux Mint)_
5050
* Version of nf-core/proteinfold _(eg. 1.1, 1.5, 1.8.2)_

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,11 @@ Learn more about contributing: [CONTRIBUTING.md](https://github.com/nf-core/prot
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/nf-core/proteinfold/tree/master/.github/CONTRIBUTING.md)- [ ] If necessary, also make a PR on the nf-core/proteinfold _branch_ on the [nf-core/test-datasets](https://github.com/nf-core/test-datasets) repository.
18+
- [ ] If you've added a new tool - have you followed the pipeline conventions in the [contribution docs](https://github.com/nf-core/proteinfold/tree/master/.github/CONTRIBUTING.md)
19+
- [ ] If necessary, also make a PR on the nf-core/proteinfold _branch_ on the [nf-core/test-datasets](https://github.com/nf-core/test-datasets) repository.
1920
- [ ] Make sure your code lints (`nf-core lint`).
2021
- [ ] 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>`).
2123
- [ ] Usage Documentation in `docs/usage.md` is updated.
2224
- [ ] Output Documentation in `docs/output.md` is updated.
2325
- [ ] `CHANGELOG.md` is updated.

.github/workflows/awsfulltest.yml

Lines changed: 22 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,36 +8,44 @@ on:
88
types: [published]
99
workflow_dispatch:
1010
jobs:
11-
run-tower:
12-
name: Run AWS AlphaFold2 full monomer tests
11+
run-platform:
12+
name: Run AWS full tests
1313
if: github.repository == 'nf-core/proteinfold'
1414
runs-on: ubuntu-latest
1515
# Do a full-scale run on each of the mode
1616
strategy:
1717
matrix:
1818
mode:
1919
[
20-
"_alphafold2_standard",
21-
"_alphafold2_split",
22-
"_alphafold2_multimer",
23-
"_colabfold_local",
24-
"_colabfold_webserver",
25-
"_colabfold_multimer",
20+
"alphafold2_standard",
21+
"alphafold2_split",
22+
"alphafold2_multimer",
23+
"colabfold_local",
24+
"colabfold_webserver",
25+
"colabfold_multimer",
26+
"esmfold",
27+
"esmfold_multimer",
2628
]
2729
steps:
28-
- name: Launch workflow via tower
29-
uses: nf-core/tower-action@v3
30+
- name: Launch workflow via Seqera Platform
31+
uses: seqeralabs/action-tower-launch@v2
3032
with:
3133
workspace_id: ${{ secrets.TOWER_WORKSPACE_ID }}
3234
access_token: ${{ secrets.TOWER_ACCESS_TOKEN }}
3335
compute_env: ${{ secrets.TOWER_COMPUTE_ENV }}
36+
revision: ${{ github.sha }}
3437
workdir: s3://${{ secrets.AWS_S3_BUCKET }}/work/proteinfold/work-${{ github.sha }}
3538
parameters: |
3639
{
40+
"hook_url": "${{ secrets.MEGATESTS_ALERTS_SLACK_HOOK_URL }}",
3741
"outdir": "s3://${{ secrets.AWS_S3_BUCKET }}/proteinfold/results-${{ github.sha }}/mode_${{ matrix.mode }}"
3842
}
39-
profiles: test_full_${{ matrix.mode }},aws_tower
40-
- uses: actions/upload-artifact@v3
43+
profiles: test_full_${{ matrix.mode }}
44+
45+
- uses: actions/upload-artifact@v4
46+
if: success() || failure()
4147
with:
42-
name: Tower debug log file
43-
path: tower_action_*.log
48+
name: Seqera Platform debug log file
49+
path: |
50+
seqera_platform_action_*.log
51+
seqera_platform_action_*.json

.github/workflows/awstest.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,29 @@ name: nf-core AWS test
55
on:
66
workflow_dispatch:
77
jobs:
8-
run-tower:
8+
run-platform:
99
name: Run AWS tests
1010
if: github.repository == 'nf-core/proteinfold'
1111
runs-on: ubuntu-latest
1212
steps:
13-
# Launch workflow using Tower CLI tool action
14-
- name: Launch workflow via tower
15-
uses: nf-core/tower-action@v3
13+
# Launch workflow using Seqera Platform CLI tool action
14+
- name: Launch workflow via Seqera Platform
15+
uses: seqeralabs/action-tower-launch@v2
1616
with:
1717
workspace_id: ${{ secrets.TOWER_WORKSPACE_ID }}
1818
access_token: ${{ secrets.TOWER_ACCESS_TOKEN }}
1919
compute_env: ${{ secrets.TOWER_COMPUTE_ENV }}
20+
revision: ${{ github.sha }}
2021
workdir: s3://${{ secrets.AWS_S3_BUCKET }}/work/proteinfold/work-${{ github.sha }}
2122
parameters: |
2223
{
2324
"outdir": "s3://${{ secrets.AWS_S3_BUCKET }}/proteinfold/results-test-${{ github.sha }}"
2425
}
25-
profiles: test,aws_tower
26-
- uses: actions/upload-artifact@v3
26+
profiles: test
27+
28+
- uses: actions/upload-artifact@v4
2729
with:
28-
name: Tower debug log file
29-
path: tower_action_*.log
30+
name: Seqera Platform debug log file
31+
path: |
32+
seqera_platform_action_*.log
33+
seqera_platform_action_*.json

.github/workflows/branch.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ jobs:
1313
- name: Check PRs
1414
if: github.repository == 'nf-core/proteinfold'
1515
run: |
16-
{ [[ ${{github.event.pull_request.head.repo.full_name }} == nf-core/proteinfold ]] && [[ $GITHUB_HEAD_REF = "dev" ]]; } || [[ $GITHUB_HEAD_REF == "patch" ]]
16+
{ [[ ${{github.event.pull_request.head.repo.full_name }} == nf-core/proteinfold ]] && [[ $GITHUB_HEAD_REF == "dev" ]]; } || [[ $GITHUB_HEAD_REF == "patch" ]]
1717
1818
# If the above check failed, post a comment on the PR explaining the failure
1919
# NOTE - this doesn't currently work if the PR is coming from a fork, due to limitations in GitHub actions secrets
2020
- name: Post PR comment
2121
if: failure()
22-
uses: mshick/add-pr-comment@v1
22+
uses: mshick/add-pr-comment@b8f338c590a895d50bcbfa6c5859251edc8952fc # v2
2323
with:
2424
message: |
2525
## This PR is against the `master` branch :x:

.github/workflows/ci.yml

Lines changed: 16 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -24,65 +24,29 @@ jobs:
2424
strategy:
2525
matrix:
2626
NXF_VER:
27-
- "22.10.1"
27+
- "23.04.0"
2828
- "latest-everything"
29+
parameters:
30+
- "test"
31+
- "test_alphafold2_split"
32+
- "test_alphafold2_download"
33+
- "test_colabfold_local"
34+
- "test_colabfold_webserver"
35+
- "test_colabfold_download"
36+
- "test_esmfold"
37+
2938
steps:
3039
- name: Check out pipeline code
31-
uses: actions/checkout@v3
40+
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4
3241

3342
- name: Install Nextflow
34-
uses: nf-core/setup-nextflow@v1
43+
uses: nf-core/setup-nextflow@v2
3544
with:
3645
version: "${{ matrix.NXF_VER }}"
3746

38-
- name: Run pipeline with test data
39-
run: |
40-
nextflow run ${GITHUB_WORKSPACE} -profile test,docker --outdir ./results
41-
42-
test_alphafold2_split:
43-
name: Test alphafold2 split workflow
44-
if: ${{ github.event_name != 'push' || (github.event_name == 'push' && github.repository == 'nf-core/proteinfold') }}
45-
runs-on: ubuntu-latest
46-
steps:
47-
- name: Check out pipeline code
48-
uses: actions/checkout@v2
49-
50-
- name: Install Nextflow
51-
run: |
52-
wget -qO- get.nextflow.io | bash
53-
sudo mv nextflow /usr/local/bin/
54-
- name: Run pipeline with stub-run in alphafold2 split mode
55-
run: |
56-
nextflow run ${GITHUB_WORKSPACE} -profile test_alphafold2_split,docker --outdir ./results
57-
58-
test_colabfold_local:
59-
name: Test Colabfold local workflow
60-
if: ${{ github.event_name != 'push' || (github.event_name == 'push' && github.repository == 'nf-core/proteinfold') }}
61-
runs-on: ubuntu-latest
62-
steps:
63-
- name: Check out pipeline code
64-
uses: actions/checkout@v2
65-
66-
- name: Install Nextflow
67-
run: |
68-
wget -qO- get.nextflow.io | bash
69-
sudo mv nextflow /usr/local/bin/
70-
- name: Run pipeline with stub-run in colabfold_local mode
71-
run: |
72-
nextflow run ${GITHUB_WORKSPACE} -profile test_colabfold_local,docker --outdir ./results
73-
74-
test_colabfold_webserver:
75-
name: Test Colabfold webserver workflow
76-
if: ${{ github.event_name != 'push' || (github.event_name == 'push' && github.repository == 'nf-core/proteinfold') }}
77-
runs-on: ubuntu-latest
78-
steps:
79-
- name: Check out pipeline code
80-
uses: actions/checkout@v2
47+
- name: Disk space cleanup
48+
uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # v1.3.1
8149

82-
- name: Install Nextflow
83-
run: |
84-
wget -qO- get.nextflow.io | bash
85-
sudo mv nextflow /usr/local/bin/
86-
- name: Run pipeline with stub-run in colabfold_webserver mode
50+
- name: Run pipeline with test data ${{ matrix.parameters }} profile
8751
run: |
88-
nextflow run ${GITHUB_WORKSPACE} -profile test_colabfold_webserver,docker --outdir ./results
52+
nextflow run ${GITHUB_WORKSPACE} -profile ${{ matrix.parameters }},docker --outdir ./results_${{ matrix.parameters }}

.github/workflows/clean-up.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: "Close user-tagged issues and PRs"
2+
on:
3+
schedule:
4+
- cron: "0 0 * * 0" # Once a week
5+
6+
jobs:
7+
clean-up:
8+
runs-on: ubuntu-latest
9+
permissions:
10+
issues: write
11+
pull-requests: write
12+
steps:
13+
- uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9
14+
with:
15+
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."
16+
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."
17+
close-issue-message: "This issue was closed because it has been tagged as awaiting-changes or awaiting-feedback by an nf-core contributor and then staled for 20 days with no activity."
18+
days-before-stale: 30
19+
days-before-close: 20
20+
days-before-pr-close: -1
21+
any-of-labels: "awaiting-changes,awaiting-feedback"
22+
exempt-issue-labels: "WIP"
23+
exempt-pr-labels: "WIP"
24+
repo-token: "${{ secrets.GITHUB_TOKEN }}"

0 commit comments

Comments
 (0)