Skip to content
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

Deploy dev branch to crazy-corgi #560

Open
wants to merge 108 commits into
base: crazy-corgi
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
108 commits
Select commit Hold shift + click to select a range
79d1535
Template update for nf-core/tools version 3.0.0
nf-core-bot Oct 8, 2024
56e023f
Template update for nf-core/tools version 3.0.1
nf-core-bot Oct 9, 2024
69969cf
Template update for nf-core/tools version 3.0.2
nf-core-bot Oct 11, 2024
226abd9
resolve the conflicts
LilyAnderssonLee Oct 17, 2024
ff4d28f
remove max_cpu from test.config
LilyAnderssonLee Oct 17, 2024
f3ef6aa
update schema wit new release
LilyAnderssonLee Oct 18, 2024
5e90741
add exists:true to the sechma to check the file path
LilyAnderssonLee Oct 18, 2024
a9af810
change db_path format back to the original value path in schema_database
LilyAnderssonLee Oct 18, 2024
9e20ff1
update the type of run_accession into string and integer
LilyAnderssonLee Oct 22, 2024
88c9f46
Update CITATIONS.md
LilyAnderssonLee Oct 22, 2024
2900ae2
Update conf/modules.config
LilyAnderssonLee Oct 22, 2024
b0c1154
address comments from James
LilyAnderssonLee Oct 22, 2024
340b0af
Update nextflow.config
LilyAnderssonLee Oct 22, 2024
05b743f
Add Lili as co-author
LilyAnderssonLee Oct 22, 2024
fb38fb7
Fix CI to run each test separately
jfy133 Oct 24, 2024
353188d
Update main.nf
LilyAnderssonLee Oct 24, 2024
f7c6176
Update .nf-core.yml
LilyAnderssonLee Oct 24, 2024
dbabb5d
[automated] Fix code linting
nf-core-bot Oct 24, 2024
fe84cc3
Fix mOTUs if/else statemetn
jfy133 Oct 24, 2024
00067f5
update configs and database schema
LilyAnderssonLee Oct 24, 2024
e34437b
Merge pull request #545 from nf-core/nf-core-template-merge-3.0.2
LilyAnderssonLee Oct 24, 2024
8262e0a
Add darkmode version of metromap
jfy133 Oct 24, 2024
93aa499
Merge pull request #548 from nf-core/darkmode-diagram
jfy133 Oct 24, 2024
6c6cd8c
Fix darkmode diagram
jfy133 Oct 31, 2024
2e6f37d
refactor: prepare the additional prefixes input
Midnighter Oct 31, 2024
a1a8289
chore: update krakenuniq/preloadedkrakenuniq
Midnighter Nov 5, 2024
c0311a1
fix: create always unique prefix
Midnighter Nov 6, 2024
30fc22a
fix: make prefix unique across PE and SE
Midnighter Nov 21, 2024
163d600
Update CHANGELOG.md
jfy133 Nov 21, 2024
b2cac44
Merge pull request #549 from nf-core/darkmode-diagram
jfy133 Nov 21, 2024
3022cd2
Update CHANGELOG.md
jfy133 Nov 21, 2024
e58a59c
Merge pull request #550 from nf-core/update-krakenuniq
jfy133 Nov 21, 2024
51b8acb
update nonpareil/curve
LilyAnderssonLee Nov 22, 2024
4da7342
update CHANGELOG.md
LilyAnderssonLee Nov 22, 2024
7d261e8
Merge pull request #552 from nf-core/nonpareil_curve_update
LilyAnderssonLee Nov 22, 2024
716dd78
bump the version
LilyAnderssonLee Nov 25, 2024
42479b0
update changelog
LilyAnderssonLee Nov 25, 2024
1a27aaa
Merge pull request #553 from nf-core/pre_patch_bump_v
LilyAnderssonLee Nov 25, 2024
05e4f2e
Move the modules.config line below the base.config line
LilyAnderssonLee Nov 28, 2024
2a64aed
update configs
LilyAnderssonLee Nov 28, 2024
acd85cc
Merge pull request #556 from nf-core/patch_release_fix
LilyAnderssonLee Nov 28, 2024
0af416a
Merge pull request #554 from nf-core/dev
LilyAnderssonLee Nov 28, 2024
803f928
Bump the version after patch release v1.2.1
LilyAnderssonLee Nov 28, 2024
79055cd
Merge pull request #557 from LilyAnderssonLee/post_release_bump
jfy133 Nov 28, 2024
bbd0815
Template update for nf-core/tools version 3.1.0
nf-core-bot Dec 12, 2024
b6abc21
resolve the template updates conflicts
LilyAnderssonLee Dec 12, 2024
15ebdec
Update main.nf
LilyAnderssonLee Dec 12, 2024
be44921
update taxprofiler.nf
LilyAnderssonLee Dec 12, 2024
34cf51b
remove unused functions in subworkflows/local/utils_nfcore_taxprofile…
LilyAnderssonLee Dec 17, 2024
cd526a1
remove genomes definition from schema
LilyAnderssonLee Dec 17, 2024
35bf598
update nextflow_schema.json
LilyAnderssonLee Dec 17, 2024
14cc312
Update nextflow.config: remove emails
LilyAnderssonLee Dec 17, 2024
b280ccb
update nextflow.config
LilyAnderssonLee Dec 19, 2024
4d14b16
Update nextflow.config
LilyAnderssonLee Dec 19, 2024
7b59380
Update nextflow.config
LilyAnderssonLee Dec 19, 2024
1e377c0
Update nextflow.config
LilyAnderssonLee Dec 19, 2024
50ca9c6
Update docs/usage.md
LilyAnderssonLee Dec 19, 2024
1a9062a
Update nextflow.config
LilyAnderssonLee Dec 19, 2024
1b8dce3
Update nextflow.config
LilyAnderssonLee Dec 19, 2024
2b50c34
Update nextflow.config
LilyAnderssonLee Dec 19, 2024
be0e916
Update nextflow.config
LilyAnderssonLee Dec 19, 2024
d5fcd74
Update nextflow.config
LilyAnderssonLee Dec 19, 2024
a5fc4e4
Update nextflow.config
LilyAnderssonLee Dec 19, 2024
4f81446
Update nextflow.config
LilyAnderssonLee Dec 19, 2024
6caf426
Update nextflow.config
LilyAnderssonLee Dec 19, 2024
e41ed10
Merge pull request #558 from nf-core/nf-core-template-merge-3.1.0
LilyAnderssonLee Dec 19, 2024
4946d78
Update centrifuge to fix CONDA bug
jfy133 Dec 19, 2024
bb61c8f
Merge branch 'dev' into fix-centrifuge-conda
jfy133 Dec 19, 2024
ec47fd0
Update CHANGELOG.md
jfy133 Dec 19, 2024
2564db7
Merge pull request #561 from nf-core/fix-centrifuge-conda
jfy133 Dec 19, 2024
9b0e463
Bump the version before the patch release v.1.2.2
LilyAnderssonLee Dec 19, 2024
a81eed0
correct the format
LilyAnderssonLee Dec 19, 2024
728aafc
reformat the multiqc_config.yml
LilyAnderssonLee Dec 19, 2024
8b4ec22
update CHANGELOG.md
LilyAnderssonLee Dec 20, 2024
6a9da1a
Merge pull request #562 from nf-core/pre-release_vbump
LilyAnderssonLee Dec 20, 2024
8c40f2a
Template update for nf-core/tools version 3.1.0
nf-core-bot Dec 20, 2024
4191a11
Template update for nf-core/tools version 3.1.1
nf-core-bot Dec 20, 2024
7ec45d0
resolve the conflicts
LilyAnderssonLee Jan 2, 2025
7f4a027
correct main branch into master
LilyAnderssonLee Jan 2, 2025
8f21774
correct the formate
LilyAnderssonLee Jan 2, 2025
594f022
update CITATIONS
LilyAnderssonLee Jan 2, 2025
6bd275b
prettier modules.json
LilyAnderssonLee Jan 2, 2025
43c0259
Update the CHANGELOG.md
LilyAnderssonLee Jan 2, 2025
e903a80
Update nextflow_schema.json
LilyAnderssonLee Jan 3, 2025
e71095e
Merge pull request #565 from nf-core/nf-core-template-merge-3.1.1
LilyAnderssonLee Jan 3, 2025
e35d04f
Test fix for downloading
sofstam Jan 9, 2025
e34c7a4
Check if the fix works when opening PR against dev
sofstam Jan 9, 2025
a22afb2
Remove the dev from branches
sofstam Jan 9, 2025
6843bdf
Test new fix
sofstam Jan 9, 2025
b4e9985
Merge pull request #566 from sofstam/download_pipeline_fix
sofstam Jan 10, 2025
6be6184
Use profile variable instead of hardcoding docker
jfy133 Jan 14, 2025
c16ea83
Merge pull request #567 from nf-core/fix-release-tests-for-condasingu…
jfy133 Jan 14, 2025
320f6f2
Update CHANGELOG.md
jfy133 Jan 15, 2025
26e610c
Post-release bump version
sofstam Jan 15, 2025
4f49fde
Update CHANGELOG.md
sofstam Jan 15, 2025
2dea5b1
Prettier
sofstam Jan 15, 2025
575ef87
Merge branch 'bump_version_1.3.0' of https://github.com/nf-core/taxpr…
sofstam Jan 15, 2025
7f5a785
[automated] Fix code linting
nf-core-bot Jan 15, 2025
071bcfb
Merge pull request #568 from nf-core/bump_version_1.3.0
sofstam Jan 15, 2025
64dcb04
Template update for nf-core/tools version 3.1.2
nf-core-bot Jan 20, 2025
898866f
Merge branch 'dev' into nf-core-template-merge-3.1.2
sofstam Jan 23, 2025
ac960d4
Update nextflow.config
sofstam Jan 23, 2025
a33a73f
Update nextflow.config
sofstam Jan 23, 2025
f2226be
Update zenodo
sofstam Jan 23, 2025
3d54880
Update nextflow.config
sofstam Jan 23, 2025
8b62db7
Update README.md
jfy133 Jan 23, 2025
b8a42de
Apply suggestions from code review
jfy133 Jan 23, 2025
34c5079
Merge pull request #569 from nf-core/nf-core-template-merge-3.1.2
sofstam Jan 23, 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/taxprofiler: Contributing Guidelines
# `nf-core/taxprofiler`: Contributing Guidelines

Hi there!
Many thanks for taking an interest in improving nf-core/taxprofiler.
Expand All @@ -19,7 +19,7 @@ If you'd like to write some code for nf-core/taxprofiler, the standard workflow
1. Check that there isn't already an issue about your idea in the [nf-core/taxprofiler issues](https://github.com/nf-core/taxprofiler/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/taxprofiler repository](https://github.com/nf-core/taxprofiler) 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/taxprofiler documentation](https://nf-co.re/taxprofiler/usage) and don't hesitate to get in touch on the nf-core Slack [#taxprofiler](https://nfcore.slack.com/channels/taxprofiler) channel ([join our Slack here](https://nf-co.re/join/slack)).

## Pipeline contribution conventions

To make the nf-core/taxprofiler 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/taxprofiler` 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/taxprofiler pipeline documentation](https://nf-co.re/taxprofiler/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/taxp
- [ ] 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/taxprofiler/tree/master/.github/CONTRIBUTING.md)
- [ ] If necessary, also make a PR on the nf-core/taxprofiler _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/taxprofiler'
# 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/taxprofiler' && 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/taxprofiler'
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
67 changes: 50 additions & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,34 @@ on:
pull_request:
release:
types: [published]
workflow_dispatch:

env:
NXF_ANSI_LOG: false
NXF_SINGULARITY_CACHEDIR: ${{ github.workspace }}/.singularity
NXF_SINGULARITY_LIBRARYDIR: ${{ github.workspace }}/.singularity

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

jobs:
test:
name: Run pipeline with test data
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/taxprofiler') }}"
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
NXF_VER:
- "23.04.0"
- "24.04.2"
- "latest-everything"
tags:
profile:
- "conda"
- "docker"
- "singularity"
test_name:
- "test"
- "test_nopreprocessing"
- "test_noprofiling"
Expand All @@ -39,37 +46,63 @@ jobs:
- "test_alternativepreprocessing"
- "test_bbduk"
- "test_prinseqplusplus"

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: Install Nextflow
- name: Set up Nextflow
uses: nf-core/setup-nextflow@v2
with:
version: "${{ matrix.NXF_VER }}"

- name: Disk space cleanup
uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # v1.3.1
- name: Set up Apptainer
if: matrix.profile == 'singularity'
uses: eWaterCycle/setup-apptainer@main

- name: Run pipeline with test data
# TODO nf-core: You can customise CI pipeline run tests as required
# For example: adding multiple test runs with different parameters
# Remember that you can parallelise this by using strategy.matrix
- 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:
miniconda-version: "latest"
auto-update-conda: true
conda-solver: libmamba
channels: conda-forge,bioconda

- name: Set up Conda
if: matrix.profile == 'conda'
run: |
sudo locale-gen en_US.UTF-8
sudo update-locale LANG=en_US.UTF-8
echo $(realpath $CONDA)/condabin >> $GITHUB_PATH
echo $(realpath python) >> $GITHUB_PATH

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

- name: Run pipeline with test data
run: |
if [[ "${{ matrix.tags }}" == "test_motus" ]]; then
if [[ "${{ matrix.test_name }}" == "test_motus" ]]; then
wget https://raw.githubusercontent.com/motu-tool/mOTUs/master/motus/downloadDB.py
python downloadDB.py --no-download-progress
echo 'tool,db_name,db_params,db_type,db_path' > 'database_motus.csv'
echo "motus,db1_mOTU,,short,db_mOTU" >> 'database_motus.csv'
echo "motus,db2_mOTU,,long,db_mOTU" >> 'database_motus.csv'
echo "motus,db3_mOTU,,short;long,db_mOTU" >> 'database_motus.csv'
nextflow run ${GITHUB_WORKSPACE} -profile docker,${{ matrix.tags }} --databases ./database_motus.csv --outdir ./results_${{ matrix.tags }};
nextflow run ${GITHUB_WORKSPACE} -profile ${{ matrix.profile }},${{ matrix.test_name }} --databases ./database_motus.csv --outdir ./results_${{ matrix.test_name }};
else
nextflow run ${GITHUB_WORKSPACE} -profile docker,${{ matrix.tags }} --outdir ./results_${{ matrix.tags }};
nextflow run ${GITHUB_WORKSPACE} -profile ${{ matrix.profile }},${{ matrix.test_name }} --outdir ./results_${{ matrix.test_name }};
fi
Loading
Loading