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 pipeline v1.0.0 #148

Merged
merged 373 commits into from
Feb 24, 2025
Merged
Show file tree
Hide file tree
Changes from 250 commits
Commits
Show all changes
373 commits
Select commit Hold shift + click to select a range
aca8e59
schema input
kubranarci Jun 24, 2024
d29cad9
Merge pull request #51 from nf-core/50-fix-wittyer
kubranarci Jun 24, 2024
0382daf
plot script fixed
kubranarci Jun 26, 2024
fa84663
Merge pull request #53 from nf-core/45-plotr-fix
kubranarci Jun 26, 2024
d7be511
rtgtools fix
kubranarci Jun 27, 2024
c9b2298
fix sample name
kubranarci Jun 27, 2024
bc52bc0
fix lint
kubranarci Jun 27, 2024
9f48833
fix lint new version update
kubranarci Jun 27, 2024
bfb95c7
rtgtools eval sample names
kubranarci Jun 28, 2024
4bb9fb6
txt to csv
kubranarci Jun 28, 2024
f9fe12e
prepy off
kubranarci Jun 28, 2024
29a348c
Merge pull request #56 from nf-core/54-make-rtgtools-format-optional
kubranarci Jun 28, 2024
3429248
add variant_extractor
kubranarci Jul 2, 2024
28e3231
add vcf_to_csv.py
kubranarci Jul 3, 2024
ee9e870
remove truvari phab
kubranarci Jul 3, 2024
e22485b
benchmark params structure
kubranarci Jul 3, 2024
2413c0b
remove unneccsary modules
kubranarci Jul 3, 2024
76aecda
fix params in schema
kubranarci Jul 4, 2024
2264f12
add new samples and fix r plot
kubranarci Jul 5, 2024
81ff2a1
bgzip added to variant_extractor
kubranarci Jul 5, 2024
3deb09d
vcf_to_csv.py changed
kubranarci Jul 8, 2024
32f03b1
svync input channel is fixed
kubranarci Jul 8, 2024
9c90ba4
Merge pull request #60 from nf-core/58-test-variant-extractor-for-svs
kubranarci Jul 9, 2024
fcfc570
Merge branch 'dev' into 32-svync-process-is-not-running-through
kubranarci Jul 9, 2024
b9e0c02
Update subworkflows/local/sv_vcf_conversion.nf
kubranarci Jul 9, 2024
96af984
Update subworkflows/local/sv_vcf_conversion.nf
kubranarci Jul 9, 2024
763085d
Merge pull request #61 from nf-core/32-svync-process-is-not-running-t…
kubranarci Jul 9, 2024
44efbc3
add reformat_header
kubranarci Jul 10, 2024
3278295
filter params changed
kubranarci Jul 10, 2024
12bcafb
stub to reformat_header
kubranarci Jul 10, 2024
89362ba
Merge pull request #63 from nf-core/57-fix-prepy-+-rtgtools-eval-comb
kubranarci Jul 10, 2024
e7d5068
add sample id meta and cnv workflow
kubranarci Jul 11, 2024
2b0f696
prepare full test germline hg37
kubranarci Jul 11, 2024
730e088
repair headers comparison vcfs
kubranarci Jul 15, 2024
8a2de01
Merge branch 'dev' into 14-add-config-for-svaba
kubranarci Jul 15, 2024
1330df2
add id to samplesheets
kubranarci Jul 15, 2024
a2e3836
Merge pull request #64 from nf-core/14-add-config-for-svaba
kubranarci Jul 15, 2024
794f236
add truth.config
kubranarci Jul 22, 2024
aaf753b
add itruth_ignore to bypass
kubranarci Jul 22, 2024
06a5d46
add sarek somatic testdata
kubranarci Jul 23, 2024
b7f499e
subsample multisample vcf
kubranarci Jul 24, 2024
88ff05c
fix merge
kubranarci Jul 25, 2024
f10f8a5
remove options statement
kubranarci Jul 25, 2024
be97327
Merge pull request #70 from nf-core/46-add-sv-benchmarking-for-somatic
kubranarci Jul 25, 2024
9383463
Update workflows/variantbenchmarking.nf
kubranarci Jul 26, 2024
e5316cd
Merge branch 'dev' into 42-generate-truthconfig
kubranarci Jul 26, 2024
88e796e
Merge pull request #68 from nf-core/42-generate-truthconfig
kubranarci Jul 26, 2024
8180b14
fix fixable warnings
nvnieuwk Jul 29, 2024
9290b0e
forgot a param
nvnieuwk Jul 29, 2024
0ae3d2d
Merge pull request #72 from nvnieuwk/taking-a-look-part-1
kubranarci Jul 29, 2024
b6fa3b0
update samplesheet json schema
nvnieuwk Jul 29, 2024
f0bb58d
update parameters json schema
nvnieuwk Jul 29, 2024
8eab83c
update test profile
nvnieuwk Jul 29, 2024
f21e022
fix small issue + remove lost view operator
nvnieuwk Jul 29, 2024
7ece669
Merge pull request #73 from nvnieuwk/taking-a-look-part-2
kubranarci Jul 29, 2024
ca0dec1
made variantbenchmarking.nf more readable
nvnieuwk Jul 29, 2024
92a5d98
made variantbenchmarking.nf more readable
nvnieuwk Jul 29, 2024
cb596ca
refactor all subworkflows
nvnieuwk Jul 29, 2024
046cfae
make eclint happy
nvnieuwk Jul 29, 2024
415c13d
make eclint happy
nvnieuwk Jul 29, 2024
02addb4
Merge pull request #74 from nvnieuwk/taking-a-look-part-3
nvnieuwk Jul 30, 2024
668a0cb
fix style
kubranarci Jul 30, 2024
110784b
make subsample generic
kubranarci Jul 30, 2024
485bebd
bcftools_view_filtermissing not working
kubranarci Jul 30, 2024
0270b2f
cleaning some unnecessary text
kubranarci Jul 31, 2024
d82d2ef
more physical change
kubranarci Jul 31, 2024
fc92a03
add descriptions
kubranarci Jul 31, 2024
3bae820
fix
kubranarci Jul 31, 2024
7db06dd
rm publishdir
kubranarci Jul 31, 2024
64f8594
resolve conflics
kubranarci Jul 31, 2024
892426f
Merge branch '71-add-support-for-multi-sample-files' of https://githu…
kubranarci Jul 31, 2024
ebc6cc2
resolve conflict artifacts
kubranarci Jul 31, 2024
9e78f07
Merge pull request #75 from nf-core/71-add-support-for-multi-sample-f…
kubranarci Jul 31, 2024
804a9bd
ftp links are added for truth and test hg38 and hg37
kubranarci Jul 31, 2024
7f13f6d
correct publishdir
kubranarci Jul 31, 2024
6ebdb63
Merge pull request #76 from nf-core/44-add-aws-full-test
kubranarci Jul 31, 2024
269fdd3
add picard tools
kubranarci Aug 1, 2024
e2349e3
add bcftools rename chr
kubranarci Aug 1, 2024
acdca3f
add ucsc_liftover for bed
kubranarci Aug 1, 2024
4b96e93
add liftover for confidence bed
kubranarci Aug 7, 2024
0ca5b97
fix over chr notation according to chains
kubranarci Aug 7, 2024
97ff2ba
remove liftover_genome
kubranarci Aug 7, 2024
97424ab
Merge pull request #78 from nf-core/77-add-liftover-option-for-truths
kubranarci Aug 7, 2024
0192d52
add usage and readme
kubranarci Aug 8, 2024
b6b2f12
a small fix and cont of documentation
kubranarci Aug 9, 2024
3aba3ca
Update assets/schema_input.json
kubranarci Aug 12, 2024
5b280d2
add output info
kubranarci Aug 12, 2024
7d11446
add dictionary
kubranarci Aug 12, 2024
e025a73
Merge pull request #79 from nf-core/66-fullfill-readme
kubranarci Aug 12, 2024
0c2bd73
add images
kubranarci Aug 13, 2024
26b2be7
[automated] Fix code linting
nf-core-bot Aug 13, 2024
9e1d174
Merge pull request #80 from nf-core/62-design-metro-map
kubranarci Aug 13, 2024
f6403ce
rearrange test config files and samplesheets
kubranarci Aug 16, 2024
93abddb
resources
kubranarci Aug 16, 2024
e1c7286
stub update for modules
kubranarci Aug 21, 2024
07c1737
add everything to stub
kubranarci Aug 21, 2024
400096e
add nf-test
kubranarci Aug 21, 2024
853c247
remove .nf-test.log
kubranarci Aug 21, 2024
26573df
fix email_template.html lint
kubranarci Aug 21, 2024
e70ea8b
second attempt to fix email_template.html
kubranarci Aug 21, 2024
a361625
Merge pull request #84 from nf-core/81-add-nf-test
kubranarci Aug 21, 2024
1eb5b98
files updated
kubranarci Aug 22, 2024
03e69fc
even better
kubranarci Aug 22, 2024
7e43d82
Merge pull request #87 from nf-core/update_metromap
kubranarci Aug 22, 2024
798627a
Template update for nf-core/tools version 3.0.0
nf-core-bot Oct 8, 2024
59840c9
Template update for nf-core/tools version 3.0.1
nf-core-bot Oct 9, 2024
bf7ecf8
resolve conflics
kubranarci Oct 10, 2024
088ec12
correct padding
kubranarci Oct 10, 2024
aee082b
fix samplesheet reading
kubranarci Oct 10, 2024
abf6916
update bcftools filter and fix samplesheet input read
kubranarci Oct 10, 2024
5f9541c
Merge pull request #91 from nf-core/nf-core-template-merge-3.0.1
kubranarci Oct 10, 2024
000a7f4
Template update for nf-core/tools version 3.0.2
nf-core-bot Oct 11, 2024
7f17e59
initial copy from Famke
kubranarci Oct 28, 2024
307faef
correct data types in merged report
kubranarci Oct 29, 2024
e06acc9
add datavzrd yaml
kubranarci Oct 29, 2024
1c9db22
update confige with datavzrd
kubranarci Oct 29, 2024
998e004
fix template version
kubranarci Oct 29, 2024
fad3640
deleet comments
kubranarci Oct 29, 2024
14812e9
Merge pull request #99 from nf-core/52-use-datavzrd-to-create-reports…
kubranarci Oct 29, 2024
4aee93f
except itruth everything works
kubranarci Nov 6, 2024
d080536
remove itruth
kubranarci Nov 6, 2024
dedd5eb
test profile for github actions
kubranarci Nov 6, 2024
bf091c6
fix linting
kubranarci Nov 6, 2024
0ca66e3
Merge pull request #103 from nf-core/100-refactoring-input-truth-files
kubranarci Nov 6, 2024
748ad9b
add nf-test files
kubranarci Nov 11, 2024
4930db3
update nftignore and snapshots
kubranarci Nov 12, 2024
aa43e80
updated nftignore and snapshots again
kubranarci Nov 12, 2024
7d15cb2
add more files to nftignore
kubranarci Nov 12, 2024
17b4a08
last update - hope
kubranarci Nov 13, 2024
54b6db7
remove liftover hg37
kubranarci Nov 13, 2024
50eddde
Update .github/workflows/ci.yml
kubranarci Nov 13, 2024
7eb375f
Update nf-test.config
kubranarci Nov 19, 2024
de4d846
Merge pull request #105 from nf-core/add-nf-test-for-test-cases
kubranarci Nov 19, 2024
2e6976d
fixes in documentation
kubranarci Nov 19, 2024
23c173d
fix doc
kubranarci Nov 20, 2024
9c50a02
Merge pull request #106 from nf-core/94-extensive-testing-of-subworkf…
kubranarci Nov 20, 2024
92627c9
adding plots to multiqc
kubranarci Nov 21, 2024
59a8a10
renew snapshots
kubranarci Nov 22, 2024
cecd72a
updates on snapshot
kubranarci Nov 22, 2024
6d9189d
update on snapshots
kubranarci Nov 22, 2024
0fb9c97
change oras with https for singularity
kubranarci Nov 25, 2024
0262907
renew snapshots
kubranarci Nov 25, 2024
2d73bce
renew tests
kubranarci Nov 25, 2024
4bdd9a4
fix multiqc config
kubranarci Nov 26, 2024
f21aa64
renew snopshots
kubranarci Nov 26, 2024
66e75a6
Merge pull request #108 from nf-core/add-multiqc-support
kubranarci Nov 28, 2024
aba85d5
create new singularity containers for https
kubranarci Nov 28, 2024
101a92f
Merge branch 'dev' into 110-change-modules-with-oras
kubranarci Nov 28, 2024
487da9e
renew snapshots
kubranarci Nov 29, 2024
786b95c
supress happy error
kubranarci Nov 29, 2024
a00e84c
renew snapshot for liftover
kubranarci Nov 29, 2024
68b165f
Merge pull request #111 from nf-core/110-change-modules-with-oras
kubranarci Dec 3, 2024
823cece
remove failing truth.md links
kubranarci Dec 3, 2024
4c770b2
add liftover option for test vcfs
kubranarci Dec 3, 2024
c687f92
edit default
kubranarci Dec 3, 2024
4c82c9a
error handling with truth
kubranarci Dec 3, 2024
2f14200
chande default for methods
kubranarci Dec 3, 2024
f2d7e89
wrong decleration of params.truth_vcf
kubranarci Dec 3, 2024
57fd7c7
fix
kubranarci Dec 3, 2024
70214d2
renew snapshots
kubranarci Dec 4, 2024
d7ed58a
update link to truth.md
kubranarci Dec 5, 2024
f7c496c
update usage.md
kubranarci Dec 5, 2024
e26667d
Merge pull request #115 from nf-core/113-enable-liftover-option-for-t…
kubranarci Dec 5, 2024
ca2236a
add bcf to input
kubranarci Dec 5, 2024
f25f4d8
Merge pull request #118 from nf-core/117-input-bcf-formatted-files
kubranarci Dec 5, 2024
4a99966
add fix_vcf_prefix script
kubranarci Dec 6, 2024
da8585f
renew snapshots
kubranarci Dec 10, 2024
969ecb4
renew snapshot
kubranarci Dec 10, 2024
789342e
add new snapshot
kubranarci Dec 10, 2024
be29a99
Merge pull request #120 from nf-core/standardize-chr-prefix
kubranarci Dec 10, 2024
aecd456
Template update for nf-core/tools version 3.1.0
nf-core-bot Dec 12, 2024
0104f0b
Template update for nf-core/tools version 3.1.1
nf-core-bot Dec 20, 2024
ce8c7d7
fix filtering
kubranarci Jan 13, 2025
7a84387
renew snapshots
kubranarci Jan 13, 2025
eb37c82
Update subworkflows/local/vcf_variant_filtering.nf
kubranarci Jan 13, 2025
1f63c77
Merge pull request #126 from nf-core/122-fix-variant_filtering-subwor…
kubranarci Jan 14, 2025
d9baa5b
update in bcftools view and norm, fixing naming complications
kubranarci Jan 14, 2025
fb6714f
update bcftools sort and reheader rm reheader subworkflow
kubranarci Jan 15, 2025
76d93a8
fix small test relative path
EladH1 Jan 17, 2025
decb747
modify output names update readme
kubranarci Jan 17, 2025
fa9eb7e
renew snapshot
kubranarci Jan 17, 2025
5a9a73f
Merge pull request #130 from Elad-herz/fix_test
kubranarci Jan 17, 2025
f2c6b03
Merge pull request #128 from nf-core/121-more-clean-bcftools-normaliz…
kubranarci Jan 17, 2025
dee60ae
Template update for nf-core/tools version 3.1.2
nf-core-bot Jan 20, 2025
a470e89
new containers
kubranarci Jan 22, 2025
7c0b8e6
added new paths to nf-core/test-data
kubranarci Jan 23, 2025
009b72e
update snapshots
kubranarci Jan 24, 2025
c887d26
Merge pull request #135 from nf-core/134-merge_reports-container-has-…
kubranarci Jan 24, 2025
15a980f
Template update for nf-core/tools version 3.2.0
nf-core-bot Jan 27, 2025
ab39ffd
Merge branch 'dev' into nf-core-template-merge-3.2.0
kubranarci Jan 29, 2025
a95b123
resolve conflicts
kubranarci Jan 29, 2025
ebdf443
remove bcftools_query
kubranarci Jan 29, 2025
8058e24
gitignore
kubranarci Jan 29, 2025
b3eb22e
fix trace_timestamp
kubranarci Jan 29, 2025
2a953d9
fix attempt trace_report_suffix
kubranarci Jan 29, 2025
2fba813
missing conflicts
kubranarci Jan 29, 2025
6d0027d
renew snapshots
kubranarci Jan 29, 2025
7aca3c4
Merge pull request #137 from nf-core/nf-core-template-merge-3.2.0
kubranarci Jan 29, 2025
8d13bfe
Merge branch 'dev' into 132-add-test-files
kubranarci Jan 30, 2025
a5ad26d
Merge pull request #138 from nf-core/132-add-test-files
kubranarci Jan 30, 2025
f85cbb8
add citations
kubranarci Jan 30, 2025
8bd7087
clean unused scripts
kubranarci Jan 30, 2025
924c517
correcting lint warnings
kubranarci Jan 30, 2025
80e9a3c
fix description
kubranarci Jan 30, 2025
780b993
fix email_template
kubranarci Jan 30, 2025
2480fc0
add nf-test and plugins
kubranarci Jan 30, 2025
16e87f5
adding new logos and metromap
kubranarci Jan 30, 2025
87556be
Merge pull request #140 from nf-core/129-update-citationsmd
kubranarci Jan 30, 2025
d5b58d2
fix metromap
kubranarci Jan 30, 2025
77848b2
description
kubranarci Jan 30, 2025
03dfb83
rename images
kubranarci Jan 30, 2025
90902d8
ignore lint error for logos
kubranarci Jan 30, 2025
eafffa8
higher quality
kubranarci Jan 30, 2025
bbaaf68
correct images
kubranarci Jan 30, 2025
03a21e9
update metromap
kubranarci Jan 30, 2025
2577188
replace svg metromap
kubranarci Jan 30, 2025
4a1058f
svg
kubranarci Jan 30, 2025
dd5b973
delete svg
kubranarci Jan 30, 2025
f82d62e
add png
kubranarci Jan 30, 2025
9bd2a81
update sticker
kubranarci Jan 30, 2025
266fc63
Merge pull request #141 from nf-core/116-update-metromap
kubranarci Jan 31, 2025
f6ec221
adding full size aws tests
kubranarci Jan 31, 2025
3e804f8
test_full is named as test_full_germline and test_full_somatic
kubranarci Jan 31, 2025
fe8620d
resolve conflicts
kubranarci Jan 31, 2025
02d29a1
Merge branch 'dev' into 131-aws-full-size-run
kubranarci Jan 31, 2025
16c2689
correct path
kubranarci Jan 31, 2025
aca8c9d
restore test_full
kubranarci Jan 31, 2025
15dec3e
Merge pull request #142 from nf-core/131-aws-full-size-run
kubranarci Feb 3, 2025
cc97ccd
versions dump and release lints
kubranarci Feb 3, 2025
92e43fa
correct email
kubranarci Feb 3, 2025
1e0d0ee
need to change test files
kubranarci Feb 4, 2025
d426f5d
Merge pull request #147 from nf-core/95-release-v100-requirements
kubranarci Feb 4, 2025
f9ae067
add test_data_base to tests
kubranarci Feb 4, 2025
ffa5edb
Merge pull request #149 from kubranarci/dev
kubranarci Feb 4, 2025
c9eca89
remove conda from checks
kubranarci Feb 4, 2025
da6cf1e
Merge pull request #150 from kubranarci/dev
kubranarci Feb 4, 2025
ff15254
changes requested by Nicolas
kubranarci Feb 5, 2025
bb17ca5
Merge pull request #151 from nf-core/95-release-v100-requirements
kubranarci Feb 6, 2025
845a021
update manta_convertinversions
kubranarci Feb 17, 2025
920e3dd
Merge pull request #152 from nf-core/clone_error
kubranarci Feb 17, 2025
b7354d8
copy from fix
kubranarci Feb 17, 2025
d2f6210
Update .github/workflows/download_pipeline.yml
kubranarci Feb 17, 2025
c908632
Update .github/workflows/download_pipeline.yml
kubranarci Feb 17, 2025
2872d21
Update .github/workflows/download_pipeline.yml
kubranarci Feb 17, 2025
3b84b09
Update .github/workflows/download_pipeline.yml
kubranarci Feb 17, 2025
888d00b
Update .github/workflows/download_pipeline.yml
kubranarci Feb 17, 2025
4191a18
Merge pull request #153 from nf-core/template_issue
kubranarci Feb 17, 2025
a9ab897
apply Maximes changes
kubranarci Feb 20, 2025
8c73664
delete stickers
kubranarci Feb 21, 2025
29a5620
Merge pull request #154 from nf-core/apply-maximes-requests
kubranarci Feb 21, 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
  •  
  •  
  •  
10 changes: 1 addition & 9 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,7 @@
"vscode": {
// Set *default* container specific settings.json values on container create.
"settings": {
"python.defaultInterpreterPath": "/opt/conda/bin/python",
"python.linting.enabled": true,
"python.linting.pylintEnabled": true,
"python.formatting.autopep8Path": "/opt/conda/bin/autopep8",
"python.formatting.yapfPath": "/opt/conda/bin/yapf",
"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.defaultInterpreterPath": "/opt/conda/bin/python"
},

// Add the IDs of extensions you want installed when the container is created.
Expand Down
17 changes: 11 additions & 6 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,20 @@ end_of_line = unset
insert_final_newline = unset
trim_trailing_whitespace = unset
indent_style = unset
indent_size = unset
[/subworkflows/nf-core/**]
charset = unset
end_of_line = unset
insert_final_newline = unset
trim_trailing_whitespace = unset
indent_style = unset

[/assets/email*]
indent_size = unset

# ignore Readme
[README.md]
# ignore python and markdown
[*.{py,md}]
indent_style = unset

# ignore python
[*.{py}]
indent_style = unset
# ignore ro-crate metadata files
[**/ro-crate-metadata.json]
insert_final_newline = unset
38 changes: 20 additions & 18 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# nf-core/variantbenchmarking: Contributing Guidelines
# `nf-core/variantbenchmarking`: Contributing Guidelines

Hi there!
Many thanks for taking an interest in improving nf-core/variantbenchmarking.
Expand All @@ -9,9 +9,8 @@ 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 ;)

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

## Contribution workflow

Expand All @@ -20,15 +19,18 @@ If you'd like to write some code for nf-core/variantbenchmarking, the standard w
1. Check that there isn't already an issue about your idea in the [nf-core/variantbenchmarking issues](https://github.com/nf-core/variantbenchmarking/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/variantbenchmarking repository](https://github.com/nf-core/variantbenchmarking) 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/).

## 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>`.
You have the option to test your changes locally by running the pipeline. For receiving warnings about process selectors and other `debug` information, it is recommended to use the debug profile. Execute all the tests with the following command:

```bash
nf-test test --profile debug,test,docker --verbose
```

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 All @@ -38,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 @@ -53,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/variantbenchmarking documentation](https://nf-co.re/variantbenchmarking/usage) and don't hesitate to get in touch on the nf-core Slack [#variantbenchmarking](https://nfcore.slack.com/channels/variantbenchmarking) channel ([join our Slack here](https://nf-co.re/join/slack)).

## Pipeline contribution conventions

To make the nf-core/variantbenchmarking 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/variantbenchmarking` 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 @@ -82,15 +84,15 @@ 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.cpu}` and `${task.memory}` variables in the `script:` block.
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.

### Naming schemes

Expand All @@ -101,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/variantbenchmarking pipeline documentation](https://nf-co.re/variantbenchmarking/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/vari
- [ ] 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/variantbenchmarking/tree/master/.github/CONTRIBUTING.md)
- [ ] If necessary, also make a PR on the nf-core/variantbenchmarking _branch_ on the [nf-core/test-datasets](https://github.com/nf-core/test-datasets) repository.
- [ ] Make sure your code lints (`nf-core lint`).
- [ ] Make sure your code lints (`nf-core pipelines lint`).
- [ ] Ensure the test suite passes (`nextflow run . -profile test,docker --outdir <OUTDIR>`).
- [ ] Check for unexpected warnings in debug mode (`nextflow run . -profile debug,test,docker --outdir <OUTDIR>`).
- [ ] Usage Documentation in `docs/usage.md` is updated.
Expand Down
74 changes: 64 additions & 10 deletions .github/workflows/awsfulltest.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,78 @@
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:
inputs:
test_full:
description: "Germline full test"
type: boolean
default: true
somatic:
description: "Somatic full test"
type: boolean
default: false
pull_request_review:
types: [submitted]

jobs:
run-tower:
run-platform:
strategy:
fail-fast: false
matrix:
include:
- profile: test_full
test: test_full
cloud: aws
compute_env: TOWER_COMPUTE_ENV
workdir: TOWER_BUCKET_AWS
- profile: test_full_somatic
test: somatic
cloud: aws
compute_env: TOWER_COMPUTE_ENV
workdir: TOWER_BUCKET_AWS
name: Run AWS full tests
if: github.repository == 'nf-core/variantbenchmarking'
# 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/variantbenchmarking' && 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
- name: Get PR reviews
uses: octokit/request-action@v2.x
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:
run_name: variantbenchmarking_${{ matrix.profile }}
workspace_id: ${{ secrets.TOWER_WORKSPACE_ID }}
access_token: ${{ secrets.TOWER_ACCESS_TOKEN }}
compute_env: ${{ secrets.TOWER_COMPUTE_ENV }}
Expand All @@ -29,11 +83,11 @@ jobs:
"hook_url": "${{ secrets.MEGATESTS_ALERTS_SLACK_HOOK_URL }}",
"outdir": "s3://${{ secrets.AWS_S3_BUCKET }}/variantbenchmarking/results-${{ github.sha }}"
}
profiles: test_full
profiles: ${{ matrix.profile }}

- 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/variantbenchmarking'
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
20 changes: 11 additions & 9 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/variantbenchmarking'
run: |
Expand All @@ -19,10 +21,10 @@ jobs:
# NOTE - this doesn't currently work if the PR is coming from a fork, due to limitations in GitHub actions secrets
- name: Post PR comment
if: failure()
uses: mshick/add-pr-comment@v2
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
Loading
Loading