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

PR for first release #54

Merged
merged 183 commits into from
Feb 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
183 commits
Select commit Hold shift + click to select a range
349aa30
Template update for nf-core/tools version 2.9
nf-core-bot Jun 30, 2023
78c9c51
Updated README to include note about development phase.
FloWuenne Jul 13, 2023
0510805
Merge pull request #1 from nf-core/nf-core-template-merge-2.9
FloWuenne Jul 13, 2023
f2be8fc
Installed first batch of nf-core modules.
FloWuenne Aug 10, 2023
2f1e800
Automatic nextflow.config update.
FloWuenne Aug 10, 2023
111658f
Started removing genome specific parameters from template.
FloWuenne Sep 19, 2023
a2b153c
Prettier modification.
FloWuenne Sep 19, 2023
de52076
Added mindagap and project spots to pipeline.
FloWuenne Sep 19, 2023
f3e4de9
Added local modules
FloWuenne Sep 19, 2023
4235a64
Modified main workflow.
FloWuenne Sep 20, 2023
9cc6e15
Removed Fastqc module. Added parametre for project_spots.
FloWuenne Sep 20, 2023
b585509
Fully working minimal pipeline.
FloWuenne Sep 20, 2023
f67dd2b
Added version parsing for modules.
FloWuenne Sep 20, 2023
75aff27
Minimal pipeline completely working.
FloWuenne Sep 20, 2023
3a1dcd8
Template update for nf-core/tools version 2.10
nf-core-bot Sep 25, 2023
cd6ed39
Merge pull request #2 from FloWuenne/minimal_pipeline
FloWuenne Sep 27, 2023
ba4ab94
Resolving conflicts with new template
kbestak Sep 27, 2023
f47b8d1
Ran Python linting (black)
kbestak Sep 27, 2023
155caf8
Indentation fix in modules.config
kbestak Sep 27, 2023
49d9e97
Merge pull request #3 from nf-core/nf-core-template-merge-2.10
FloWuenne Sep 27, 2023
c9742be
Removed igenome from main.nf
kbestak Sep 27, 2023
8478b82
Reformatted channel handling for parallelisability
kbestak Oct 6, 2023
170cbab
Added channel stacking and optional membrane handling - not yet with …
kbestak Oct 10, 2023
67467a7
Added parameters, Cellpose external model, rewrote channel processing
kbestak Oct 11, 2023
f8470c9
Started work on create training subset functionality
kbestak Oct 12, 2023
1fd16d0
Updated changelog
kbestak Oct 12, 2023
c9d58ed
Create training subset functional
kbestak Oct 12, 2023
457328d
Merge pull request #1 from kbestak/TODO_0
kbestak Oct 12, 2023
40fc2bd
Fixed container registry for 2 modules and added flows for cellpose.
FloWuenne Oct 12, 2023
6695106
Fixed container repo for 2 modules. Added cellpose flow fields parame…
FloWuenne Oct 12, 2023
2da3f69
Ran Python Black to reformat code
kbestak Oct 16, 2023
cfbcc8e
Added ilastik segmentation with custom project files
kbestak Oct 17, 2023
60439b4
Merge pull request #4 from kbestak/Initial_setup
FloWuenne Oct 17, 2023
ff75e56
Added MultiQC processing - first version
kbestak Oct 18, 2023
e2315f6
Added MultiQC processing - CHANGELOG
kbestak Oct 18, 2023
c659d39
Fixed URL in multiqc and spacing in createtraining.tiff.nf
FloWuenne Oct 23, 2023
2cb3705
Replaced clahe param with skip_clahe
kbestak Oct 23, 2023
d568505
Reverting multiqc report_comment link fix.
FloWuenne Oct 23, 2023
a2499bb
Merge pull request #10 from nf-core/multiqc
FloWuenne Oct 23, 2023
1f775c4
Merge branch 'dev' into clahe_param_to_skip_clahe
FloWuenne Oct 23, 2023
f348642
Prettier linting fix for changelog.md.
FloWuenne Oct 23, 2023
8153591
Fixed random text in nextflow.config.
FloWuenne Oct 23, 2023
8313bf2
Merge pull request #14 from nf-core/clahe_param_to_skip_clahe
FloWuenne Oct 23, 2023
f6cba52
Replace project spots and mcquant with spots2cell.
FloWuenne Oct 23, 2023
b7b6444
Added process labels to modules missing it.
FloWuenne Oct 23, 2023
8e540c0
MolcartQC working with spots2cell.
FloWuenne Oct 24, 2023
de1389a
Added meta map to MOLCART_QC.
FloWuenne Oct 24, 2023
a4d7461
Python black fixes.
FloWuenne Oct 24, 2023
58ec42f
Fixed multiqc break, removed Project_spots and MCQuant, added Duplica…
kbestak Oct 24, 2023
9123124
Updated CHANGELOG.md
kbestak Oct 24, 2023
1cd329a
Updated scripts with Python Black
kbestak Oct 24, 2023
73f8ec1
Added tilesize parameter for mindagap and mindagap_duplicatefinder
kbestak Oct 25, 2023
e9ca17a
Updated CHANGELOG.md
kbestak Oct 25, 2023
91d31bd
Removed mcquant completely.
FloWuenne Oct 25, 2023
1822788
Merge pull request #15 from nf-core/spot2cell
FloWuenne Oct 25, 2023
ac6b1ff
Merge branch 'dev' into mindagap_tilesize
FloWuenne Oct 25, 2023
df32423
Prettier fixing of Changeleg.
FloWuenne Oct 25, 2023
f6c535d
Merge pull request #18 from nf-core/mindagap_tilesize
FloWuenne Oct 25, 2023
f726d69
Added output.md and updated modules to include environment.yml to pas…
kbestak Nov 10, 2023
3b138c6
removed fastqc plots as they are not releveant for this pipeline
kbestak Nov 10, 2023
b7971d6
Specified usage
kbestak Nov 10, 2023
d8068fb
Updated usage
kbestak Nov 10, 2023
0635f33
Updated changelog, added segmentation overhead folder
kbestak Nov 10, 2023
28dbee7
Added optional params to documentation
kbestak Nov 10, 2023
4ab90b6
Updated CHANGELOG, README, CITATIONS
kbestak Nov 13, 2023
9f2e1ea
Updated date in changelog
kbestak Nov 13, 2023
0e5e4a2
Fixed WorkflowMolkart.groovy
kbestak Nov 14, 2023
4b77047
Added metromap png
kbestak Nov 14, 2023
241354d
Removed workflow TODO
kbestak Nov 14, 2023
e88a4c3
Prettier changes.
FloWuenne Nov 14, 2023
3c46f9d
Merge pull request #19 from nf-core/Documentation
FloWuenne Nov 14, 2023
6b152d7
Fixed Cellpose custom model multisample, added clahe_skip_pyramid
kbestak Nov 15, 2023
15de9b0
Added usage for clahe_skip_pyramid
kbestak Nov 15, 2023
a74f794
Ran black on apply_clahe.dask.py
kbestak Nov 15, 2023
3c5b0fe
Moved docker entrypoint fix from process to docker scope.
FloWuenne Nov 16, 2023
07d1b30
Updated cellpose and fixed singularity error.
FloWuenne Nov 20, 2023
2da1dd5
Merge pull request #20 from nf-core/Cellpose_fix
FloWuenne Nov 20, 2023
bebee88
Added nf-test for pipeline main.nf
kbestak Nov 24, 2023
350d73c
Updated CHANGELOG
kbestak Nov 24, 2023
e961077
Added test.config specifications
kbestak Nov 24, 2023
6becbbd
Updated tests
kbestak Nov 24, 2023
9d4ead6
Removed hardcoded memory requirements
kbestak Nov 24, 2023
bc6f446
Merge pull request #25 from nf-core/nf_test
FloWuenne Nov 27, 2023
12fd24b
Filename overwrites for mindagap and spot2cell fixed
kbestak Nov 28, 2023
007afe4
Mesmer does not require stacks
kbestak Nov 28, 2023
d9b8149
Ran Python black on spot2cell.py
kbestak Nov 29, 2023
3d80a6e
Merge pull request #30 from nf-core/mindagap_outputs
FloWuenne Nov 29, 2023
1fa06a9
CLAHE changes
kbestak Nov 30, 2023
c39ee20
updated test.config
kbestak Nov 30, 2023
3cd81c6
updated usage.md
kbestak Nov 30, 2023
4e63f0f
updated output.md
kbestak Nov 30, 2023
09918f0
Merge pull request #31 from nf-core/clahe_and_filter
FloWuenne Dec 2, 2023
68bd97a
Replaced local mindagap/duplicatefinder with nf-core module.
FloWuenne Dec 2, 2023
610b1c8
Delete null/pipeline_info/execution_trace_2023-12-02_12-23-56.txt
FloWuenne Dec 3, 2023
cdabd16
Moved duplicatefinder to nf-core modules section
kbestak Dec 4, 2023
4acfb71
Merge pull request #32 from nf-core/duplicatefinder_patch
kbestak Dec 4, 2023
788c3c6
maskfilter added, molkartqc update, prefix fix, versions
kbestak Dec 5, 2023
1e779bc
Updated documentation
kbestak Dec 5, 2023
db0df33
lint_fix
kbestak Dec 5, 2023
f9a8aa5
Merge pull request #33 from nf-core/maskfilter
FloWuenne Dec 6, 2023
307e1e6
local_module_revamp first
kbestak Dec 7, 2023
b07a389
adapted clahe and stack
kbestak Dec 7, 2023
c4ebc3d
added versions for stack
kbestak Dec 7, 2023
137f2df
stack version emitted
kbestak Dec 7, 2023
a49d2e0
Ran Python black
kbestak Dec 7, 2023
50bf72c
Removed trailing whitespace...
kbestak Dec 7, 2023
20bb42b
publish dir mode change
kbestak Dec 7, 2023
c05c6ae
Updated license
kbestak Dec 7, 2023
346e6b8
Update CHANGELOG.md
kbestak Dec 8, 2023
68a2028
Merge pull request #35 from nf-core/local_module_revamp
FloWuenne Dec 8, 2023
6b92202
mulitqc parses crop overview
kbestak Dec 8, 2023
db5f385
Updated modules
kbestak Dec 9, 2023
ca2e30f
crop_overview_checkup
kbestak Dec 11, 2023
282362c
Added molkartqcpng process
kbestak Dec 11, 2023
baa87db
black on collect_QC.py
kbestak Dec 11, 2023
86a3286
Publish cropsummary in multiqc folder
kbestak Dec 14, 2023
8bd15fd
Removed leftover line
kbestak Dec 15, 2023
3a0b2ef
Merge pull request #36 from nf-core/crop_overview_multiqc
FloWuenne Dec 15, 2023
e437bb6
Added full test config file.
FloWuenne Dec 15, 2023
5b53fb3
Updated changelog.
FloWuenne Dec 15, 2023
43e231e
Speedup mask filter.
FloWuenne Dec 15, 2023
cb44f93
Prettier fix.
FloWuenne Dec 15, 2023
f4c22fe
Fixed formatting.
FloWuenne Dec 16, 2023
3b654a3
reverted nfcore gitpod to latest
kbestak Dec 16, 2023
9776860
Merge pull request #39 from nf-core/full_test
kbestak Dec 16, 2023
1d68330
Update bin/maskfilter.py
FloWuenne Dec 16, 2023
eecf921
Merge pull request #40 from nf-core/speedup_maskfilter
kbestak Dec 16, 2023
b36db58
Changed prefix naming for CLAHE to prevent file overlap.
FloWuenne Dec 18, 2023
5ae7dd6
Updated Changelog.
FloWuenne Dec 18, 2023
15a6152
Delete null/pipeline_info/execution_trace_2023-12-18_13-37-29.txt
FloWuenne Dec 18, 2023
6967c92
Update conf/modules.config
FloWuenne Dec 18, 2023
6c1eef8
Merge pull request #42 from nf-core/clahe_prefix_fix
FloWuenne Dec 18, 2023
48f76a4
Increased label to process_medium for clahe and maskfilter.
FloWuenne Dec 18, 2023
d12c4a2
Updated Changelog.
FloWuenne Dec 18, 2023
a7fbd6e
Fixed bug in Maskfilter config.
FloWuenne Dec 19, 2023
7bff06d
Merge pull request #45 from nf-core/hotfix_maskfilter
kbestak Dec 19, 2023
cccd7b9
Added first version of formatting spot2cell as anndata.
FloWuenne Dec 19, 2023
2d0b476
Black reformatting.
FloWuenne Dec 19, 2023
fd736f1
Template update for nf-core/tools version 2.11
nf-core-bot Dec 19, 2023
45a4ca9
Template update for nf-core/tools version 2.11.1
nf-core-bot Dec 20, 2023
1f6ec81
Merge pull request #44 from nf-core/process_resources
kbestak Jan 2, 2024
661c53a
Merged changes from nf-core template
kbestak Jan 3, 2024
13fbef4
Merge pull request #48 from kbestak/merging-template-updates2.11.1
kbestak Jan 4, 2024
87a1cbf
Merge remote-tracking branch 'origin/dev' into anndata_output
FloWuenne Jan 4, 2024
6223d0d
Added createanndata process after spot2cell.
FloWuenne Jan 4, 2024
ce431c6
Updated molkart-local version to v0.0.3 for all local modules.
FloWuenne Jan 4, 2024
a2444c3
Modified create anndata code to add regionprops to adata.obs.
FloWuenne Jan 4, 2024
0f6bc16
Prettier fix.
FloWuenne Jan 4, 2024
b2db2eb
Changelog update.
FloWuenne Jan 4, 2024
9f2c81f
Added anndata to output.md
FloWuenne Jan 4, 2024
01ff5c9
Added anndata to CITATIONS.md
FloWuenne Jan 4, 2024
e095a69
minor_fixes
kbestak Jan 5, 2024
252f68d
Merge pull request #49 from nf-core/anndata_output
FloWuenne Jan 5, 2024
d245f99
Updated molkart-local container version.
FloWuenne Jan 5, 2024
f5abf0d
Added changes to changelog.
FloWuenne Jan 6, 2024
7aa97ec
Merge pull request #50 from nf-core/molkart_local_fix
FloWuenne Jan 6, 2024
6ab6e27
Fixed maskfilter bug.
FloWuenne Jan 8, 2024
c0a4b43
Fixed Changelog typo.
FloWuenne Jan 8, 2024
81eafe9
Merge pull request #51 from nf-core/molkartqc_hotfix
kbestak Jan 8, 2024
a535b30
updated modules
kbestak Jan 16, 2024
0660f03
Adapted pipeline to new mindagap version
kbestak Jan 16, 2024
2de50b4
removed mindagap todo
kbestak Jan 16, 2024
a6fcde6
updated changelog
kbestak Jan 16, 2024
8307d1f
fixed test.config
kbestak Jan 16, 2024
829503b
updated usage
kbestak Jan 16, 2024
155d9c2
update ci.yml
kbestak Jan 16, 2024
1aaaf42
attempt at better ci
kbestak Jan 16, 2024
e7bce41
attempt at ci
kbestak Jan 16, 2024
68d0b15
ci attempt
kbestak Jan 16, 2024
950ab23
ci attempt
kbestak Jan 16, 2024
be09362
ci attempt
kbestak Jan 16, 2024
b8e7530
ci attempt
kbestak Jan 16, 2024
c33fdc6
removed singularity from ci test
kbestak Jan 16, 2024
59c7ece
updated base.config
kbestak Jan 16, 2024
181c2ac
metromap and logo update
kbestak Jan 19, 2024
f37b992
Revert "metromap and logo update"
kbestak Jan 19, 2024
a81bb19
reverted previous commit and updated metromap
kbestak Jan 19, 2024
6d5f606
[automated] Fix linting with Prettier
nf-core-bot Jan 19, 2024
ae4c361
Update test_full.config
FloWuenne Jan 24, 2024
a729ac4
Merge pull request #52 from kbestak/todo_module_update
kbestak Jan 24, 2024
7496468
updated mesmer to exlude leftover todo
kbestak Jan 24, 2024
cb9e81f
Merge pull request #53 from nf-core/version_bump
kbestak Jan 24, 2024
14841ae
version bump 1.0.0
kbestak Jan 24, 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
9 changes: 5 additions & 4 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "nfcore",
"image": "nfcore/gitpod:latest",
"remoteUser": "gitpod",
"runArgs": ["--privileged"],

// Configure tool-specific properties.
"customizations": {
Expand All @@ -17,11 +18,11 @@
"python.linting.flake8Path": "/opt/conda/bin/flake8",
"python.linting.pycodestylePath": "/opt/conda/bin/pycodestyle",
"python.linting.pydocstylePath": "/opt/conda/bin/pydocstyle",
"python.linting.pylintPath": "/opt/conda/bin/pylint"
"python.linting.pylintPath": "/opt/conda/bin/pylint",
},

// Add the IDs of extensions you want installed when the container is created.
"extensions": ["ms-python.python", "ms-python.vscode-pylance", "nf-core.nf-core-extensionpack"]
}
}
"extensions": ["ms-python.python", "ms-python.vscode-pylance", "nf-core.nf-core-extensionpack"],
},
},
}
8 changes: 6 additions & 2 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ Please use the pre-filled template to save time.
However, don't be put off by this template - other more general issues and suggestions are welcome!
Contributions to the code are even more welcome ;)

> If you need help using or modifying nf-core/molkart then the best place to ask is on the nf-core Slack [#molkart](https://nfcore.slack.com/channels/molkart) channel ([join our Slack here](https://nf-co.re/join/slack)).
:::info
If you need help using or modifying nf-core/molkart then the best place to ask is on the nf-core Slack [#molkart](https://nfcore.slack.com/channels/molkart) channel ([join our Slack here](https://nf-co.re/join/slack)).
:::

## Contribution workflow

Expand All @@ -25,6 +27,9 @@ If you're not used to this workflow with git, you can start with some [docs from

## Tests

You can optionally test your changes by running the pipeline locally. Then it is recommended to use the `debug` profile to
receive warnings about process selectors and other debug info. Example: `nextflow run . -profile debug,test,docker --outdir <OUTDIR>`.

When you create a pull request with changes, [GitHub Actions](https://github.com/features/actions) will run automatic tests.
Typically, pull-requests are only fully reviewed when these tests are passing, though of course we can help out before then.

Expand Down Expand Up @@ -116,4 +121,3 @@ To get started:
Devcontainer specs:

- [DevContainer config](.devcontainer/devcontainer.json)
- [Dockerfile](.devcontainer/Dockerfile)
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ body:
attributes:
label: System information
description: |
* Nextflow version _(eg. 22.10.1)_
* Nextflow version _(eg. 23.04.0)_
* Hardware _(eg. HPC, Desktop, Cloud)_
* Executor _(eg. slurm, local, awsbatch)_
* Container engine: _(e.g. Docker, Singularity, Conda, Podman, Shifter, Charliecloud, or Apptainer)_
Expand Down
1 change: 1 addition & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Learn more about contributing: [CONTRIBUTING.md](https://github.com/nf-core/molk
- [ ] If necessary, also make a PR on the nf-core/molkart _branch_ on the [nf-core/test-datasets](https://github.com/nf-core/test-datasets) repository.
- [ ] Make sure your code lints (`nf-core 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.
- [ ] `CHANGELOG.md` is updated.
Expand Down
14 changes: 8 additions & 6 deletions .github/workflows/awsfulltest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,23 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Launch workflow via tower
uses: seqeralabs/action-tower-launch@v1
# 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)
# on the `test_full.config` test runs with only one set of parameters
uses: seqeralabs/action-tower-launch@v2
with:
workspace_id: ${{ secrets.TOWER_WORKSPACE_ID }}
access_token: ${{ secrets.TOWER_ACCESS_TOKEN }}
compute_env: ${{ secrets.TOWER_COMPUTE_ENV }}
revision: ${{ github.sha }}
workdir: s3://${{ secrets.AWS_S3_BUCKET }}/work/molkart/work-${{ github.sha }}
parameters: |
{
"hook_url": "${{ secrets.MEGATESTS_ALERTS_SLACK_HOOK_URL }}",
"outdir": "s3://${{ secrets.AWS_S3_BUCKET }}/molkart/results-${{ github.sha }}"
}
profiles: test_full,aws_tower
profiles: test_full

- uses: actions/upload-artifact@v3
with:
name: Tower debug log file
path: tower_action_*.log
path: |
tower_action_*.log
tower_action_*.json
10 changes: 7 additions & 3 deletions .github/workflows/awstest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,22 @@ jobs:
steps:
# Launch workflow using Tower CLI tool action
- name: Launch workflow via tower
uses: seqeralabs/action-tower-launch@v1
uses: seqeralabs/action-tower-launch@v2
with:
workspace_id: ${{ secrets.TOWER_WORKSPACE_ID }}
access_token: ${{ secrets.TOWER_ACCESS_TOKEN }}
compute_env: ${{ secrets.TOWER_COMPUTE_ENV }}
revision: ${{ github.sha }}
workdir: s3://${{ secrets.AWS_S3_BUCKET }}/work/molkart/work-${{ github.sha }}
parameters: |
{
"outdir": "s3://${{ secrets.AWS_S3_BUCKET }}/molkart/results-test-${{ github.sha }}"
}
profiles: test,aws_tower
profiles: test

- uses: actions/upload-artifact@v3
with:
name: Tower debug log file
path: tower_action_*.log
path: |
tower_action_*.log
tower_action_*.json
87 changes: 76 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,43 +1,108 @@
name: nf-core CI
# This workflow runs the pipeline with the minimal test dataset to check that it completes without any syntax errors
name: nf-core CI
on:
push:
branches:
- dev
- "dev"
pull_request:
branches:
- "dev"
- "master"
release:
types: [published]

env:
NXF_ANSI_LOG: false
NFTEST_VER: "0.8.2"

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

jobs:
list:
name: List Tests
if: "${{ github.event_name != 'push' || (github.event_name == 'push' && github.repository == 'nf-core/molkart') }}"
outputs:
# Expose matched filters as job 'modules' output variable
tests: ${{ steps.list.outputs.tests }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Setup Nextflow
uses: nf-core/setup-nextflow@v1

- name: Install nf-test
if: steps.cache-software.outputs.cache-hit != 'true'
run: |
wget -qO- https://code.askimed.com/install/nf-test | bash
sudo mv nf-test /usr/local/bin/

- name: List nf-test
id: list
run: |
echo "tests=$(nf-test list --silent --format=json)" >> "$GITHUB_OUTPUT"

test:
name: Run pipeline with test data
name: ${{ matrix.tags }} (${{ matrix.profile }}-${{ matrix.NXF_VER }})
# 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/molkart') }}"
if: needs.list.outputs.tests != '[]'
needs: [list]
runs-on: ubuntu-latest
strategy:
matrix:
NXF_VER:
- "22.10.1"
- "23.04.0"
- "latest-everything"
profile: ["docker"] #TODO add "singularity"
test: ["${{ fromJson(needs.list.outputs.tests) }}"]

steps:
- name: Check out pipeline code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Cache Nextflow installation
id: cache-software
uses: actions/cache@v3
with:
path: |
/usr/local/bin/nf-test
/home/runner/.nf-test/nf-test.jar
key: molkart-${{ runner.os }}-${{ matrix.NXF_VER }}

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

- 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: Install nf-test
if: steps.cache-software.outputs.cache-hit != 'true'
run: |
wget -qO- https://code.askimed.com/install/nf-test | bash
sudo mv nf-test /usr/local/bin/

- name: Set up Singularity
if: matrix.profile == 'singularity'
uses: eWaterCycle/setup-singularity@v5
with:
singularity-version: 3.7.1

- name: Run nf-test
run: |
nf-test test \
--profile="test,${{ matrix.profile }}" \
${{ matrix.test }} \
--junitxml=${{ matrix.test }}-${{ matrix.profile }}.xml

- name: Publish Test Report
uses: mikepenz/action-junit-report@v3
if: success() || failure() # run this step even if previous step failed
with:
path: ${{ matrix.test }}-${{ matrix.profile }}.xml

- name: Output log on failure
if: failure()
run: |
nextflow run ${GITHUB_WORKSPACE} -profile test,docker --outdir ./results
sudo apt install bat > /dev/null
batcat --decorations=always --color=always ${{ github.workspace }}/.nf-test/tests/*/output/pipeline_info/software_versions.yml
4 changes: 2 additions & 2 deletions .github/workflows/fix-linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
steps:
# Use the @nf-core-bot token to check out so we can push later
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
token: ${{ secrets.nf_core_bot_auth_token }}

Expand All @@ -24,7 +24,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.nf_core_bot_auth_token }}

- uses: actions/setup-node@v3
- uses: actions/setup-node@v4

- name: Install Prettier
run: npm install -g prettier @prettier/plugin-php
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ jobs:
EditorConfig:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: actions/setup-node@v3
- uses: actions/setup-node@v4

- name: Install editorconfig-checker
run: npm install -g editorconfig-checker
Expand All @@ -27,9 +27,9 @@ jobs:
Prettier:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: actions/setup-node@v3
- uses: actions/setup-node@v4

- name: Install Prettier
run: npm install -g prettier
Expand All @@ -40,7 +40,7 @@ jobs:
PythonBlack:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Check code lints with Black
uses: psf/black@stable
Expand Down Expand Up @@ -71,14 +71,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out pipeline code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install Nextflow
uses: nf-core/setup-nextflow@v1

- uses: actions/setup-python@v4
with:
python-version: "3.8"
python-version: "3.11"
architecture: "x64"

- name: Install dependencies
Expand Down
68 changes: 68 additions & 0 deletions .github/workflows/release-announcements.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: release-announcements
# Automatic release toot and tweet anouncements
on:
release:
types: [published]
workflow_dispatch:

jobs:
toot:
runs-on: ubuntu-latest
steps:
- uses: rzr/fediverse-action@master
with:
access-token: ${{ secrets.MASTODON_ACCESS_TOKEN }}
host: "mstdn.science" # custom host if not "mastodon.social" (default)
# GitHub event payload
# https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#release
message: |
Pipeline release! ${{ github.repository }} v${{ github.event.release.tag_name }} - ${{ github.event.release.name }}!

Please see the changelog: ${{ github.event.release.html_url }}

send-tweet:
runs-on: ubuntu-latest

steps:
- uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install dependencies
run: pip install tweepy==4.14.0
- name: Send tweet
shell: python
run: |
import os
import tweepy

client = tweepy.Client(
access_token=os.getenv("TWITTER_ACCESS_TOKEN"),
access_token_secret=os.getenv("TWITTER_ACCESS_TOKEN_SECRET"),
consumer_key=os.getenv("TWITTER_CONSUMER_KEY"),
consumer_secret=os.getenv("TWITTER_CONSUMER_SECRET"),
)
tweet = os.getenv("TWEET")
client.create_tweet(text=tweet)
env:
TWEET: |
Pipeline release! ${{ github.repository }} v${{ github.event.release.tag_name }} - ${{ github.event.release.name }}!

Please see the changelog: ${{ github.event.release.html_url }}
TWITTER_CONSUMER_KEY: ${{ secrets.TWITTER_CONSUMER_KEY }}
TWITTER_CONSUMER_SECRET: ${{ secrets.TWITTER_CONSUMER_SECRET }}
TWITTER_ACCESS_TOKEN: ${{ secrets.TWITTER_ACCESS_TOKEN }}
TWITTER_ACCESS_TOKEN_SECRET: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }}

bsky-post:
runs-on: ubuntu-latest
steps:
- uses: zentered/[email protected]
with:
post: |
Pipeline release! ${{ github.repository }} v${{ github.event.release.tag_name }} - ${{ github.event.release.name }}!

Please see the changelog: ${{ github.event.release.html_url }}
env:
BSKY_IDENTIFIER: ${{ secrets.BSKY_IDENTIFIER }}
BSKY_PASSWORD: ${{ secrets.BSKY_PASSWORD }}
#
9 changes: 8 additions & 1 deletion .gitpod.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
image: nfcore/gitpod:latest

tasks:
- name: Update Nextflow and setup pre-commit
command: |
pre-commit install --install-hooks
nextflow self-update
- name: unset JAVA_TOOL_OPTIONS
command: |
unset JAVA_TOOL_OPTIONS
vscode:
extensions: # based on nf-core.nf-core-extensionpack
- codezombiech.gitignore # Language support for .gitignore files
Expand Down
Loading
Loading