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 v2.3.0 #666

Merged
merged 250 commits into from
Feb 13, 2025
Merged
Show file tree
Hide file tree
Changes from 249 commits
Commits
Show all changes
250 commits
Select commit Hold shift + click to select a range
3af2b52
add mito
ramprasadn Sep 13, 2024
a87672e
annotate
ramprasadn Sep 13, 2024
6dacbb6
bumpversion
ramprasadn Sep 13, 2024
505c2b8
align mt reads to mt and not genome
ramprasadn Sep 20, 2024
695ccc3
Merge pull request #610 from nf-core/bumpversion230
ramprasadn Sep 20, 2024
1a48be1
Merge branch 'dev' of github.com:nf-core/raredisease into mito
ramprasadn Sep 20, 2024
9575a7f
update changelog
ramprasadn Sep 20, 2024
2bb4586
include filter
ramprasadn Sep 24, 2024
537de87
update usage docs
ramprasadn Sep 24, 2024
099a566
prettier
ramprasadn Sep 24, 2024
a57f931
update docs
ramprasadn Sep 24, 2024
877cb31
lint
ramprasadn Sep 24, 2024
c3aacee
Merge pull request #608 from nf-core/mito
ramprasadn Sep 24, 2024
eb963ec
Merge branch 'dev' of github.com:nf-core/raredisease into bcftools-fi…
ramprasadn Sep 24, 2024
c1ddf4c
changelog
ramprasadn Sep 24, 2024
7d5e14e
fix declaration error
ramprasadn Sep 24, 2024
2a505df
allow vep 112
jemten Sep 24, 2024
1021df2
prettier
jemten Sep 24, 2024
69eb6a1
update docs
ramprasadn Sep 24, 2024
931fc00
lint
ramprasadn Sep 24, 2024
df4db70
Merge pull request #616 from nf-core/bcftools-filter
ramprasadn Sep 25, 2024
d509436
update README
ramprasadn Sep 25, 2024
39e473d
Merge branch 'dev' of github.com:nf-core/raredisease into dev
ramprasadn Sep 25, 2024
953316b
update module
ramprasadn Sep 25, 2024
5e177a2
remove enum on vep cache version
jemten Sep 25, 2024
e583e15
Merge branch 'dev' into add_vep_112_option
jemten Sep 25, 2024
985230b
Merge pull request #617 from nf-core/add_vep_112_option
ramprasadn Sep 26, 2024
63f36cf
Merge branch 'dev' into updatetabixbgzip
ramprasadn Sep 26, 2024
7da78ba
Merge pull request #618 from nf-core/updatetabixbgzip
ramprasadn Sep 26, 2024
64bea68
update modules
ramprasadn Sep 30, 2024
0e1f3b2
subworkflow changes
ramprasadn Sep 30, 2024
83cd078
update dv subworkflow
ramprasadn Sep 30, 2024
75be509
update changelog
ramprasadn Sep 30, 2024
ec580d8
remove deepvariant
ramprasadn Sep 30, 2024
5374f8d
add latest dv
ramprasadn Sep 30, 2024
a910e42
update align
ramprasadn Sep 30, 2024
d054431
Merge pull request #619 from nf-core/module_updates
ramprasadn Oct 1, 2024
da4223b
change prefix
ramprasadn Oct 1, 2024
fb3e15b
update output docs
ramprasadn Oct 1, 2024
f07fc19
update changelog [skip ci]
ramprasadn Oct 1, 2024
340124a
Merge branch 'dev' into filenamechange
ramprasadn Oct 1, 2024
a7b38b4
update output doc
ramprasadn Oct 1, 2024
c529371
Merge branch 'filenamechange' of github.com:nf-core/raredisease into …
ramprasadn Oct 1, 2024
43daf36
fix [skip ci]
ramprasadn Oct 1, 2024
78b7bca
Merge branch 'dev' of github.com:nf-core/raredisease into fixsamplech…
ramprasadn Oct 1, 2024
f0a965d
remove blank line [skip ci]
ramprasadn Oct 1, 2024
4a9b0ae
Update CHANGELOG.md
ramprasadn Oct 1, 2024
166269a
Merge pull request #620 from nf-core/filenamechange
ramprasadn Oct 1, 2024
7147c7e
Merge branch 'dev' into fixsamplechannel
ramprasadn Oct 1, 2024
42c5fec
updates
ramprasadn Oct 1, 2024
05516a1
Merge pull request #621 from nf-core/fixsamplechannel
ramprasadn Oct 1, 2024
e4bfde1
update sentieon
ramprasadn Oct 2, 2024
782271e
update sentieon configs and rtgeval workflow
ramprasadn Oct 2, 2024
3740b58
changelog
ramprasadn Oct 2, 2024
4655360
Merge branch 'dev' into module_updates
ramprasadn Oct 2, 2024
815d535
Update CHANGELOG.md
ramprasadn Oct 2, 2024
33aef2a
Merge pull request #623 from nf-core/module_updates
ramprasadn Oct 3, 2024
4f26c00
fix
ramprasadn Oct 4, 2024
f49a3bb
Merge pull request #624 from nf-core/fix-cadd
ramprasadn Oct 4, 2024
1ef0418
update genmod and multiqc
ramprasadn Oct 7, 2024
97852a6
update changelog
ramprasadn Oct 7, 2024
e7dcd27
Update CHANGELOG.md
ramprasadn Oct 7, 2024
a087573
Merge pull request #625 from nf-core/module_updates
ramprasadn Oct 8, 2024
744f05e
Template update for nf-core/tools version 3.0.0
nf-core-bot Oct 8, 2024
bbdf2a8
Template update for nf-core/tools version 3.0.1
nf-core-bot Oct 9, 2024
14a7134
Merge branch 'nf-core-template-merge-3.0.1' of github.com:nf-core/rar…
ramprasadn Oct 9, 2024
c99fdc5
schema update
ramprasadn Oct 10, 2024
4ef37f9
add genome attribute back to subworkflow
ramprasadn Oct 10, 2024
cc5e8ed
fix lint
ramprasadn Oct 10, 2024
61ea374
fix pre-commit
ramprasadn Oct 10, 2024
11f4bab
fix indent
ramprasadn Oct 11, 2024
bb4dd58
lint citations.md file
ramprasadn Oct 11, 2024
3374172
Merge pull request #629 from nf-core/template301
ramprasadn Oct 11, 2024
9c71d1c
Template update for nf-core/tools version 3.0.2
nf-core-bot Oct 11, 2024
9d58041
ensuring string comparrison
jemten Oct 13, 2024
8fdfea5
Merge branch 'dev' into nf-core-template-merge-3.0.2
ramprasadn Oct 14, 2024
d3c51a6
add stubs
ramprasadn Oct 14, 2024
dbb3e8f
Merge pull request #630 from nf-core/nf-core-template-merge-3.0.2
ramprasadn Oct 14, 2024
82ccca8
Merge branch 'dev' into string_comp
ramprasadn Oct 14, 2024
f94e6e2
Merge pull request #632 from nf-core/string_comp
jemten Oct 14, 2024
386302d
add bait regions to deepvariant
ramprasadn Oct 14, 2024
4b1b05f
update changelog
ramprasadn Oct 14, 2024
7e2d68a
Update CHANGELOG.md
ramprasadn Oct 15, 2024
d4f60d9
update schema
ramprasadn Oct 16, 2024
7e0cad7
Merge branch 'deepvar-for-regions' of github.com:nf-core/raredisease …
ramprasadn Oct 16, 2024
cdf7263
Merge pull request #633 from nf-core/deepvar-for-regions
ramprasadn Oct 16, 2024
7d669e7
updategcnvcaller
ramprasadn Oct 17, 2024
8348478
updaet changelog
ramprasadn Oct 17, 2024
b95861d
fix
jemten Oct 17, 2024
c9773e4
use target bed instead of bait intervals
ramprasadn Oct 18, 2024
1e875d4
add-fastp-to-multiqc
peterpru Oct 18, 2024
8acc45e
Merge pull request #635 from nf-core/mergegcnvcaller
ramprasadn Oct 20, 2024
d70f9a1
fix samplenames in multiqc report
ramprasadn Oct 21, 2024
1c7368d
Merge branch 'dev' into add-fastp-to-multiqc
ramprasadn Oct 21, 2024
7906d3c
update changelog
ramprasadn Oct 21, 2024
2839ae0
update changelog
ramprasadn Oct 21, 2024
a45198b
Merge pull request #637 from genomic-medicine-sweden/add-fastp-to-mul…
ramprasadn Oct 21, 2024
4c0d58a
Merge branch 'dev' into fix_fastqc_samplenames
ramprasadn Oct 21, 2024
b07efec
vep_update
ramprasadn Oct 21, 2024
4e7df98
update changelog
ramprasadn Oct 21, 2024
119070f
Merge branch 'dev' into vep_update113
rannick Oct 22, 2024
b3ff470
update conf
ramprasadn Oct 22, 2024
29d2047
Merge branch 'vep_update113' of github.com:nf-core/raredisease into v…
ramprasadn Oct 22, 2024
a628d51
add decompress
ramprasadn Oct 22, 2024
cce6cd1
Merge branch 'dev' into targetbedtodeepvariant
ramprasadn Oct 22, 2024
07dfe9a
update config
ramprasadn Oct 22, 2024
b2088de
Merge pull request #638 from nf-core/fix_fastqc_samplenames
ramprasadn Oct 22, 2024
24946a5
Merge branch 'dev' into targetbedtodeepvariant
ramprasadn Oct 22, 2024
45901d8
Update CHANGELOG.md
ramprasadn Oct 22, 2024
359d876
Merge branch 'dev' into vep_update113
ramprasadn Oct 22, 2024
610c023
Merge pull request #639 from nf-core/vep_update113
ramprasadn Oct 22, 2024
3df34f8
Merge branch 'dev' into targetbedtodeepvariant
ramprasadn Oct 22, 2024
31249da
Merge pull request #636 from nf-core/targetbedtodeepvariant
ramprasadn Oct 25, 2024
83d52d0
update createCaseChannel
jemten Oct 30, 2024
c76e493
update changelog
jemten Oct 30, 2024
4606957
linting
jemten Oct 30, 2024
86f0373
Merge branch 'dev' into upd_fix
jemten Oct 30, 2024
2eae461
Merge pull request #643 from genomic-medicine-sweden/upd_fix
jemten Nov 1, 2024
b1c74b1
add to bwa* workflow
ramprasadn Nov 6, 2024
4ada05b
add to sentieon
ramprasadn Nov 8, 2024
019668f
update changelog
ramprasadn Nov 8, 2024
1ff269b
add parameter to changelog
ramprasadn Nov 8, 2024
d7dd852
fix lint
ramprasadn Nov 8, 2024
4d2f4ab
update modules
ramprasadn Nov 10, 2024
1563213
fix subworkflows
ramprasadn Nov 10, 2024
cf07ac6
remove dump
ramprasadn Nov 10, 2024
49c09af
update changelog
ramprasadn Nov 11, 2024
d54401a
revert samtools view to previous version
ramprasadn Nov 11, 2024
d029b01
Update CHANGELOG.md
ramprasadn Nov 11, 2024
9519733
Merge pull request #646 from nf-core/update_gatk
ramprasadn Nov 11, 2024
2aad4b2
Merge branch 'dev' into samtools_view
ramprasadn Nov 11, 2024
22dc351
update usage
ramprasadn Nov 11, 2024
f3cfbef
Merge branch 'samtools_view' of github.com:nf-core/raredisease into s…
ramprasadn Nov 11, 2024
3d598b7
add file to multiqc input
peterpru Nov 11, 2024
ef2f644
add ngsbits output
peterpru Nov 11, 2024
cfc6aed
remove extra line
peterpru Nov 11, 2024
492d827
Merge branch 'dev' into add-fastp-to-multiqc
peterpru Nov 11, 2024
d2b1600
fix lint
ramprasadn Nov 11, 2024
cc9f6a1
add modules to multiqc
peterpru Nov 11, 2024
a30ab4b
fix parenthesis
peterpru Nov 11, 2024
bc87568
Update subworkflows/local/alignment/align_bwa_bwamem2_bwameme.nf
ramprasadn Nov 11, 2024
c98d063
Update subworkflows/local/alignment/align_sentieon.nf
ramprasadn Nov 11, 2024
afea4ff
Merge pull request #644 from nf-core/samtools_view
ramprasadn Nov 11, 2024
8a72c28
make fastp output optional
peterpru Nov 15, 2024
59a9911
make optional using if
peterpru Nov 15, 2024
85c1277
use align out
peterpru Nov 15, 2024
73e8505
add samplegender from sex_check
peterpru Nov 15, 2024
434d1c7
Merge branch 'dev' into add-fastp-to-multiqc
ramprasadn Nov 15, 2024
92004b2
add changelog
peterpru Nov 15, 2024
b8deb72
Update CHANGELOG.md
ramprasadn Nov 15, 2024
fa781f6
Merge pull request #647 from genomic-medicine-sweden/add-fastp-to-mul…
ramprasadn Nov 15, 2024
9359c38
update configs
ramprasadn Nov 20, 2024
9db24ed
vep
ramprasadn Nov 21, 2024
057c439
update docs
ramprasadn Nov 21, 2024
3898e14
fix lint
ramprasadn Nov 21, 2024
74d88aa
Update CHANGELOG.md
ramprasadn Nov 22, 2024
e615a7e
Merge pull request #648 from nf-core/update_configs
ramprasadn Nov 22, 2024
7dd3e4e
patch vep
ramprasadn Nov 25, 2024
1cf0539
Merge pull request #649 from nf-core/veppatch
ramprasadn Nov 25, 2024
8da2c0f
Template update for nf-core/tools version 3.1.0
nf-core-bot Dec 12, 2024
831abfd
Template update for nf-core/tools version 3.1.1
nf-core-bot Dec 20, 2024
4d649e3
Merge remote-tracking branch 'origin/nf-core-template-merge-3.1.1' in…
ramprasadn Jan 7, 2025
06b8c2e
fix samplename in repeat vcf
ramprasadn Jan 7, 2025
3fbae07
update rename module
ramprasadn Jan 7, 2025
1e410c6
Merge pull request #655 from nf-core/sync311
ramprasadn Jan 8, 2025
b619087
Merge branch 'dev' into fix_samplename
ramprasadn Jan 8, 2025
8ea8d23
Merge pull request #657 from nf-core/fix_samplename
ramprasadn Jan 8, 2025
e59d7d0
padding bed file
jemten Jan 8, 2025
a811f8f
fixing channels
jemten Jan 8, 2025
eeee41a
prefix for bgzipped bed file
jemten Jan 9, 2025
d78f6cc
update changelog
jemten Jan 9, 2025
d014fa8
adds citations
jemten Jan 9, 2025
de5c326
fixing parsing of sex in configs
jemten Jan 9, 2025
75dc4bc
updated changelog
jemten Jan 9, 2025
72eb1a5
bump multiqc version
peterpru Jan 9, 2025
49f6953
add version change to changelog
peterpru Jan 9, 2025
4d97d32
Merge pull request #660 from genomic-medicine-sweden/update-module-mu…
peterpru Jan 9, 2025
eeb6ad1
adressing comments
jemten Jan 9, 2025
fc62fb6
Merge branch 'dev' into pad_bed
jemten Jan 10, 2025
4e1bd88
Merge branch 'dev' into fix_sex
jemten Jan 10, 2025
41cd7fc
Merge pull request #658 from genomic-medicine-sweden/pad_bed
jemten Jan 10, 2025
4a84cb2
Merge branch 'dev' into fix_sex
jemten Jan 10, 2025
da6ee67
Merge pull request #659 from genomic-medicine-sweden/fix_sex
jemten Jan 10, 2025
8a1e98c
set meta.id for some input files
jemten Jan 10, 2025
456964f
added haplocheck to multiqc
fevac Jan 14, 2025
5b3b648
update changelog
fevac Jan 14, 2025
aae33b7
updated readme
fevac Jan 14, 2025
a5e6db7
document
fevac Jan 14, 2025
7a81697
first set of fixes
ramprasadn Jan 15, 2025
4e71e74
remove lib
ramprasadn Jan 15, 2025
120481c
update test_full
ramprasadn Jan 15, 2025
0a33037
Merge branch 'dev' into pre-release
ramprasadn Jan 15, 2025
2cf56ee
Merge pull request #664 from nf-core/pre-release
ramprasadn Jan 15, 2025
5156d1b
Merge branch 'dev' into fix_meta_id
jemten Jan 15, 2025
e7b3217
Merge branch 'dev' into haplocheck2multiqc
jemten Jan 15, 2025
dd764c0
Merge pull request #661 from nf-core/fix_meta_id
jemten Jan 16, 2025
d49d802
Merge branch 'dev' into haplocheck2multiqc
fevac Jan 17, 2025
497a280
publish haplocheck txt file
fevac Jan 17, 2025
f65ddcf
typo
fevac Jan 17, 2025
9c362b9
fix haplocheck options
fevac Jan 17, 2025
20dc974
fix running options
fevac Jan 17, 2025
f9c96cf
organise configs
fevac Jan 17, 2025
75d0219
update docs
fevac Jan 17, 2025
f7e3a86
todos
ramprasadn Jan 17, 2025
7b81142
Merge pull request #662 from nf-core/haplocheck2multiqc
fevac Jan 17, 2025
8d7fd4b
update contributors
ramprasadn Jan 17, 2025
6772067
Merge branch 'dev' of github.com:nf-core/raredisease into pre-release
ramprasadn Jan 17, 2025
12600ac
update config
ramprasadn Jan 17, 2025
08ae78a
update config
ramprasadn Jan 17, 2025
7bb78a3
update docs
ramprasadn Jan 17, 2025
bfe6440
Add Mei
ramprasadn Jan 17, 2025
517a8d1
remove TODO
ramprasadn Jan 17, 2025
644d53d
bump version
ramprasadn Jan 17, 2025
1c9eaa6
custom configs
ramprasadn Jan 17, 2025
47a41a5
Merge pull request #665 from nf-core/pre-release
ramprasadn Jan 17, 2025
5d325a4
Fix download tests
ramprasadn Jan 20, 2025
6ee6bcb
Merge branch 'dev' into pre-release
ramprasadn Jan 20, 2025
a76c9ba
remove template
ramprasadn Jan 20, 2025
30218ac
Merge pull request #667 from nf-core/pre-release
ramprasadn Jan 20, 2025
10c3016
Template update for nf-core/tools version 3.1.2
nf-core-bot Jan 20, 2025
a509643
Merge branch 'dev' into nf-core-template-merge-3.1.2
ramprasadn Jan 21, 2025
063ca04
lint
ramprasadn Jan 21, 2025
198378a
Update nextflow.config
ramprasadn Jan 21, 2025
9e20232
Merge pull request #668 from nf-core/nf-core-template-merge-3.1.2
ramprasadn Jan 21, 2025
9864840
Annick's review suggestions
ramprasadn Jan 22, 2025
6dfb6f1
prettier
ramprasadn Jan 22, 2025
565ef54
Merge pull request #669 from nf-core/ramPR
ramprasadn Jan 22, 2025
6e6352e
Template update for nf-core/tools version 3.2.0
nf-core-bot Jan 27, 2025
c9680fb
Merge remote-tracking branch 'origin/nf-core-template-merge-3.2.0' in…
ramprasadn Jan 27, 2025
d981bb2
fix lint
ramprasadn Jan 27, 2025
610308e
Merge pull request #671 from nf-core/sync320
ramprasadn Jan 28, 2025
e218bd3
update haplogrep3
ramprasadn Jan 28, 2025
48705d2
fix lint
ramprasadn Jan 28, 2025
f4da377
update path
ramprasadn Jan 28, 2025
7f0de75
Merge pull request #672 from nf-core/haplogrep3
ramprasadn Jan 29, 2025
cb2c7a6
Keep only SVs that PASS
ramprasadn Jan 29, 2025
f1c4ced
fix for wes
ramprasadn Jan 29, 2025
f2038cd
review suggestions
ramprasadn Jan 29, 2025
4a1fca0
Merge pull request #673 from nf-core/filtersvcalls
ramprasadn Jan 29, 2025
f151e50
report retroseq version
ramprasadn Jan 31, 2025
058b7a7
add version mitodel
ramprasadn Jan 31, 2025
9c3cc2a
modify versions
ramprasadn Jan 31, 2025
055ddf8
Merge pull request #674 from nf-core/versions
ramprasadn Jan 31, 2025
a49e41f
add skip_haplogrep3
ramprasadn Feb 4, 2025
de7b619
Merge pull request #675 from nf-core/skiphaplogrep3
ramprasadn Feb 4, 2025
32d2dc4
Update conf/modules/align_sentieon.config
ramprasadn Feb 12, 2025
2ffe1c3
Update conf/modules/prepare_references.config
ramprasadn Feb 12, 2025
8839546
Update raredisease.nf
ramprasadn Feb 12, 2025
e234526
Update CHANGELOG.md
ramprasadn Feb 12, 2025
e3a59c1
update rocrate
ramprasadn Feb 13, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
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/raredisease: Contributing Guidelines
# `nf-core/raredisease`: Contributing Guidelines

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

## Pipeline contribution conventions

To make the nf-core/raredisease 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/raredisease` 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/raredisease pipeline documentation](https://nf-co.re/raredisease/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/rare
- [ ] 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/raredisease/tree/master/.github/CONTRIBUTING.md)
- [ ] If necessary, also make a PR on the nf-core/raredisease _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>`).
- [ ] Ensure the test suite passes (`nextflow run . -profile test_one_sample,docker --outdir <OUTDIR>`).
- [ ] Check for unexpected warnings in debug mode (`nextflow run . -profile debug,test,docker --outdir <OUTDIR>`).
Expand Down
39 changes: 34 additions & 5 deletions .github/workflows/awsfulltest.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,50 @@
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/raredisease'
# 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/raredisease' && 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
# 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
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/raredisease'
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
44 changes: 34 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,40 +7,64 @@ 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/raredisease') }}"
runs-on: ubuntu-latest
strategy:
matrix:
NXF_VER:
- "23.04.0"
- "24.04.2"
- "latest-everything"
parameters:
- "-profile test,docker"
- "-profile test_one_sample,docker"
profile:
- "docker"
- "singularity"
test_name:
- "test"
- "test_one_sample"
isMaster:
- ${{ github.base_ref == 'master' }}
# Exclude conda and singularity on dev
exclude:
- 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
- name: Set up Apptainer
if: matrix.profile == 'singularity'
uses: eWaterCycle/setup-apptainer@main

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

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

- name: Run pipeline with test data
- name: "Run pipeline with test data ${{ matrix.NXF_VER }} | ${{ matrix.test_name }} | ${{ matrix.profile }}"
run: |
nextflow run ${GITHUB_WORKSPACE} ${{ matrix.parameters }} -stub --outdir ./results
nextflow run ${GITHUB_WORKSPACE} -profile ${{ matrix.test_name }},${{ matrix.profile }} -stub --outdir ./results
Loading