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 v1.9.0 #239

Open
wants to merge 199 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
199 commits
Select commit Hold shift + click to select a range
aafc92f
back to dev
nvnieuwk Sep 30, 2024
d45cf25
fix WES validation
nvnieuwk Oct 1, 2024
76ed721
add --squash-ploidy to vcfeval
nvnieuwk Oct 1, 2024
ab6ffb1
fix vcfanno input
nvnieuwk Oct 3, 2024
80cdc60
fix vardict flow
nvnieuwk Oct 3, 2024
4fc3da0
some dbsnp fixes
nvnieuwk Oct 3, 2024
bee2757
some concat fixes
nvnieuwk Oct 3, 2024
053c567
move some index creation around
nvnieuwk Oct 3, 2024
433e46d
fix WGS updio
nvnieuwk Oct 7, 2024
dee3f8a
add a --min_callable_coverage parameter
nvnieuwk Oct 7, 2024
f248f45
update changelog
nvnieuwk Oct 7, 2024
87527a7
update changelog
nvnieuwk Oct 7, 2024
c0cb243
fix bcftools filter
nvnieuwk Oct 8, 2024
2d0a27f
create bgzipped vcfs after filtering
nvnieuwk Oct 8, 2024
aeff56b
bump ci back to stable nf-core
nvnieuwk Oct 8, 2024
44bbf65
small typo in the actions
nvnieuwk Oct 8, 2024
c539c6f
bump read yml action
nvnieuwk Oct 8, 2024
fbcb019
fix validate snap
nvnieuwk Oct 8, 2024
185cf23
fix vardict snap
nvnieuwk Oct 8, 2024
f3d5642
fix updio test
nvnieuwk Oct 8, 2024
9444ea7
fix vardict snap
nvnieuwk Oct 8, 2024
599216a
fix vardict snap
nvnieuwk Oct 8, 2024
1909ac9
Merge pull request #204 from nf-cmgg/fix-WES-validation
nvnieuwk Oct 10, 2024
539c12c
update docs
nvnieuwk Oct 10, 2024
b7c9cf2
re-add monochrome_logs
nvnieuwk Oct 10, 2024
7f8406d
Merge pull request #205 from nf-cmgg/update-docs
nvnieuwk Oct 10, 2024
a505741
add skip features to nf-core.yml
nvnieuwk Oct 10, 2024
0782962
Template update for nf-core/tools version 3.0.1
nvnieuwk Oct 10, 2024
2eace1a
Merge branch 'TEMPLATE' into template-v3.0.1
nvnieuwk Oct 10, 2024
5f1407b
fix weird merge conflicts
nvnieuwk Oct 10, 2024
0b1d16a
add cmgg ascii art
nvnieuwk Oct 10, 2024
8155cde
pre-commit
nvnieuwk Oct 10, 2024
30a6abe
make nf-core lint happy
nvnieuwk Oct 11, 2024
5d7dfec
revert base.config
nvnieuwk Oct 11, 2024
b3f88cd
Merge pull request #206 from nf-cmgg/template-v3.0.1
nvnieuwk Oct 11, 2024
24d4518
bump all modules
nvnieuwk Oct 11, 2024
411a6bb
make linting happy
nvnieuwk Oct 11, 2024
43c27bf
fix template comment ci action
nvnieuwk Oct 11, 2024
6d33f7e
Merge pull request #208 from nf-cmgg/bump-modules
nvnieuwk Oct 11, 2024
29fce2f
remove if statements from modules.config
nvnieuwk Oct 11, 2024
0f11699
update local modules
nvnieuwk Oct 11, 2024
54e1a2f
update subwfs part 1
nvnieuwk Oct 14, 2024
edc900e
update subwfs part 2
nvnieuwk Oct 14, 2024
dd9ea16
update subwfs part 3
nvnieuwk Oct 14, 2024
ad0b7c6
update germline.nf
nvnieuwk Oct 14, 2024
852e2f1
add a comment to main.nf
nvnieuwk Oct 14, 2024
3309f0b
harshil align config
nvnieuwk Oct 14, 2024
fcd6de7
listen to matthias (he's enjoying this probably ;))
nvnieuwk Oct 14, 2024
ce3589f
nf-core lint
nvnieuwk Oct 14, 2024
c7d1fb2
fix validation subwf test
nvnieuwk Oct 14, 2024
790af14
fix annotation subwf tests
nvnieuwk Oct 14, 2024
b738729
template 3.0.1
nvnieuwk Oct 18, 2024
72f31e2
remove template version comment CI
nvnieuwk Oct 18, 2024
f6a8951
fix some syntax in nf-core modules
nvnieuwk Oct 18, 2024
3df7400
update annotation subwf
nvnieuwk Oct 21, 2024
65f662f
Merge pull request #210 from nf-cmgg/ben-made-me-do-more
nvnieuwk Oct 21, 2024
99cbaae
move bam conversion to cram_prepare_samtools_bedtools
nvnieuwk Oct 23, 2024
ebb3630
separate dbnsp annotation from vardictjava subwf
nvnieuwk Oct 23, 2024
6a35da1
move filtering to the main wf
nvnieuwk Oct 23, 2024
9350160
move genotyping out of the gatk4 subwf
nvnieuwk Oct 23, 2024
10fa33c
add elprep
nvnieuwk Oct 23, 2024
4e970d5
fix typo
nvnieuwk Oct 23, 2024
59623f1
fix some small issues
nvnieuwk Oct 23, 2024
fc26fe4
correct channels
nvnieuwk Oct 24, 2024
660a809
fix dbsnp subwf
nvnieuwk Oct 24, 2024
db31f34
fix dbsnp flow issue
nvnieuwk Nov 4, 2024
8b72777
fix wrong map + resources
nvnieuwk Nov 4, 2024
de1f449
update vardict flow
nvnieuwk Nov 4, 2024
3ae299d
small memory fix
nvnieuwk Nov 4, 2024
23729f7
update nf-test ci command
nvnieuwk Nov 4, 2024
ef5a811
nf-test ci updates
nvnieuwk Nov 4, 2024
5afc3f3
use sharding and filters on nf-test
nvnieuwk Nov 4, 2024
7d28f4d
update test name
nvnieuwk Nov 4, 2024
9e736b0
fix env issue in ci
nvnieuwk Nov 4, 2024
2fd1b38
fix env issue in ci
nvnieuwk Nov 4, 2024
f4654f0
module -> process in ci
nvnieuwk Nov 4, 2024
aa015fc
update fetch depth in ci
nvnieuwk Nov 4, 2024
c444fa5
add test for bam_call_elprep
nvnieuwk Nov 4, 2024
acf18e8
fix some more tests
nvnieuwk Nov 5, 2024
3faa540
more test fixes
nvnieuwk Nov 5, 2024
76a86a2
fix elprep/filter test
nvnieuwk Nov 5, 2024
6eaf981
fix linting + reimplement only_call and only_merge
nvnieuwk Nov 5, 2024
0e2f0fc
add some out channels as preparation for the new output definitions
nvnieuwk Nov 5, 2024
f803ac1
migrate to new workflow output definitions
nvnieuwk Nov 6, 2024
dd0aebf
eclint
nvnieuwk Nov 6, 2024
574f6b1
fix some tests
nvnieuwk Nov 6, 2024
e454685
fix more workflow tests
nvnieuwk Nov 6, 2024
e0dfcc8
readd some missing pipeline outputs
nvnieuwk Nov 7, 2024
fec36e2
new output structure
nvnieuwk Nov 7, 2024
0e7514e
Merge pull request #212 from nf-cmgg/new-flow-elprep
nvnieuwk Nov 12, 2024
47d8b12
Fix some resources (#220)
matthdsm Nov 12, 2024
e9b66ce
Merge branch 'dev' into output-defs
nvnieuwk Nov 12, 2024
245d1ff
fix resource usage and patch modules
matthdsm Nov 13, 2024
a549085
Merge branch 'dev' into output-defs
nvnieuwk Nov 13, 2024
5ea5def
vcf2db: restore ext.args
matthdsm Nov 13, 2024
fe3e27a
Merge pull request #221 from nf-cmgg/fix/typo
nvnieuwk Nov 13, 2024
5fe9af7
Merge branch 'dev' into output-defs
nvnieuwk Nov 13, 2024
483030b
fix tests
nvnieuwk Nov 13, 2024
bd267d1
Merge branch 'output-defs' into new-output-dir
nvnieuwk Nov 13, 2024
ef6c85d
fix linting
nvnieuwk Nov 13, 2024
a9cdb54
fix genomes in summary
nvnieuwk Nov 13, 2024
edc8b69
pre-commit
nvnieuwk Nov 13, 2024
f51c2a9
fix utils_nextflow_pipeline
nvnieuwk Nov 13, 2024
597a12e
automap tests
nvnieuwk Nov 13, 2024
b896143
test filter_beds
nvnieuwk Nov 13, 2024
b3a28df
Merge pull request #213 from nf-cmgg/output-defs
nvnieuwk Nov 14, 2024
4f200f1
test updio and merge_beds
nvnieuwk Nov 14, 2024
f6165bf
pre-commit
nvnieuwk Nov 14, 2024
b0236dd
move subwf tests to the subwf folder
nvnieuwk Nov 14, 2024
ddb39a2
add restrictions on sample and family name
nvnieuwk Nov 14, 2024
da5d1f8
update rtgtools/format
nvnieuwk Nov 14, 2024
2830175
Merge branch 'nf-test-local-modules' into nf-test-local-subworkflows
nvnieuwk Nov 14, 2024
9d4db4f
test vcf_concat_bcftools
nvnieuwk Nov 14, 2024
5d1f117
test vcf_filter_bcftools
nvnieuwk Nov 14, 2024
37f15b5
add a test coverage ci comment
nvnieuwk Nov 14, 2024
d24dc42
pre-commit
nvnieuwk Nov 14, 2024
883a606
print out the coverage in the ci logs
nvnieuwk Nov 14, 2024
53a3f76
fix missing $ in coverage action
nvnieuwk Nov 14, 2024
de81099
update shell
nvnieuwk Nov 14, 2024
df481a3
try another method
nvnieuwk Nov 14, 2024
81ae13b
use env instead
nvnieuwk Nov 14, 2024
8a62fad
use another env method
nvnieuwk Nov 14, 2024
816d411
use another env method
nvnieuwk Nov 14, 2024
1feca5f
try even more methods
nvnieuwk Nov 14, 2024
c8c0fa3
convert points to -
nvnieuwk Nov 14, 2024
4b495e3
fix wrongly place quote
nvnieuwk Nov 14, 2024
94af572
retrigger ci tests
nvnieuwk Nov 14, 2024
fd97047
forget coverage
nvnieuwk Nov 14, 2024
6611a85
add triggers for full test runs
nvnieuwk Nov 14, 2024
344f240
run all tests on PRs to main
nvnieuwk Nov 14, 2024
382e015
fix if statement
nvnieuwk Nov 14, 2024
8c50b03
fix test vcf_ped_rtgtools + fix ci
nvnieuwk Nov 14, 2024
62a054b
fix cram prepare subwf tests
nvnieuwk Nov 14, 2024
300ee2b
fix more workflow tests
nvnieuwk Nov 14, 2024
b8fbdce
set test dir to root of repo
nvnieuwk Nov 14, 2024
93e956f
don't do disk space cleanup anymore
nvnieuwk Nov 14, 2024
9225ed9
first changes
nvnieuwk Nov 18, 2024
0ea6884
update output docs
nvnieuwk Nov 18, 2024
1abbef5
update the docs some more
nvnieuwk Nov 18, 2024
03d7c4a
lower all gatk4 resources
matthdsm Nov 19, 2024
ffcc9ca
Merge pull request #225 from nf-cmgg/fix/gatk4-resources
nvnieuwk Nov 19, 2024
63db893
Merge pull request #222 from nf-cmgg/new-output-dir
nvnieuwk Nov 19, 2024
0c82afb
bump vcf2db
matthdsm Nov 19, 2024
7648ead
Merge pull request #223 from nf-cmgg/nf-test-local-modules
nvnieuwk Nov 19, 2024
7caeeae
update metro map + changelog
nvnieuwk Nov 19, 2024
1458805
fix tests
nvnieuwk Nov 19, 2024
50e46d4
more metro map updates
nvnieuwk Nov 19, 2024
507c403
Merge pull request #226 from nf-cmgg/bump/vcf2db
nvnieuwk Nov 19, 2024
ad4e678
prettier
nvnieuwk Nov 19, 2024
c33262b
Merge pull request #224 from nf-cmgg/nf-test-local-subworkflows
nvnieuwk Nov 19, 2024
4b5e898
detect HOOK_URL from env
matthdsm Nov 20, 2024
deac9d5
Merge pull request #228 from nf-cmgg/fix/hook-url
nvnieuwk Nov 20, 2024
ecf67ab
replace dots with underscores
nvnieuwk Nov 20, 2024
c941b52
Merge pull request #230 from nf-cmgg/fix-broken-family-names
nvnieuwk Nov 20, 2024
9d84402
final small tweaks to the metro map
nvnieuwk Nov 20, 2024
02a356d
Merge branch 'dev' into docs-update
nvnieuwk Nov 20, 2024
a679929
Merge pull request #227 from nf-cmgg/docs-update
nvnieuwk Nov 20, 2024
fb4b411
fix build docs
nvnieuwk Nov 20, 2024
d5e96eb
Merge pull request #231 from nf-cmgg/fix-docs-build
nvnieuwk Nov 20, 2024
6b3841c
try to fix docs building
nvnieuwk Nov 20, 2024
34bcdba
try to fix docs building again
nvnieuwk Nov 20, 2024
91d9102
try to fix docs building again
nvnieuwk Nov 20, 2024
71afc79
try to fix docs building again again
nvnieuwk Nov 20, 2024
b5c01d1
do a deep dive in broken docs ci
nvnieuwk Nov 20, 2024
88cefa4
finally fixed?
nvnieuwk Nov 20, 2024
0957b03
fix mosdepth test
nvnieuwk Nov 20, 2024
a2c5f7e
set genotypegvcfs to process_single
matthdsm Nov 22, 2024
fb6a4e3
add some new custom profiles (#229)
nvnieuwk Nov 22, 2024
40db922
fix typo
matthdsm Nov 22, 2024
5a7e855
Merge pull request #232 from nf-cmgg/lower-gatk-resources-more
nvnieuwk Nov 25, 2024
624aa6b
fix output over multiple days
nvnieuwk Nov 25, 2024
3b669d3
Merge pull request #234 from nf-cmgg/fix-output-definitions-for-long-…
nvnieuwk Nov 25, 2024
fc16552
fix only_call and only_merge (#235)
nvnieuwk Nov 25, 2024
169c7a6
fix family name issues
nvnieuwk Nov 25, 2024
1d12585
Merge pull request #236 from nf-cmgg/fix-family-name
nvnieuwk Nov 25, 2024
11fb1e0
fix prepare join issue (#238)
nvnieuwk Nov 25, 2024
b3e30be
bump to 1.9.0
nvnieuwk Nov 26, 2024
5b9102a
try to fix CI
nvnieuwk Nov 26, 2024
2ea45e0
try to fix CI
nvnieuwk Nov 26, 2024
5576499
try to fix CI
nvnieuwk Nov 26, 2024
bd82dae
fix version in nf-core.yml
nvnieuwk Nov 26, 2024
ea18202
add somalier reports to multiqc output
nvnieuwk Nov 26, 2024
753069f
update changelog
nvnieuwk Nov 26, 2024
6f24618
fix build-docs issue
nvnieuwk Nov 26, 2024
20e256a
Merge pull request #240 from nf-cmgg/multiqc-test-somalier
nvnieuwk Nov 26, 2024
8133a49
Remove output suffix param (#243)
nvnieuwk Dec 2, 2024
c8882b5
add multiqc_data to output (#242)
nvnieuwk Dec 2, 2024
1ff7350
restore default mem for VEP
matthdsm Dec 6, 2024
7bbf25a
update profiles
nvnieuwk Dec 6, 2024
51706fd
Merge pull request #245 from nf-cmgg/fix/VEP_mem
nvnieuwk Dec 6, 2024
2545d00
remove maxentscan from seqplorer config
nvnieuwk Dec 9, 2024
c5dad33
Merge pull request #246 from nf-cmgg/update-profiles
nvnieuwk Dec 9, 2024
805dd73
force tabix to overwrite
matthdsm Dec 9, 2024
c1e9bdd
Merge pull request #247 from nf-cmgg/fix/force_tabix
nvnieuwk Dec 9, 2024
523c7a9
add updio and automap to wes profile (#248)
nvnieuwk Dec 12, 2024
ff80be2
update vcf2db
nvnieuwk Dec 13, 2024
719004f
Fix config to let the tests run correctly
nvnieuwk Dec 13, 2024
5cb9e2c
Merge pull request #249 from nf-cmgg/update-vcf2db
nvnieuwk Dec 13, 2024
e8451ab
set vcf32db to process_single
matthdsm Dec 13, 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
12 changes: 6 additions & 6 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ If you'd like to write some code for nf-cmgg/germline, the standard workflow is
1. Check that there isn't already an issue about your idea in the [nf-cmgg/germline issues](https://github.com/nf-cmgg/germline/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-cmgg/germline repository](https://github.com/nf-cmgg/germline) 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 @@ -37,7 +37,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 @@ -68,7 +68,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 @@ -79,11 +79,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 @@ -96,7 +96,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
32 changes: 10 additions & 22 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,46 +9,34 @@ body:
description: A clear and concise description of what the bug is.
validations:
required: true

- type: textarea
id: command_used
attributes:
label: Command used and terminal output
description: Steps to reproduce the behaviour. Please paste the command you used
to launch the pipeline and the output from your terminal.
description: Steps to reproduce the behaviour. Please paste the command you used to launch the pipeline and the output from your terminal.
render: console
placeholder: "$ nextflow run ...

placeholder: |
$ nextflow run ...

Some output where something broke

"
- type: textarea
id: files
attributes:
label: Relevant files
description: "Please drag and drop the relevant files here. Create a `.zip` archive
if the extension is not allowed.

Your verbose log file `.nextflow.log` is often useful _(this is a hidden file
in the directory where you launched the pipeline)_ as well as custom Nextflow
configuration files.
description: |
Please drag and drop the relevant files here. Create a `.zip` archive if the extension is not allowed.
Your verbose log file `.nextflow.log` is often useful _(this is a hidden file in the directory where you launched the pipeline)_ as well as custom Nextflow configuration files.

"
- type: textarea
id: system
attributes:
label: System information
description: "* Nextflow version _(eg. 23.04.0)_

description: |
* 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)_

* Container engine: _(e.g. Docker, Singularity, Conda, Podman, Shifter, Charliecloud, or Apptainer)_
* OS _(eg. CentOS Linux, macOS, Linux Mint)_

* Version of nf-cmgg/germline _(eg. 1.1, 1.5, 1.8.2)_

"
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Learn more about contributing: [CONTRIBUTING.md](https://github.com/nf-cmgg/germ
- [ ] This comment contains a description of changes (with reason).
- [ ] 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-cmgg/germline/tree/main/.github/CONTRIBUTING.md)
- [ ] 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
29 changes: 22 additions & 7 deletions .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,29 +13,44 @@ jobs:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # fetch all commits/branches

- uses: actions/setup-python@v4
with:
python-version: 3.x
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- name: Obtain version from nextflow config

- name: Fetch current date
id: date
run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_OUTPUT

- name: Read pipeline version from .nf-core.yml
uses: nichmor/minimal-read-yaml@v0.0.2
id: read_yml
with:
config: ${{ github.workspace }}/.nf-core.yml

- name: Parse version
id: version
run: |
version=$(grep "version" nextflow.config | tail -1 | sed -e s'/[^=]*= //' | cut -d "'" -f 2)
[[ $version == *"dev"* ]] && pipeline_version="dev" || pipeline_version=$version
echo "pipeline_version=$pipeline_version" >> $GITHUB_ENV
[[ ${{ steps.read_yml.outputs['template.version'] }} == *"dev"* ]] && pipeline_version="dev" || pipeline_version=${{ steps.read_yml.outputs['template.version'] }}
echo "version=$pipeline_version" >> $GITHUB_OUTPUT

- name: Setup git user
run: |
git config --global user.name "${{github.actor}}"
git config --global user.email "${{github.actor}}@users.noreply.github.com"
- uses: actions/cache@v3
with:
key: mkdocs-material-${{ env.cache_id }}
key: mkdocs-material-${{ steps.date.outputs.cache_id }}
path: .cache
restore-keys: |
mkdocs-material-

- name: Install dependencies
run: pip install mkdocs-material pymdown-extensions pillow cairosvg mike

- name: Build docs
run: |
[[ ${{ env.pipeline_version }} == "dev" ]] && mike deploy --push ${{ env.pipeline_version }} || mike deploy --push --update-aliases ${{ env.pipeline_version }} latest
[[ ${{ steps.version.outputs.version }} == "dev" ]] && mike deploy --push ${{ steps.version.outputs.version }} || mike deploy --push --update-aliases ${{ env.pipeline_version }} latest

- name: Set default docs
run: mike set-default --push latest
55 changes: 31 additions & 24 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,46 +1,36 @@
name: nf-core CI
# This workflow runs the pipeline with the minimal test dataset to check that it completes without any syntax errors
on:
push:
branches:
- dev
pull_request:
release:
types: [published]
workflow_dispatch:

env:
NXF_ANSI_LOG: false
NFT_MAX_SHARDS: 5
SOURCE_BRANCH: ${{ github.base_ref }}

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

jobs:
test_all:
name: Run nf-test with ${{ matrix.test }}-${{ matrix.NXF_VER }}
name: Run ${{ matrix.filter }} tests | shard ${{ matrix.shard }} (${{ 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-cmgg/germline') }}"
runs-on: ubuntu-latest
strategy:
matrix:
NXF_VER:
- "24.04.0"
- "24.10.0"
- "latest-everything"
test:
- "pipeline_default"
- "pipeline_callers"
- "pipeline_variations"
- "pipeline_variations2"
- "pipeline_gvcfs"
- "cram_call_genotype_gatk4"
- "cram_call_vardictjava"
- "cram_prepare_samtools_bedtools"
- "input_split_bedtools"
- "vcf_annotation"
- "vcf_extract_relate_somalier"
- "vcf_ped_rtgtools"
- "vcf_upd_updio"
- "vcf_validate_small_variants"
filter:
- "process"
- "workflow"
- "pipeline"
shard: [1, 2, 3, 4, 5]
steps:
- name: Free some space
run: |
Expand All @@ -51,22 +41,39 @@ jobs:

- name: Check out pipeline code
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4
with:
fetch-depth: 0

- name: Install 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: Disk space cleanup
# uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # v1.3.1

- name: Install nf-test
run: |
conda install -c bioconda nf-test

- name: Run pipeline with test data
- name: "Run ${{ matrix.filter }} tests (changed) | ${{ matrix.shard }}/${{ env.NFT_MAX_SHARDS }}"
if: ${{ env.SOURCE_BRANCH != 'main' }}
run: |
$CONDA/bin/nf-test test \
--ci \
--changed-since HEAD^ \
--shard ${{ matrix.shard }}/${{ env.NFT_MAX_SHARDS }} \
--filter ${{ matrix.filter }} \
--junitxml=default.xml

- name: "Run ${{ matrix.filter }} tests (all) | ${{ matrix.shard }}/${{ env.NFT_MAX_SHARDS }}"
if: ${{ env.SOURCE_BRANCH == 'main' }}
run: |
$CONDA/bin/nf-test test --tag ${{ matrix.test }} --junitxml=default.xml
$CONDA/bin/nf-test test \
--ci \
--shard ${{ matrix.shard }}/${{ env.NFT_MAX_SHARDS }} \
--filter ${{ matrix.filter }} \
--junitxml=default.xml

- name: Publish Test Report
uses: mikepenz/action-junit-report@v3
Expand Down
53 changes: 43 additions & 10 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,7 +8,7 @@ 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:
Expand Down Expand Up @@ -39,9 +39,11 @@ jobs:
with:
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 @@ -54,33 +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: 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: ./
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