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

Release - 1.1.0 #45

Merged
merged 127 commits into from
Nov 8, 2024
Merged
Show file tree
Hide file tree
Changes from 123 commits
Commits
Show all changes
127 commits
Select commit Hold shift + click to select a range
4bb09be
Merge pull request #27 from nf-core/master
jannikseidelQBiC Apr 4, 2024
095320e
bumped version to 1.1.0dev
jannikseidelQBiC Apr 4, 2024
fcef696
Merge pull request #28 from jannikseidelQBiC/post1.0.0versionbump
jannikseidelQBiC Apr 4, 2024
34318dd
Template update for nf-core/tools version 2.14.0
nf-core-bot May 8, 2024
afae99a
Template update for nf-core/tools version 2.14.1
nf-core-bot May 9, 2024
d9274aa
Merge branch 'dev' into nf-core-template-merge-2.14.1
jannikseidelQBiC Jun 10, 2024
7a7d5f8
Update nextflow_schema.json
jannikseidelQBiC Jun 10, 2024
e5ded6f
Merge pull request #31 from nf-core/nf-core-template-merge-2.14.1
jannikseidelQBiC Jun 10, 2024
ab4b830
fixed bug
jannikseidelQBiC Jun 27, 2024
cec399c
added bugfix to changelog
jannikseidelQBiC Jun 27, 2024
4c1c6d5
[automated] Fix code linting
nf-core-bot Jun 27, 2024
ae4e737
changed linked issue to pr in changelog
jannikseidelQBiC Jun 27, 2024
f447fd7
Merge pull request #33 from jannikseidelQBiC/bugfix
jannikseidelQBiC Jun 27, 2024
7c2316e
added funding information to readme
jannikseidelQBiC Aug 6, 2024
206af38
Introduction of bbduk into detaxizer; making blastn optional
jannikseidelQBiC Aug 8, 2024
a8ac1ca
removal of SUMMARY_KRAKEN2 from modules.config
jannikseidelQBiC Aug 8, 2024
2d4d97f
update of modules
jannikseidelQBiC Aug 8, 2024
538b3eb
split of fasta parameter into fasta_bbduk and fasta_blastn
jannikseidelQBiC Aug 13, 2024
f9204f3
changed label of bbduk to 'process_high'
jannikseidelQBiC Aug 13, 2024
efec483
fixed logic for deciding how to process ids
jannikseidelQBiC Aug 14, 2024
e47089c
added dont_eval_duplication to fastp and turned off preprocessing by …
jannikseidelQBiC Aug 16, 2024
e70f576
adapted meta.id of summary processes to new concept of detaxizer
jannikseidelQBiC Aug 16, 2024
0f5358d
made preprocessing with fastp optional
jannikseidelQBiC Aug 16, 2024
5c43932
enable optional output of the removed reads
jannikseidelQBiC Aug 16, 2024
2ae24e7
introduced optional classification of the filtered (and removed) read…
jannikseidelQBiC Aug 16, 2024
fa6edef
Updated CHANGELOG.md
jannikseidelQBiC Aug 16, 2024
e7a8409
Updated test_full.config
jannikseidelQBiC Aug 16, 2024
2fac8db
added version output of processes to multiqc
jannikseidelQBiC Aug 16, 2024
91adeec
changed kraken2 post classification to be output as default if post-f…
jannikseidelQBiC Aug 19, 2024
adb875f
update kraken2 default database
jannikseidelQBiC Aug 29, 2024
292f1cb
fix: test for blastn was adapted to new reference parameter
jannikseidelQBiC Aug 29, 2024
f90cb9f
removed unused parameters for blastn
jannikseidelQBiC Aug 29, 2024
22c4c3a
update kraken2 database and alignment of values
jannikseidelQBiC Aug 29, 2024
691b7d3
adapted tests
jannikseidelQBiC Aug 30, 2024
5a07dfc
removed blastn from standard test
jannikseidelQBiC Aug 30, 2024
2102219
default tax2filter to 'Homo sapiens'
jannikseidelQBiC Aug 30, 2024
15f1655
prettification of modules.json
jannikseidelQBiC Aug 30, 2024
5e91cda
changed behavior of params.preprocessing
jannikseidelQBiC Aug 30, 2024
bbb4bc2
changed tax2filter in full test to 'Homo sapiens'
jannikseidelQBiC Aug 30, 2024
1adcdf5
[automated] Fix code linting
nf-core-bot Sep 2, 2024
885ee90
Update CHANGELOG.md
jannikseidelQBiC Sep 2, 2024
70f8b51
fixed indentation
jannikseidelQBiC Sep 3, 2024
270f47b
removed blank line
jannikseidelQBiC Sep 3, 2024
fe9b62b
Update CHANGELOG.md
jannikseidelQBiC Sep 3, 2024
0959bcb
[automated] Fix code linting
nf-core-bot Sep 3, 2024
9c7f8f8
removal of redundant code in classification step
jannikseidelQBiC Sep 3, 2024
005c721
Change of logic for the merging step of the classification to be func…
jannikseidelQBiC Sep 3, 2024
701a72c
removal of blank line
jannikseidelQBiC Sep 3, 2024
088e793
Addition of DZIF to funding information
jannikseidelQBiC Sep 3, 2024
64a91c4
Merge pull request #34 from jannikseidelQBiC/feature_bbduk
jannikseidelQBiC Sep 4, 2024
b215564
Updated citations
jannikseidelQBiC Sep 4, 2024
7ae520d
Updated README.md
jannikseidelQBiC Sep 4, 2024
36918c5
Updated detaxizer metro map
jannikseidelQBiC Sep 4, 2024
b90a08e
fixed typo
jannikseidelQBiC Sep 4, 2024
8547584
updated usage.md
jannikseidelQBiC Sep 4, 2024
bce21a8
changed output folder of MERGE_IDS process
jannikseidelQBiC Sep 4, 2024
505dd0a
updated output.md
jannikseidelQBiC Sep 4, 2024
081f31d
updated output.md
jannikseidelQBiC Sep 4, 2024
1be3955
[automated] Fix code linting
nf-core-bot Sep 4, 2024
b085cbc
fixed typos
jannikseidelQBiC Sep 5, 2024
65c16c1
update output.md
jannikseidelQBiC Sep 5, 2024
517838f
updated README.md
jannikseidelQBiC Sep 5, 2024
40e31aa
Merge pull request #35 from jannikseidelQBiC/feature_bbduk_docu
jannikseidelQBiC Sep 5, 2024
ca30095
Template update for nf-core/tools version 3.0.0
nf-core-bot Oct 8, 2024
d809ac3
Template update for nf-core/tools version 3.0.1
nf-core-bot Oct 9, 2024
6a51981
initial setup detaxizer -> taxprofiler
Joon-Klaps Oct 10, 2024
c9bc9dd
fix nanopore logic
Joon-Klaps Oct 10, 2024
97756ab
add docs
Joon-Klaps Oct 10, 2024
e4ad83f
add workflow logic samplesheet generation + function
Joon-Klaps Oct 11, 2024
8d17230
Template update for nf-core/tools version 3.0.2
nf-core-bot Oct 11, 2024
08acd3a
add nf-test for subworkflow
Joon-Klaps Oct 14, 2024
513e4e6
add support for MAG
Joon-Klaps Oct 14, 2024
67217ca
adding outpath
Joon-Klaps Oct 14, 2024
a706319
update snapshot with outpath
Joon-Klaps Oct 14, 2024
9ef936b
update nf-test use real files & nf-testcsv
Joon-Klaps Oct 14, 2024
b19bc04
implement suggestions
Joon-Klaps Oct 14, 2024
a2880eb
additional check new input params
Joon-Klaps Oct 14, 2024
3aadbef
Merge branch 'TEMPLATE' of https://github.com/nf-core/detaxizer into …
jannikseidel Oct 15, 2024
687bd09
splitting up PE and SE for samplesheet generation
Joon-Klaps Oct 15, 2024
f94464c
remove unnecesry function call & update tests
Joon-Klaps Oct 15, 2024
fbe3fbf
making to samplesheet function more easy to read
Joon-Klaps Oct 15, 2024
a5be030
update output docs & remove standalone long reads
Joon-Klaps Oct 15, 2024
2b5e361
updated CHANGELOG.md
jannikseidel Oct 16, 2024
206e3f9
[automated] Fix code linting
nf-core-bot Oct 16, 2024
d22a36c
setting memory to 15 GB (as intended in the template update)
jannikseidel Oct 16, 2024
7c65d8b
Merge pull request #42 from jannikseidelQBiC/merging-template-updates
jannikseidelQBiC Oct 16, 2024
5c6f57c
Merge remote-tracking branch 'origin/dev' into samplesheet-gen-taxpro…
Joon-Klaps Oct 16, 2024
73352be
implement reviewer comment
Joon-Klaps Oct 16, 2024
4c2f1fd
fix linting
Joon-Klaps Oct 16, 2024
d38e101
Merge pull request #39 from nf-core/samplesheet-gen-taxprofiler
Joon-Klaps Oct 17, 2024
bbabf9a
Updated changelog
Joon-Klaps Oct 17, 2024
b995936
Update readme, samplesheet and supported pipelines
Joon-Klaps Oct 17, 2024
22a5204
make the false ci go away
Joon-Klaps Oct 17, 2024
b839966
Merge pull request #43 from nf-core/update-changelog-samplesheet-gene…
Joon-Klaps Oct 18, 2024
bf20752
update modules
jannikseidel Oct 21, 2024
e4116ca
update manifest
jannikseidel Oct 21, 2024
1199106
update config description
jannikseidel Oct 21, 2024
978b252
update changelog
jannikseidel Oct 21, 2024
5b735cb
preparation of release 1.1.0
jannikseidel Oct 21, 2024
c6dc9d4
uncomment includeConfig for custom profiles
jannikseidel Oct 21, 2024
905cbb8
update kraken2 default db
jannikseidel Oct 21, 2024
78bd4a0
fix typo
jannikseidel Oct 21, 2024
1494faa
update changelog
jannikseidel Oct 21, 2024
fdb8704
updated release date in changelog
jannikseidel Oct 22, 2024
07f23b4
Merge pull request #44 from jannikseidelQBiC/preparation-release
jannikseidelQBiC Oct 22, 2024
4fb5265
fixing gzip too many symlink levels error
jannikseidel Oct 22, 2024
7f58e94
Merge pull request #46 from jannikseidelQBiC/fix-gzip-conda
jannikseidelQBiC Oct 23, 2024
ffbbd27
changed pipeline version and description
jannikseidel Oct 30, 2024
1803c38
minor changes in metro map
jannikseidel Oct 30, 2024
8525443
rename meta1 to meta2
jannikseidel Oct 30, 2024
f9148f8
update CHANGELOG.md
jannikseidel Oct 31, 2024
7264989
update README.md
jannikseidel Oct 31, 2024
d957329
update usage.md
jannikseidel Oct 31, 2024
4c8f8bf
update output.md
jannikseidel Oct 31, 2024
feb8d0b
remove todo from nextflow.config
jannikseidel Oct 31, 2024
69b4cf6
change name of fasta_* channels to follow ch_* convention
jannikseidel Nov 1, 2024
fa3557e
removing set from channels for consitency (except template channels)
jannikseidel Nov 1, 2024
0011711
remove whitespace
jannikseidel Nov 1, 2024
8c44563
changes in usage of whitespace for consitency and readability
jannikseidel Nov 1, 2024
901df30
[automated] Fix code linting
nf-core-bot Nov 1, 2024
7590325
removed trailing whitespaces
jannikseidel Nov 1, 2024
267c390
Merge branch 'corrections_release1.1.0_I' of https://github.com/janni…
jannikseidel Nov 1, 2024
51ba34e
Merge pull request #47 from jannikseidelQBiC/corrections_release1.1.0_I
jannikseidelQBiC Nov 4, 2024
3fc4175
update CHANGELOG.md
jannikseidel Nov 7, 2024
8768312
Don't check tests if there are no tests
ewels Nov 7, 2024
c6286cc
Merge pull request #49 from nf-core/aws-fulltest-manual-fix
ewels Nov 7, 2024
820be19
Merge pull request #48 from jannikseidelQBiC/update-release-date-rele…
jannikseidelQBiC Nov 8, 2024
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
6 changes: 1 addition & 5 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,6 @@ indent_style = unset
[/assets/email*]
indent_size = unset

# ignore Readme
[README.md]
indent_style = unset

# ignore python
# ignore python and markdown
[*.{py,md}]
indent_style = unset
12 changes: 6 additions & 6 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ If you'd like to write some code for nf-core/detaxizer, the standard workflow is
1. Check that there isn't already an issue about your idea in the [nf-core/detaxizer issues](https://github.com/nf-core/detaxizer/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/detaxizer repository](https://github.com/nf-core/detaxizer) 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 Down Expand Up @@ -75,7 +75,7 @@ If you wish to contribute a new step, please use the following coding standards:
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 @@ -86,11 +86,11 @@ If you wish to contribute a new step, please use the following coding standards:

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

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
3 changes: 2 additions & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ Learn more about contributing: [CONTRIBUTING.md](https://github.com/nf-core/deta
- [ ] 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/detaxizer/tree/master/.github/CONTRIBUTING.md)
- [ ] If necessary, also make a PR on the nf-core/detaxizer _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.
- [ ] Output Documentation in `docs/output.md` is updated.
Expand Down
35 changes: 26 additions & 9 deletions .github/workflows/awsfulltest.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,36 @@
name: nf-core AWS full size tests
# This workflow is triggered on published releases.
# This workflow is triggered on PRs opened against the 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:
- master
workflow_dispatch:
pull_request_review:
types: [submitted]

jobs:
run-tower:
run-platform:
name: Run AWS full tests
if: github.repository == 'nf-core/detaxizer'
# 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/detaxizer' && github.event.review.state == 'approved' && github.event.pull_request.base.ref == 'master' || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
steps:
- name: Launch workflow via tower
- uses: octokit/request-action@v2.x
id: check_approvals
with:
route: GET /repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/reviews
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- 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
# TODO nf-core: You can customise AWS full pipeline tests as required
# Add full size test data (but still relatively small datasets for few samples)
Expand All @@ -33,7 +50,7 @@ jobs:

- uses: actions/upload-artifact@v4
with:
name: Tower debug log file
name: Seqera Platform debug log file
path: |
tower_action_*.log
tower_action_*.json
seqera_platform_action_*.log
seqera_platform_action_*.json
12 changes: 6 additions & 6 deletions .github/workflows/awstest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ name: nf-core AWS test
on:
workflow_dispatch:
jobs:
run-tower:
run-platform:
name: Run AWS tests
if: github.repository == 'nf-core/detaxizer'
runs-on: ubuntu-latest
steps:
# Launch workflow using Tower CLI tool action
- name: Launch workflow via tower
# Launch workflow using Seqera Platform CLI tool action
- name: Launch workflow via Seqera Platform
uses: seqeralabs/action-tower-launch@v2
with:
workspace_id: ${{ secrets.TOWER_WORKSPACE_ID }}
Expand All @@ -27,7 +27,7 @@ jobs:

- uses: actions/upload-artifact@v4
with:
name: Tower debug log file
name: Seqera Platform debug log file
path: |
tower_action_*.log
tower_action_*.json
seqera_platform_action_*.log
seqera_platform_action_*.json
74 changes: 49 additions & 25 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,57 +7,81 @@ 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/detaxizer') }}"
runs-on: ubuntu-latest
strategy:
matrix:
NXF_VER:
- "23.04.0"
- "24.04.2"
- "latest-everything"
profile:
- "conda"
- "docker"
- "singularity"
test_name:
- "test"
- "test_blastn"
- "test_filter_preprocessed"
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@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4

- name: Install Nextflow
uses: nf-core/setup-nextflow@v1
- 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
- name: Set up Singularity
if: matrix.profile == 'singularity'
run: |
nextflow run ${GITHUB_WORKSPACE} -profile test,docker --outdir ./results
mkdir -p $NXF_SINGULARITY_CACHEDIR
mkdir -p $NXF_SINGULARITY_LIBRARYDIR

profiles:
name: Run workflow 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/detaxizer') }}
runs-on: ubuntu-latest
strategy:
matrix:
# Run remaining test profiles with minimum nextflow version
profile: [test_skip_blastn, test_filter_preprocessed]
steps:
- name: Check out pipeline code
uses: actions/checkout@v4
- 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: Install Nextflow
uses: nf-core/setup-nextflow@v1
- name: Set up Conda
if: matrix.profile == 'conda'
run: |
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 ${{ matrix.profile }} test profile
- name: "Run pipeline with test data ${{ matrix.NXF_VER }} | ${{ matrix.test_name }} | ${{ matrix.profile }}"
run: |
nextflow run ${GITHUB_WORKSPACE} -profile ${{ matrix.profile }},docker --outdir ./results
nextflow run ${GITHUB_WORKSPACE} -profile ${{ matrix.test_name }},${{ matrix.profile }} --outdir ./results
73 changes: 60 additions & 13 deletions .github/workflows/download_pipeline.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Test successful pipeline download with 'nf-core download'
name: Test successful pipeline download with 'nf-core pipelines download'

# Run the workflow when:
# - dispatched manually
Expand All @@ -8,12 +8,14 @@ on:
workflow_dispatch:
inputs:
testbranch:
description: "The specific branch you wish to utilize for the test execution of nf-core download."
description: "The specific branch you wish to utilize for the test execution of nf-core pipelines download."
required: true
default: "dev"
pull_request:
types:
- opened
- edited
- synchronize
branches:
- master
pull_request_target:
Expand All @@ -28,15 +30,20 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Install Nextflow
uses: nf-core/setup-nextflow@v1
uses: nf-core/setup-nextflow@v2

- uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5
- name: Disk space cleanup
uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # v1.3.1

- uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5
with:
python-version: "3.11"
python-version: "3.12"
architecture: "x64"
- uses: eWaterCycle/setup-singularity@931d4e31109e875b13309ae1d07c70ca8fbc8537 # v7

- name: Setup Apptainer
uses: eWaterCycle/setup-apptainer@4bb22c52d4f63406c49e94c804632975787312b3 # v2.0.0
with:
singularity-version: 3.8.3
apptainer-version: 1.3.4

- name: Install dependencies
run: |
Expand All @@ -49,24 +56,64 @@ jobs:
echo "REPOTITLE_LOWERCASE=$(basename ${GITHUB_REPOSITORY,,})" >> ${GITHUB_ENV}
echo "REPO_BRANCH=${{ github.event.inputs.testbranch || 'dev' }}" >> ${GITHUB_ENV}

- name: Make a cache directory for the container images
run: |
mkdir -p ./singularity_container_images

- name: Download the pipeline
env:
NXF_SINGULARITY_CACHEDIR: ./
NXF_SINGULARITY_CACHEDIR: ./singularity_container_images
run: |
nf-core download ${{ env.REPO_LOWERCASE }} \
nf-core pipelines download ${{ env.REPO_LOWERCASE }} \
--revision ${{ env.REPO_BRANCH }} \
--outdir ./${{ env.REPOTITLE_LOWERCASE }} \
--compress "none" \
--container-system 'singularity' \
--container-library "quay.io" -l "docker.io" -l "ghcr.io" \
--container-library "quay.io" -l "docker.io" -l "community.wave.seqera.io" \
--container-cache-utilisation 'amend' \
--download-configuration
--download-configuration 'yes'

- name: Inspect download
run: tree ./${{ env.REPOTITLE_LOWERCASE }}

- name: Run the downloaded pipeline
- name: Count the downloaded number of container images
id: count_initial
run: |
image_count=$(ls -1 ./singularity_container_images | wc -l | xargs)
echo "Initial container image count: $image_count"
echo "IMAGE_COUNT_INITIAL=$image_count" >> ${GITHUB_ENV}

- name: Run the downloaded pipeline (stub)
id: stub_run_pipeline
continue-on-error: true
env:
NXF_SINGULARITY_CACHEDIR: ./
NXF_SINGULARITY_CACHEDIR: ./singularity_container_images
NXF_SINGULARITY_HOME_MOUNT: true
run: nextflow run ./${{ env.REPOTITLE_LOWERCASE }}/$( sed 's/\W/_/g' <<< ${{ env.REPO_BRANCH }}) -stub -profile test,singularity --outdir ./results
- name: Run the downloaded pipeline (stub run not supported)
id: run_pipeline
if: ${{ job.steps.stub_run_pipeline.status == failure() }}
env:
NXF_SINGULARITY_CACHEDIR: ./singularity_container_images
NXF_SINGULARITY_HOME_MOUNT: true
run: nextflow run ./${{ env.REPOTITLE_LOWERCASE }}/$( sed 's/\W/_/g' <<< ${{ env.REPO_BRANCH }}) -profile test,singularity --outdir ./results

- name: Count the downloaded number of container images
id: count_afterwards
run: |
image_count=$(ls -1 ./singularity_container_images | wc -l | xargs)
echo "Post-pipeline run container image count: $image_count"
echo "IMAGE_COUNT_AFTER=$image_count" >> ${GITHUB_ENV}

- name: Compare container image counts
run: |
if [ "${{ env.IMAGE_COUNT_INITIAL }}" -ne "${{ env.IMAGE_COUNT_AFTER }}" ]; then
initial_count=${{ env.IMAGE_COUNT_INITIAL }}
final_count=${{ env.IMAGE_COUNT_AFTER }}
difference=$((final_count - initial_count))
echo "$difference additional container images were \n downloaded at runtime . The pipeline has no support for offline runs!"
tree ./singularity_container_images
exit 1
else
echo "The pipeline can be downloaded successfully!"
fi
Loading
Loading