Skip to content

Release PR for 2.1.0 #456

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 220 commits into from
Mar 5, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
220 commits
Select commit Hold shift + click to select a range
82b2c3c
Post-release version bump
jasmezz Sep 5, 2024
504f17a
Merge pull request #416 from nf-core/post-release-bump
jasmezz Sep 6, 2024
62d7538
Template update for nf-core/tools version 3.0.0
nf-core-bot Oct 8, 2024
01c5e49
Template update for nf-core/tools version 3.0.1
nf-core-bot Oct 9, 2024
10b698e
Template update for nf-core/tools version 3.0.2
nf-core-bot Oct 11, 2024
2f48508
Update antismash, argnorm, rgi citations
jasmezz Oct 11, 2024
e321cba
Merge branch 'dev' into nf-core-template-merge-3.0.2
jfy133 Oct 23, 2024
b5e346e
Skip igenomes and fastqc becuase no reads nor reference genome
jfy133 Oct 23, 2024
57762a7
Remove max_ params for all other profiles
jfy133 Oct 23, 2024
d744c99
Fix linting errors
jfy133 Oct 23, 2024
d6d38f9
Fix schema linting errors
jfy133 Oct 23, 2024
0f893df
Update all modules
jfy133 Oct 23, 2024
c762ac9
Remove check_max and max_ parameters
jfy133 Oct 23, 2024
d739f41
Update missing module
jfy133 Oct 23, 2024
ba2fc82
Fix schema
jfy133 Oct 23, 2024
7dfa6cd
Merge pull request #422 from nf-core/update-citations
jasmezz Oct 30, 2024
f4e13b3
Update .nf-core.yml
jfy133 Nov 19, 2024
06852e9
update the amp db download script
Darcy220606 Dec 3, 2024
3aac84a
update to use ampcombi 2.0.1
Darcy220606 Dec 3, 2024
d8f1f57
fix parametrs
Darcy220606 Dec 3, 2024
e670a3c
Update nf_schema
Darcy220606 Dec 3, 2024
892b43d
fix schema values
Darcy220606 Dec 3, 2024
2d7758c
update the docs
Darcy220606 Dec 4, 2024
9dc0d0f
[automated] Fix code linting
nf-core-bot Dec 4, 2024
15a4429
add review suggestions
Darcy220606 Dec 4, 2024
5c8144a
[automated] Fix code linting
nf-core-bot Dec 4, 2024
a69830a
update nextflow.config
Darcy220606 Dec 4, 2024
86592d9
install interproscan in funcscan
Darcy220606 Dec 5, 2024
491f25d
add module in modules.json
Darcy220606 Dec 5, 2024
bbd456e
start adding interproscan_amp functionality
Darcy220606 Dec 9, 2024
5b5cb3e
add citation
Darcy220606 Dec 9, 2024
d8c5bf2
update documentations
Darcy220606 Dec 9, 2024
fd1ef46
update dynamic optional parameter path
Darcy220606 Dec 9, 2024
b54f1ea
remove dynamik ext.arg
Darcy220606 Dec 11, 2024
637b485
Template update for nf-core/tools version 3.1.0
nf-core-bot Dec 12, 2024
35e7178
update ampcombi2 2.0.1
Darcy220606 Dec 12, 2024
be89885
fix the ampcombi inputs
Darcy220606 Dec 16, 2024
8e1da95
fix error strategy
Darcy220606 Dec 16, 2024
c8ce54a
Merge pull request #427 from nf-core/add_ampcombi_2.0.1
Darcy220606 Dec 16, 2024
75f1bc9
Add AMPcombi to 2.0.1
jfy133 Dec 18, 2024
137f4dd
Add darkmode diagram
jfy133 Dec 18, 2024
a98783a
Merge branch 'nf-core-template-merge-3.0.2' of github.com:nf-core/fun…
jfy133 Dec 18, 2024
74b73e9
Add contributor information
jasmezz Dec 18, 2024
9e891d4
Update rgi/main
jasmezz Dec 18, 2024
daf6a96
Update snapshots due to new macrel and ampcombi versions
jfy133 Dec 18, 2024
cf68706
Merge branch 'dev' into nf-core-template-merge-3.0.2
jfy133 Dec 18, 2024
09a1018
Fix precommit and missing prokka snapshot
jfy133 Dec 18, 2024
44c132c
Fix ARG tool variability
jfy133 Dec 18, 2024
b4e74bb
Update docs/output.md
jfy133 Dec 18, 2024
75ff75a
Merge pull request #421 from nf-core/nf-core-template-merge-3.0.2
jfy133 Dec 18, 2024
7ab2cf6
Merge branch 'dev' into nf-core-template-merge-3.1.0
jfy133 Dec 18, 2024
867c9be
Fix tests
jfy133 Dec 19, 2024
46b73e8
Update subworkflows/local/utils_nfcore_funcscan_pipeline/main.nf
jfy133 Dec 19, 2024
ecf6a64
Update several modules
jasmezz Dec 19, 2024
9d69c11
Update changelog
jasmezz Dec 19, 2024
423d466
Update author details [skip ci]
jasmezz Dec 19, 2024
218ca0c
Update docs/usage.md
jfy133 Dec 19, 2024
c0967e9
Update nextflow.config
jfy133 Dec 19, 2024
f364d6f
Remove vscode file
jasmezz Dec 19, 2024
5b125e0
Merge pull request #429 from nf-core/nf-core-template-merge-3.1.0
jasmezz Dec 19, 2024
2531f7d
Update CHANGELOG.md
jasmezz Dec 19, 2024
9541325
Update snapshot (due to CARD database update)
jasmezz Dec 19, 2024
2fe0e47
Merge pull request #430 from nf-core/update-rgi
jasmezz Dec 19, 2024
330afff
Add mmseqs patches, fix snapshots of ampir and deepbgc
jasmezz Dec 20, 2024
2a600e3
Merge branch 'dev' into update-modules
jasmezz Dec 20, 2024
3ffe611
Template update for nf-core/tools version 3.1.0
nf-core-bot Dec 20, 2024
5d64dd9
Template update for nf-core/tools version 3.1.1
nf-core-bot Dec 20, 2024
deb9ac8
Fix ampir nf.test + increase antismashdownloaddatabases time
jasmezz Dec 20, 2024
96bded2
Add `compressed` flag as ext.args to mmseqs modules
jasmezz Dec 23, 2024
fee3adb
Merge remote-tracking branch 'origin/dev' into add_interproscan_to_amp
Darcy220606 Jan 6, 2025
8b44ed5
remove comments and fix Interproscan subworkflow
Darcy220606 Jan 8, 2025
ed81b0b
[automated] Fix code linting
nf-core-bot Jan 8, 2025
0340ba9
fix linting issues
Darcy220606 Jan 8, 2025
7e1f164
fix ampcombi when only one file passes parsetables
Darcy220606 Jan 8, 2025
5be17ef
fix ampcombi2 wo interproscan
Darcy220606 Jan 9, 2025
b782b54
clean up comments
Darcy220606 Jan 9, 2025
e58b322
fix linting
Darcy220606 Jan 9, 2025
7abbb14
fix merge taxonomy scripts and outputs
Darcy220606 Jan 10, 2025
e7630e8
fix ARG TABIX output file name
Darcy220606 Jan 10, 2025
681906c
fix output declaration for args
Darcy220606 Jan 10, 2025
a039619
update CHANGELOG
Darcy220606 Jan 10, 2025
35423f4
fix linting
Darcy220606 Jan 10, 2025
11a07ca
update nf tests
Darcy220606 Jan 10, 2025
fc27d32
Merge branch 'dev' into nf-core-template-merge-3.1.1
jfy133 Jan 10, 2025
3027027
[automated] Fix code linting
nf-core-bot Jan 10, 2025
9cf137e
Fix linting
jfy133 Jan 10, 2025
e9e9ee2
Annoy linting
jfy133 Jan 10, 2025
5881d5b
Fix linting
jfy133 Jan 10, 2025
218ac67
Try satisfying nf-core linting on PR.md
jfy133 Jan 10, 2025
88186e2
Fix PR request template
jfy133 Jan 10, 2025
374cf41
Apply suggestions from code review
jfy133 Jan 10, 2025
d9908f4
Apply suggestions from code review
jfy133 Jan 15, 2025
f7fe341
Update mmseqs to v16, update multiqc to v 1.26 [skip ci]
jasmezz Jan 15, 2025
cbb2bc3
Update changelog [skip ci]
jasmezz Jan 15, 2025
0637ebf
Patch mmseqs/createtsv
jasmezz Jan 15, 2025
640992d
Merge pull request #433 from nf-core/nf-core-template-merge-3.1.1
jfy133 Jan 15, 2025
0e1e426
Update bin/merge_taxonomy.py
Darcy220606 Jan 15, 2025
8101fab
Update bin/merge_taxonomy.py
Darcy220606 Jan 15, 2025
7272153
Update CHANGELOG.md
Darcy220606 Jan 15, 2025
10d9504
Update bin/merge_taxonomy.py
Darcy220606 Jan 15, 2025
eec7738
Update merge_taxonomy.py
Darcy220606 Jan 15, 2025
b89ec1b
Merge pull request #435 from nf-core/fix_taxonomy_files
Darcy220606 Jan 15, 2025
25048e3
Add logic to skip cardannotation
jasmezz Jan 15, 2025
b7a766e
Remove mmseqs patches, update prokka module to include nf-test
jasmezz Jan 15, 2025
895298d
Fix logic of cardannotation execution
jasmezz Jan 15, 2025
b69a471
Update changelog [skip ci]
jasmezz Jan 15, 2025
74e0fbf
Update mmseqs (update snapshot of createdb), undo prokka change
jasmezz Jan 16, 2025
8f17a0f
Update something (to trigger CI tests)
jasmezz Jan 16, 2025
4fdaf8c
Patch mmseqs modules to version 15 instead of 16
jasmezz Jan 16, 2025
21f7969
Merge pull request #437 from nf-core/fix-rgi-db-name-issue
jasmezz Jan 16, 2025
1f919a3
Update all mmseqs modules to v16, change `--search-type` default to h…
jasmezz Jan 17, 2025
310a0be
Add reviewer requests
Darcy220606 Jan 17, 2025
8c8aeaf
fix prettier
Darcy220606 Jan 17, 2025
3cbf8b1
[automated] Fix code linting
nf-core-bot Jan 19, 2025
296c032
Template update for nf-core/tools version 3.1.2
nf-core-bot Jan 20, 2025
e4d5b32
Update all MMseqs modules to v17, update changelog
jasmezz Jan 21, 2025
b969640
Merge branch 'dev' into update-modules
jasmezz Jan 21, 2025
639ee49
Change mmseqs `searchtype` default value back to 2
jasmezz Jan 21, 2025
35fd94c
Merge branch 'update-modules' of github.com:nf-core/funcscan into upd…
jasmezz Jan 21, 2025
271c1cf
Update seqkit
jasmezz Jan 21, 2025
a381623
Update pyrodigal module
jasmezz Jan 21, 2025
f769c47
Update changelog
jasmezz Jan 21, 2025
ca69eac
Fix nf-test
jasmezz Jan 22, 2025
6012d16
Re-add `trace_report_suffix` param in schema
jasmezz Jan 22, 2025
bda8f43
Merge pull request #431 from nf-core/update-modules
jasmezz Jan 22, 2025
009c8c2
Merge branch 'dev' into nf-core-template-merge-3.1.2
jfy133 Jan 22, 2025
da5931c
Apply suggestions from code review
jfy133 Jan 22, 2025
da6700e
Apply suggestions from code review
jfy133 Jan 22, 2025
49b3502
Update CHANGELOG.md
jfy133 Jan 22, 2025
4c3dd3a
Update usage.md
jfy133 Jan 22, 2025
4c6ba6e
Apply suggestions from code review
jfy133 Jan 22, 2025
523bcbc
Fix linting
jasmezz Jan 22, 2025
0337711
Merge pull request #438 from nf-core/nf-core-template-merge-3.1.2
jfy133 Jan 22, 2025
4442bd9
Update bakta, add new param
jasmezz Jan 25, 2025
adf0d3e
Merge branch 'dev' into update-bakta
jasmezz Jan 25, 2025
24ccc00
Template update for nf-core/tools version 3.2.0
nf-core-bot Jan 27, 2025
ce46fd9
Merge branch 'dev' into nf-core-template-merge-3.2.0
jfy133 Jan 28, 2025
1bbdc4c
Add missing checkIfExists optoins
jfy133 Jan 28, 2025
b3abb69
Update changelog
jasmezz Jan 28, 2025
291ff5a
Merge pull request #441 from nf-core/nf-core-template-merge-3.2.0
jasmezz Jan 28, 2025
b4336e7
Update bakta_taxonomy nf-test files
jasmezz Jan 29, 2025
234e8f5
Merge branch 'dev' into update-bakta
jasmezz Jan 29, 2025
e8bbc3f
Fix linting
jasmezz Jan 29, 2025
9ee2978
Update antismash modules + changelog
jasmezz Jan 30, 2025
3fc50cd
Merge pull request #446 from nf-core/update-antismash-modules
jasmezz Jan 30, 2025
cd85309
Merge pull request #440 from nf-core/update-bakta
jasmezz Jan 31, 2025
0f86e9e
Add `--annotation_pyrodigal_stopcodon` parameter
jasmezz Jan 31, 2025
e76b0b4
Fix modules.config
jasmezz Jan 31, 2025
804da18
fix code review -docs
Darcy220606 Feb 2, 2025
186d351
Merge branch 'dev' into add_interproscan_to_amp
Darcy220606 Feb 2, 2025
f88fe9c
fix prettier
Darcy220606 Feb 2, 2025
5d1f4b7
Fix code review
Darcy220606 Feb 2, 2025
3f3787f
fix createtsv output merging
Darcy220606 Feb 2, 2025
a1373c1
update changelog
Darcy220606 Feb 2, 2025
894ddeb
Fix logic of "stopcodon" param
jasmezz Feb 3, 2025
6a7a79d
Apply suggestions from code review
jfy133 Feb 4, 2025
ad0c3ba
Update bin/merge_taxonomy.py
Darcy220606 Feb 4, 2025
ac181ca
Update bin/merge_taxonomy.py
Darcy220606 Feb 4, 2025
d2ead32
Merge pull request #448 from nf-core/fix_createtsv_output
Darcy220606 Feb 4, 2025
dbe492f
Fix failing snapshots
jasmezz Feb 4, 2025
d34dbf0
Merge branch 'dev' into add-pyrodigal-param
jasmezz Feb 4, 2025
c1b6a7e
Merge pull request #443 from nf-core/check-all-dbs-exist
jfy133 Feb 5, 2025
19aff23
Apply suggestions from code review; fix linting warning (rocrate)
jasmezz Feb 5, 2025
a7e681d
Add Review issues in
Darcy220606 Feb 6, 2025
5b2a679
Update description of new param
jasmezz Feb 6, 2025
9be3c05
Merge pull request #447 from nf-core/add-pyrodigal-param
jasmezz Feb 6, 2025
f14990f
add review suggestions
Darcy220606 Feb 10, 2025
9ecac2e
Merge branch 'dev' into add_interproscan_to_amp
Darcy220606 Feb 10, 2025
bdf0a98
fix linting
Darcy220606 Feb 10, 2025
b10dd7d
Merge branch 'add_interproscan_to_amp' of https://github.com/nf-core/…
Darcy220606 Feb 10, 2025
a54d7aa
Merge branch 'add_interproscan_to_amp' of https://github.com/nf-core/…
Darcy220606 Feb 10, 2025
5dd1a8f
Apply suggestions from code review
jasmezz Feb 10, 2025
d4c6ce6
Update modules (esp. AMPcombi parsetables main.nf), add icon in schem…
jasmezz Feb 10, 2025
f68d316
Remove params which shouldn't be changed by users anyway
jasmezz Feb 11, 2025
8c339e4
Merge pull request #428 from nf-core/add_interproscan_to_amp
Darcy220606 Feb 11, 2025
8b4907e
Fix docs (icons, small updates, typos, formatting, links)
jasmezz Feb 11, 2025
efa164a
Update changelog
jasmezz Feb 11, 2025
26927ca
Fix linting
jasmezz Feb 11, 2025
b82d498
Apply suggestions from code review
jasmezz Feb 12, 2025
129a1c1
Add 2.1 metromap
jfy133 Feb 12, 2025
62f55b0
Fix paths and replace arrows with easier colour converstion
jfy133 Feb 13, 2025
787e91f
Missing colour light to dark for legend
jfy133 Feb 13, 2025
066df79
Update legend: annotation dark grey
jasmezz Feb 13, 2025
0658314
Fix: undo change of test.config
jasmezz Feb 13, 2025
93febdd
Merge pull request #453 from nf-core/metromap-bump-2.1
jasmezz Feb 13, 2025
48e5e5f
Update changelog
jasmezz Feb 13, 2025
b65b920
Merge pull request #452 from nf-core/docs-update
jasmezz Feb 13, 2025
b2f66ee
Update ampcombi2 cpu in base.config
jasmezz Feb 13, 2025
c41ab03
Update CHANGELOG.md
jasmezz Feb 13, 2025
a770fe8
Update CHANGELOG.md
jasmezz Feb 13, 2025
f9d13aa
Update CHANGELOG.md
jasmezz Feb 13, 2025
6541a2e
Merge pull request #454 from nf-core/set-ampcombi-resource
jasmezz Feb 13, 2025
e47f613
Bump release version
jasmezz Feb 13, 2025
61fae23
Bump version + date in changelog
jasmezz Feb 13, 2025
31904e3
[automated] Fix code linting
nf-core-bot Feb 13, 2025
8924eb8
Merge pull request #455 from nf-core/release-bump-2.1.0
jasmezz Feb 13, 2025
9925ff6
Update interproscan resource config
jasmezz Feb 18, 2025
acd5eda
Update conf/base.config
jfy133 Feb 18, 2025
8112054
Merge pull request #458 from nf-core/update-interproscan-resources
jasmezz Feb 18, 2025
bfa4377
Apply suggestions from code review, update release date
jasmezz Feb 28, 2025
f4891dd
Fix linting
jasmezz Feb 28, 2025
8246e65
Apply suggestions from code review
jfy133 Feb 28, 2025
1089e5d
[automated] Fix code linting
nf-core-bot Feb 28, 2025
173f0a0
Update metro workflow
jasmezz Mar 3, 2025
dc24377
Mini fixes of metro workflow
jasmezz Mar 3, 2025
b11079e
More mini fixes of metro diagram
jasmezz Mar 3, 2025
4a15049
Merge pull request #459 from nf-core/release-review-suggestions
jasmezz Mar 3, 2025
9393afa
Fix nf-test name
jasmezz Mar 3, 2025
c1c491e
Merge pull request #461 from nf-core/fix-nf-test-name
jasmezz Mar 3, 2025
197719f
Fix test (config) name
jasmezz Mar 3, 2025
b7e8997
Update test name in nextflow.config
jasmezz Mar 3, 2025
4bff122
Merge pull request #462 from nf-core/fix-nf-test-name
jasmezz Mar 3, 2025
a152ac7
Bump date of release, bump minimum version due to Nextflow error
jfy133 Mar 3, 2025
04d9183
Fix nf-tests
jasmezz Mar 4, 2025
4261f97
Merge pull request #463 from nf-core/fix-nf-tests
jasmezz Mar 4, 2025
0f77b03
Fix bakta and prokka nf-tests, bump release date, ignore igenomes files
jasmezz Mar 5, 2025
453f5d2
Fix commas...
jasmezz Mar 5, 2025
6a59b33
Add ampcombi log file to tests
jasmezz Mar 5, 2025
fb0bc1a
Merge pull request #464 from nf-core/fix-nftest-bakta-prokka
jasmezz Mar 5, 2025
ec744df
Add release names for 2.1 and 2.0
jfy133 Mar 5, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,7 @@ indent_size = unset
# ignore python and markdown
[*.{py,md}]
indent_style = unset

# ignore ro-crate metadata files
[**/ro-crate-metadata.json]
insert_final_newline = unset
24 changes: 12 additions & 12 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# nf-core/funcscan: Contributing Guidelines
# `nf-core/funcscan`: Contributing Guidelines

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

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/).
Expand All @@ -40,7 +40,7 @@ There are typically two types of tests that run:
### Lint tests

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

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

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

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

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

## Getting help

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

## Pipeline contribution conventions

To make the nf-core/funcscan 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.
To make the `nf-core/funcscan` 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.

### Adding a new step

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

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

### Default values

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

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

### Default processes resource requirements

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

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.

Expand All @@ -103,7 +103,7 @@ Please use the following naming schemes, to make it easy to understand what is g

### Nextflow version bumping

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]`
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]`

### Images and figures

Expand Down
1 change: 0 additions & 1 deletion .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ body:

- [nf-core website: troubleshooting](https://nf-co.re/usage/troubleshooting)
- [nf-core/funcscan pipeline documentation](https://nf-co.re/funcscan/usage)

- type: textarea
id: description
attributes:
Expand Down
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Learn more about contributing: [CONTRIBUTING.md](https://github.com/nf-core/func
- [ ] If you've fixed a bug or added code that should be tested, add tests!
- [ ] If you've added a new tool - have you followed the pipeline conventions in the [contribution docs](https://github.com/nf-core/funcscan/tree/master/.github/CONTRIBUTING.md)
- [ ] If necessary, also make a PR on the nf-core/funcscan _branch_ on the [nf-core/test-datasets](https://github.com/nf-core/test-datasets) repository.
- [ ] Make sure your code lints (`nf-core lint`).
- [ ] Make sure your code lints (`nf-core pipelines lint`).
- [ ] Ensure the test suite passes (`nextflow run . -profile test,docker --outdir <OUTDIR>`).
- [ ] Check for unexpected warnings in debug mode (`nextflow run . -profile debug,test,docker --outdir <OUTDIR>`).
- [ ] Usage Documentation in `docs/usage.md` is updated.
Expand Down
38 changes: 34 additions & 4 deletions .github/workflows/awsfulltest.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,48 @@
name: nf-core AWS full size tests
# This workflow is triggered on published releases.
# This workflow is triggered on PRs opened against the main/master branch.
# It can be additionally triggered manually with GitHub actions workflow dispatch button.
# It runs the -profile 'test_full' on AWS batch

on:
release:
types: [published]
pull_request:
branches:
- main
- master
workflow_dispatch:
pull_request_review:
types: [submitted]

jobs:
run-platform:
name: Run AWS full tests
if: github.repository == 'nf-core/funcscan'
# run only if the PR is approved by at least 2 reviewers and against the master branch or manually triggered
if: github.repository == 'nf-core/funcscan' && github.event.review.state == 'approved' && github.event.pull_request.base.ref == 'master' || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
steps:
- name: Get PR reviews
uses: octokit/[email protected]
if: github.event_name != 'workflow_dispatch'
id: check_approvals
continue-on-error: true
with:
route: GET /repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/reviews?per_page=100
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Check for approvals
if: ${{ failure() && github.event_name != 'workflow_dispatch' }}
run: |
echo "No review approvals found. At least 2 approvals are required to run this action automatically."
exit 1

- name: Check for enough approvals (>=2)
id: test_variables
if: github.event_name != 'workflow_dispatch'
run: |
JSON_RESPONSE='${{ steps.check_approvals.outputs.data }}'
CURRENT_APPROVALS_COUNT=$(echo $JSON_RESPONSE | jq -c '[.[] | select(.state | contains("APPROVED")) ] | length')
test $CURRENT_APPROVALS_COUNT -ge 2 || exit 1 # At least 2 approvals are required

- name: Launch workflow via Seqera Platform
uses: seqeralabs/action-tower-launch@v2
with:
Expand Down
18 changes: 10 additions & 8 deletions .github/workflows/branch.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
name: nf-core branch protection
# This workflow is triggered on PRs to master branch on the repository
# It fails when someone tries to make a PR against the nf-core `master` branch instead of `dev`
# This workflow is triggered on PRs to `main`/`master` branch on the repository
# It fails when someone tries to make a PR against the nf-core `main`/`master` branch instead of `dev`
on:
pull_request_target:
branches: [master]
branches:
- main
- master

jobs:
test:
runs-on: ubuntu-latest
steps:
# PRs to the nf-core repo master branch are only ok if coming from the nf-core repo `dev` or any `patch` branches
# PRs to the nf-core repo main/master branch are only ok if coming from the nf-core repo `dev` or any `patch` branches
- name: Check PRs
if: github.repository == 'nf-core/funcscan'
run: |
Expand All @@ -22,7 +24,7 @@ jobs:
uses: mshick/add-pr-comment@b8f338c590a895d50bcbfa6c5859251edc8952fc # v2
with:
message: |
## This PR is against the `master` branch :x:
## This PR is against the `${{github.event.pull_request.base.ref}}` branch :x:

* Do not close this PR
* Click _Edit_ and change the `base` to `dev`
Expand All @@ -32,9 +34,9 @@ jobs:

Hi @${{ github.event.pull_request.user.login }},

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.
The `master` branch on nf-core repositories should always contain code from the latest release.
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.
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.
The ${{github.event.pull_request.base.ref}} branch on nf-core repositories should always contain code from the latest release.
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.

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.
Note that even after this, the test will continue to show as failing until you push a new commit.
Expand Down
79 changes: 60 additions & 19 deletions .github/workflows/ci.yml
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I still don't particularly like this, so I would leave this for a future release

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will do it in the next release then 👍

Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,20 @@ name: nf-core CI
on:
push:
branches:
- "dev"
- dev
pull_request:
branches:
- "dev"
- "master"
release:
types:
- "published"
types: [published]
workflow_dispatch:

env:
NXF_ANSI_LOG: false
NFTEST_VER: "0.8.4"
NXF_SINGULARITY_CACHEDIR: ${{ github.workspace }}/.singularity
NXF_SINGULARITY_LIBRARYDIR: ${{ github.workspace }}/.singularity
NFTEST_VER: "0.9.2"

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
Expand All @@ -36,16 +38,23 @@ jobs:
fi

test:
name: nf-test
needs: define_nxf_versions
name: "Run pipeline with test data (${{ matrix.NXF_VER }} | ${{ matrix.test_name }} | ${{ matrix.profile }})"
# Only run on push if this is the nf-core dev branch (merged PRs)
if: "${{ github.event_name != 'push' || (github.event_name == 'push' && github.repository == 'nf-core/funcscan') }}"
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
NXF_VER: ${{ fromJson(needs.define_nxf_versions.outputs.matrix) }}
tags:
NXF_VER:
- "24.10.4"
- "latest-everything"
profile:
- "conda"
- "docker"
- "singularity"
test_name:
- "test"
- "test_nothing"
- "test_minimal"
- "test_bakta"
- "test_prokka"
- "test_bgc_pyrodigal"
Expand All @@ -56,12 +65,24 @@ jobs:
- "test_taxonomy_prokka"
- "test_preannotated"
- "test_preannotated_bgc"
profile:
- "docker"

isMaster:
- ${{ github.base_ref == 'master' }}
# Exclude conda and singularity on dev
exclude:
- isMaster: false
profile: "conda"
- isMaster: false
profile: "singularity"
steps:
- name: Check out pipeline code
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
fetch-depth: 0

- name: Set up Nextflow
uses: nf-core/setup-nextflow@v2
with:
version: "${{ matrix.NXF_VER }}"

- name: Check out test data
uses: actions/checkout@v3
Expand All @@ -71,22 +92,42 @@ jobs:
path: test-datasets/
fetch-depth: 1

- name: Install Nextflow
uses: nf-core/setup-nextflow@v1
- name: Set up Apptainer
if: matrix.profile == 'singularity'
uses: eWaterCycle/setup-apptainer@main

- name: Set up Singularity
if: matrix.profile == 'singularity'
run: |
mkdir -p $NXF_SINGULARITY_CACHEDIR
mkdir -p $NXF_SINGULARITY_LIBRARYDIR

- name: Set up Miniconda
if: matrix.profile == 'conda'
uses: conda-incubator/setup-miniconda@a4260408e20b96e80095f42ff7f1a15b27dd94ca # v3
with:
version: "${{ matrix.NXF_VER }}"
miniconda-version: "latest"
auto-update-conda: true
conda-solver: libmamba
channels: conda-forge,bioconda

- name: Set up Conda
if: matrix.profile == 'conda'
run: |
echo $(realpath $CONDA)/condabin >> $GITHUB_PATH
echo $(realpath python) >> $GITHUB_PATH

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

- name: Install nf-test
run: |
wget -qO- https://code.askimed.com/install/nf-test | bash -s $NFTEST_VER
sudo mv nf-test /usr/local/bin/

- name: Run nf-test
- name: "Run pipeline with test data ${{ matrix.NXF_VER }} | ${{ matrix.test_name }} | ${{ matrix.profile }}"
run: |
nf-test test --tag ${{ matrix.tags }} --profile ${{ matrix.tags }},${{ matrix.profile }} --junitxml=test.xml
nf-test test --tag ${{ matrix.test_name }} --profile ${{ matrix.test_name }},${{ matrix.profile }} --junitxml=test.xml

- name: Output log on failure
if: failure()
Expand Down
Loading
Loading