-
Notifications
You must be signed in to change notification settings - Fork 953
Swap sentieon/tnhaplotypecaller2 and tnscope to nf-test #8187
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
Merged
Merged
Changes from all commits
Commits
Show all changes
97 commits
Select commit
Hold shift + click to select a range
7577dd6
Initial conversion, needs snapshots generating
SPPearce 7614dd5
Add tnscope
SPPearce 97d0461
Update tnscope and tnhaplotyper2
SPPearce e1e9cdb
Merge branch 'master' into sention_tnhaplotyper2_nftest
SPPearce 642837d
Remove ultra/index
SPPearce 4a64527
Remove empty config
SPPearce 5a0d45d
Reset pytest_modules
SPPearce 82dc013
Fix meta
SPPearce 6297dbc
Reorder meta
SPPearce f228f07
Update modules/nf-core/sentieon/tnhaplotyper2/tests/main.nf.test
SPPearce b1b40de
Add env block
SPPearce fa54ee1
Update version for updateblastdb (#8181)
SPPearce eb31c56
Change FastQC memory parameter from float to int (#8180)
Schmytzi 570f605
updated bandage image to latest version (#8185)
saramonzon abb0435
portcullis/full: accommodate more outputs (#8166)
anoronh4 ae0bfe6
update freyja module to latest version (#8184)
saramonzon eaf9107
Update bcftools (#8182)
saramonzon e3f2aa1
updated artic to latest version (#8186)
saramonzon 68cfded
Add functionality for `--unknown-slide` in `spaceranger/count` (#7233)
fasterius cf9926f
Add threads parameter for all seqkit modules missing (#8192)
jfy133 6562c36
Support formula in `abundance_differential_filter` and associated mod…
atrigila 6996a1f
Update shinyngs modules (#8194)
pinin4fjords f6ffbc0
add module integronfinder (#8131)
nguyent-son 70b934b
add gpu snapshot updater action (#8183)
mashehu fac4f60
Update dependency python to 3.13 (#8189)
renovate[bot] 971ad8f
Mindagap stub and test updates (#8200)
kbestak b33a2c6
fixed bug in bandage/image module, wrong versions.yml outputted (#8196)
saramonzon 45fa247
fix formatting in sylphtax/taxprof (#8202)
mashehu 155bfb6
run update snapshot on gpu runners (#8201)
mashehu daa0593
add nf-test and stub to svtk/standardize (#7768)
kubranarci f53639d
fix typo in gpu-snapshot updater (#8204)
mashehu 46e91be
update vep to 113.4 and redo conda tests (#8205)
nvnieuwk 3d9b903
Fix one more typo (#8207)
mashehu 47f6ac1
change MUSE_SUMP to high memory module (#8212)
famosab 97afb90
Update tj-actions/changed-files digest to 6cb76d0 (#8217)
renovate[bot] f0bb5e2
Fix: PoolSNP: Update input tuple; cleanup stub (#8218)
abhilesh 9c34619
Fix to rnaseq preprocessing linting fix (#8221)
pinin4fjords 19e76ff
Update modkit and porechop modules (#8223)
jkh00 7389faa
Metaspace download (#8145)
Dewey-Wang 86a3415
Update vrhyme modules, including nf-test (#8163)
SPPearce 873ce42
nf-test migration: cellrangerarc/count (#8008)
ignatiusm fe92e85
Add sylphtax/merge and update taxprof to version 1.2 (#8228)
sofstam 74e2acb
Clair3 (#7838)
robert-a-forsyth d45c876
update to doubled runner resources (#8233)
mashehu 299a8c9
GTDBTK_CLASSIFYWF database improvement (#8220)
jfy133 612914f
handle filtered out modules and subworkflow files in the linting step…
mashehu 5656843
fix linting check to run on files, not general changes (#8240)
mashehu c1ef56f
always commit changes when run gpu-snapshot bot runs succesfully (#8237)
mashehu 43c2da7
Plink2 hwe (#8227)
jodennehy b354737
migrate nf-test: survivor-filter (#8229)
kubranarci 2296655
ragtag/scaffold and ragtag/patch modules and tests (#8198)
nschan e0dd36c
Nf-test migration survivor/simsv (#8251)
kubranarci 82625d0
Stecfinder nftest (#8243)
SPPearce 184ef17
Fix mutect tests (#8242)
famosab af9a2a7
nf-test migration: plink/indeppairwise (#8133)
mantisps 2be0f8b
Uncomment logging. (#8248)
nschan f3c055c
Swap shigeifinder to nf-test (#8245)
SPPearce a1c6750
Migrate `cellrangerarc/mkref`to nf-test (#8219)
max-laurent cbe0a1e
Plink2 filter (#8247)
jodennehy ae0048f
Use modules_testdata_base_path (#8259)
maxulysse 60479c3
nf-test + stub: svtk/rdtest2vcf (#8258)
kubranarci 980688c
dragmap hashtable - snapshot versions (#8261)
maxulysse 4b2a02a
Add gatk4/modelsegments (#8234)
lbeltrame 33e2892
Update GTDB-TK: Update container version and fix a couple of error so…
prototaxites dc35312
Add custom adapters list as input argument (#8262)
sofstam 8b0711f
Update GitHub Actions (#8253)
renovate[bot] ff5ad6c
Migrate `GENOTYPHI_PARSE` to nf-test (#8265)
LouisLeNezet 423fd18
Fix prettier porechop meta (#8266)
sofstam 982c072
Fix errant bash comment in gtdbtk/classifywf (#8267)
prototaxites d7050b4
Downgrade dragmap to the previous functionning version (#8263)
maxulysse 8d91fee
new module: fusioncatcher build (#8268)
nvnieuwk c6dbbca
new module: fusioncatcher/fusioncatcher (#8271)
nvnieuwk ab13109
Deprecate `FCS_FCSGX` (#8269)
LouisLeNezet d0ef714
Migrate `gem2/gem2bedmappability` to nf-test (#8275)
LouisLeNezet 59c02fd
Migrate `gem2/gemmappability` to nf-test (#8278)
LouisLeNezet 569aaaa
Migrate `genescopefk` to nf-test (#8277)
LouisLeNezet b6802c9
gatk4spark - better assertion and stub tests (#8274)
maxulysse 46fb895
Links (#8260)
nschan 19fb6b4
Migrate `damageprofiler` to nf-test (#8282)
LouisLeNezet 7015143
Bump genmod to 3.10 (#8281)
fellen31 360c979
remove plink2 hwe (#8280)
jodennehy cf5a6f9
Merge remote-tracking branch 'sppearce/sention_tnhaplotyper2_nftest' …
SPPearce 12db8d4
Merge branch 'master' into sention_tnhaplotyper2_nftest
SPPearce 6bf163c
Update snapshots
SPPearce 7171360
Update snapshots
SPPearce 49d11f3
Merge remote-tracking branch 'sppearce/sention_tnhaplotyper2_nftest' …
SPPearce 12f9f34
Update snapshots
SPPearce 240f64c
Update tnscope
SPPearce 7a7c680
Merge remote-tracking branch 'sppearce/sention_tnhaplotyper2_nftest' …
SPPearce 92912bd
Merge branch 'master' into sention_tnhaplotyper2_nftest
SPPearce 369f2c8
Add spaces and remove //meta
SPPearce b65eb81
Update snapshots
SPPearce 7119567
Merge remote-tracking branch 'sppearce/sention_tnhaplotyper2_nftest' …
SPPearce 4c9d897
Merge branch 'master' into sention_tnhaplotyper2_nftest
SPPearce 2e3c1b9
Update modules/nf-core/sentieon/tnhaplotyper2/main.nf
SPPearce 4d33a26
Merge remote-tracking branch 'origin' into sention_tnhaplotyper2_nftest
SPPearce e4a14ce
Fix whitespace
SPPearce File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
293 changes: 293 additions & 0 deletions
293
modules/nf-core/sentieon/tnhaplotyper2/tests/main.nf.test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,293 @@ | ||
| nextflow_process { | ||
|
|
||
| name "Test Process SENTIEON_TNHAPLOTYPER2" | ||
| config "./nextflow.config" | ||
| script "../main.nf" | ||
| process "SENTIEON_TNHAPLOTYPER2" | ||
|
|
||
| tag "modules" | ||
| tag "modules_nfcore" | ||
| tag "picard" | ||
| tag "picard/addorreplacereadgroups" | ||
| tag "sentieon" | ||
| tag "sentieon/tnhaplotyper2" | ||
| config './nextflow.config' | ||
|
|
||
| setup { | ||
| run("PICARD_ADDORREPLACEREADGROUPS", alias: "NORMAL_ADDORREPLACEREADGROUPS") { | ||
| script "../../../picard/addorreplacereadgroups/main.nf" | ||
| config './nextflow.config' | ||
| process { | ||
| """ | ||
| input[0] = [[id:'test'], | ||
| [file(params.modules_testdata_base_path + 'genomics/homo_sapiens/illumina/bam/test.paired_end.recalibrated.sorted.bam', checkIfExists:true)] | ||
| ] | ||
| input[1] = [[],[]] | ||
| input[2] = [[],[]] | ||
| """ | ||
| } | ||
| } | ||
|
|
||
| run("PICARD_ADDORREPLACEREADGROUPS", alias: "TUMOUR_ADDORREPLACEREADGROUPS") { | ||
| script "../../../picard/addorreplacereadgroups/main.nf" | ||
| config './nextflow.config' | ||
|
|
||
| process { | ||
| """ | ||
| input[0] = [[id:'test'], | ||
| [file(params.modules_testdata_base_path + 'genomics/homo_sapiens/illumina/bam/test2.paired_end.recalibrated.sorted.bam', checkIfExists:true)] | ||
| ] | ||
| input[1] = [[],[]] | ||
| input[2] = [[],[]] | ||
| """ | ||
| } | ||
| } | ||
| } | ||
|
|
||
| test("tumour normal") { | ||
|
|
||
| when { | ||
| params { | ||
| module_args = '' | ||
| module_args2 = '--tumor_sample tumour --normal_sample normal' | ||
| module_args3 = '' | ||
| module_args4 = '' | ||
| } | ||
| process { | ||
| """ | ||
| input[0] = NORMAL_ADDORREPLACEREADGROUPS.out.bam | ||
| .join( NORMAL_ADDORREPLACEREADGROUPS.out.bai) | ||
| .join( TUMOUR_ADDORREPLACEREADGROUPS.out.bam) | ||
| .join( TUMOUR_ADDORREPLACEREADGROUPS.out.bai) | ||
| .map{ | ||
| meta,normal_bam,normal_bai,tumour_bam,tumour_bai-> | ||
| [[id:'test'],[normal_bam,tumour_bam],[normal_bai,tumour_bai],[]] | ||
| } | ||
| input[1] = [[:],file(params.modules_testdata_base_path + 'genomics/homo_sapiens/genome/chr21/sequence/genome.dict', checkIfExists:true)] | ||
| input[2] = [[:],file(params.modules_testdata_base_path + 'genomics/homo_sapiens/genome/chr21/sequence/genome.fasta', checkIfExists:true)] | ||
| input[3] = [[:],file(params.modules_testdata_base_path + 'genomics/homo_sapiens/genome/chr21/sequence/genome.fasta.fai', checkIfExists:true)] | ||
| input[4] = [[:],[]] | ||
| input[5] = [[:],[]] | ||
| input[6] = [[:],[]] | ||
| input[7] = [[:],[]] | ||
| input[8] = false | ||
| input[9] = false | ||
| """ | ||
| } | ||
| } | ||
| then { | ||
| assert process.success | ||
| assertAll( | ||
| { assert snapshot( | ||
| path(process.out.vcf[0][1]).vcf.summary, | ||
| file(process.out.index[0][1]).name, | ||
| process.out.stats, | ||
| process.out.versions, | ||
| path(process.out.versions[0]).yaml | ||
| ).match() } | ||
| ) | ||
| } | ||
| } | ||
|
|
||
| test("tumour normal, with dbsnp and PoN") { | ||
|
|
||
| when { | ||
| params { | ||
| module_args = '' | ||
| module_args2 = '--tumor_sample tumour --normal_sample normal' | ||
| module_args3 = '' | ||
| module_args4 = '' | ||
| } | ||
| process { | ||
| """ | ||
| input[0] = NORMAL_ADDORREPLACEREADGROUPS.out.bam | ||
| .join(NORMAL_ADDORREPLACEREADGROUPS.out.bai) | ||
| .join(TUMOUR_ADDORREPLACEREADGROUPS.out.bam) | ||
| .join(TUMOUR_ADDORREPLACEREADGROUPS.out.bai) | ||
| .map{ | ||
| meta,normal_bam,normal_bai,tumour_bam,tumour_bai-> | ||
| [[id:'test'],[normal_bam,tumour_bam],[normal_bai,tumour_bai],[]] | ||
| } | ||
| input[1] = [[:],file(params.modules_testdata_base_path + 'genomics/homo_sapiens/genome/chr21/sequence/genome.dict', checkIfExists:true)] | ||
| input[2] = [[:],file(params.modules_testdata_base_path + 'genomics/homo_sapiens/genome/chr21/sequence/genome.fasta', checkIfExists:true)] | ||
| input[3] = [[:],file(params.modules_testdata_base_path + 'genomics/homo_sapiens/genome/chr21/sequence/genome.fasta.fai', checkIfExists:true)] | ||
| input[4] = [[:],file(params.modules_testdata_base_path + 'genomics/homo_sapiens/genome/chr21/germlineresources/gnomAD.r2.1.1.vcf.gz', checkIfExists:true)] | ||
| input[5] = [[:],file(params.modules_testdata_base_path + 'genomics/homo_sapiens/genome/chr21/germlineresources/gnomAD.r2.1.1.vcf.gz.tbi', checkIfExists:true)] | ||
| input[6] = [[:],file(params.modules_testdata_base_path + 'genomics/homo_sapiens/genome/chr21/germlineresources/mills_and_1000G.indels.hg38.vcf.gz', checkIfExists:true)] | ||
| input[7] = [[:],file(params.modules_testdata_base_path + 'genomics/homo_sapiens/genome/chr21/germlineresources/mills_and_1000G.indels.hg38.vcf.gz.tbi', checkIfExists:true)] | ||
| input[8] = false | ||
| input[9] = false | ||
| """ | ||
| } | ||
| } | ||
| then { | ||
| assert process.success | ||
| assertAll( | ||
| { assert snapshot( | ||
| path(process.out.vcf[0][1]).vcf.summary, | ||
| file(process.out.index[0][1]).name, | ||
| process.out.stats, | ||
| process.out.versions, | ||
| path(process.out.versions[0]).yaml | ||
| ).match() } | ||
| ) | ||
| } | ||
| } | ||
|
|
||
| test("tumour normal, with dbsnp and PoN, emit additional files") { | ||
|
|
||
| when { | ||
| params { | ||
| module_args = '' | ||
| module_args2 = '--tumor_sample tumour --normal_sample normal' | ||
| module_args3 = '--tumor_sample tumour' | ||
| module_args4 = '--tumor_sample tumour --normal_sample normal' | ||
| } | ||
| process { | ||
| """ | ||
| input[0] = NORMAL_ADDORREPLACEREADGROUPS.out.bam | ||
| .join(NORMAL_ADDORREPLACEREADGROUPS.out.bai) | ||
| .join(TUMOUR_ADDORREPLACEREADGROUPS.out.bam) | ||
| .join(TUMOUR_ADDORREPLACEREADGROUPS.out.bai) | ||
| .map{ | ||
| meta,normal_bam,normal_bai,tumour_bam,tumour_bai-> | ||
| [[id:'test'],[normal_bam,tumour_bam],[normal_bai,tumour_bai],[]] | ||
| } | ||
| input[1] = [[:],file(params.modules_testdata_base_path + 'genomics/homo_sapiens/genome/chr21/sequence/genome.dict', checkIfExists:true)] | ||
| input[2] = [[:],file(params.modules_testdata_base_path + 'genomics/homo_sapiens/genome/chr21/sequence/genome.fasta', checkIfExists:true)] | ||
| input[3] = [[:],file(params.modules_testdata_base_path + 'genomics/homo_sapiens/genome/chr21/sequence/genome.fasta.fai', checkIfExists:true)] | ||
| input[4] = [[:],file(params.modules_testdata_base_path + 'genomics/homo_sapiens/genome/chr21/germlineresources/gnomAD.r2.1.1.vcf.gz', checkIfExists:true)] | ||
| input[5] = [[:],file(params.modules_testdata_base_path + 'genomics/homo_sapiens/genome/chr21/germlineresources/gnomAD.r2.1.1.vcf.gz.tbi', checkIfExists:true)] | ||
| input[6] = [[:],file(params.modules_testdata_base_path + 'genomics/homo_sapiens/genome/chr21/germlineresources/mills_and_1000G.indels.hg38.vcf.gz', checkIfExists:true)] | ||
| input[7] = [[:],file(params.modules_testdata_base_path + 'genomics/homo_sapiens/genome/chr21/germlineresources/mills_and_1000G.indels.hg38.vcf.gz.tbi', checkIfExists:true)] | ||
| input[8] = true | ||
| input[9] = true | ||
| """ | ||
| } | ||
| } | ||
| then { | ||
| assert process.success | ||
| assertAll( | ||
| { assert snapshot( | ||
| path(process.out.vcf[0][1]).vcf.summary, | ||
| file(process.out.index[0][1]).name, | ||
| process.out.stats, | ||
| process.out.orientation_data, | ||
| process.out.contamination_data, | ||
| process.out.contamination_segments, | ||
| process.out.versions, | ||
| path(process.out.versions[0]).yaml | ||
| ).match() } | ||
| ) | ||
| } | ||
| } | ||
|
|
||
| test("tumour only") { | ||
|
|
||
| when { | ||
| params { | ||
| module_args = '' | ||
| module_args2 = '--tumor_sample tumour' | ||
| module_args3 = '--tumor_sample tumour' | ||
| module_args4 = '--tumor_sample tumour' | ||
| } | ||
| process { | ||
| """ | ||
| input[0] = TUMOUR_ADDORREPLACEREADGROUPS.out.bam | ||
| .join(TUMOUR_ADDORREPLACEREADGROUPS.out.bai) | ||
| .map{ | ||
| meta,tumour_bam,tumour_bai-> | ||
| [meta,tumour_bam,tumour_bai,[]] | ||
| } | ||
| input[1] = [[:],file(params.modules_testdata_base_path + 'genomics/homo_sapiens/genome/chr21/sequence/genome.dict', checkIfExists:true)] | ||
| input[2] = [[:],file(params.modules_testdata_base_path + 'genomics/homo_sapiens/genome/chr21/sequence/genome.fasta', checkIfExists:true)] | ||
| input[3] = [[:],file(params.modules_testdata_base_path + 'genomics/homo_sapiens/genome/chr21/sequence/genome.fasta.fai', checkIfExists:true)] | ||
| input[4] = [[:],file(params.modules_testdata_base_path + 'genomics/homo_sapiens/genome/chr21/germlineresources/gnomAD.r2.1.1.vcf.gz', checkIfExists:true)] | ||
| input[5] = [[:],file(params.modules_testdata_base_path + 'genomics/homo_sapiens/genome/chr21/germlineresources/gnomAD.r2.1.1.vcf.gz.tbi', checkIfExists:true)] | ||
| input[6] = [[:],file(params.modules_testdata_base_path + 'genomics/homo_sapiens/genome/chr21/germlineresources/mills_and_1000G.indels.hg38.vcf.gz', checkIfExists:true)] | ||
| input[7] = [[:],file(params.modules_testdata_base_path + 'genomics/homo_sapiens/genome/chr21/germlineresources/mills_and_1000G.indels.hg38.vcf.gz.tbi', checkIfExists:true)] | ||
| input[8] = true | ||
| input[9] = true | ||
| """ | ||
| } | ||
| } | ||
| then { | ||
| assert process.success | ||
| assertAll( | ||
| { assert snapshot( | ||
| path(process.out.vcf[0][1]).vcf.summary, | ||
| file(process.out.index[0][1]).name, | ||
| process.out.versions, | ||
| process.out.stats, | ||
| path(process.out.versions[0]).yaml | ||
| ).match() } | ||
| ) | ||
| } | ||
| } | ||
|
|
||
|
|
||
| test("tumour normal - stub") { | ||
| options '-stub' | ||
| when { | ||
| params { | ||
| module_args = '' | ||
| module_args2 = '--tumor_sample tumour --normal_sample normal' | ||
| module_args3 = '' | ||
| module_args4 = '' | ||
| } | ||
| process { | ||
| """ | ||
| input[0] = [[id:'test'],[],[],[]] | ||
SPPearce marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| input[1] = [[:],[]] | ||
| input[2] = [[:],[]] | ||
| input[3] = [[:],[]] | ||
| input[4] = [[:],[]] | ||
| input[5] = [[:],[]] | ||
| input[6] = [[:],[]] | ||
| input[7] = [[:],[]] | ||
| input[8] = false | ||
| input[9] = false | ||
| """ | ||
| } | ||
| } | ||
| then { | ||
| assert process.success | ||
| assertAll( | ||
| { assert snapshot(process.out).match() } | ||
| ) | ||
| } | ||
| } | ||
|
|
||
| test("tumour normal, emit additional files -stub") { | ||
| options '-stub' | ||
| when { | ||
| params { | ||
| module_args = '' | ||
| module_args2 = '--tumor_sample tumour --normal_sample normal' | ||
| module_args3 = '' | ||
| module_args4 = '' | ||
| } | ||
| process { | ||
| """ | ||
| input[0] = [[id:'test'],[],[],[]] | ||
| input[1] = [[:],[]] | ||
| input[2] = [[:],[]] | ||
| input[3] = [[:],[]] | ||
| input[4] = [[:],[]] | ||
| input[5] = [[:],[]] | ||
| input[6] = [[:],[]] | ||
| input[7] = [[:],[]] | ||
| input[8] = false | ||
| input[9] = false | ||
| """ | ||
| } | ||
| } | ||
| then { | ||
| assert process.success | ||
| assertAll( | ||
| { assert snapshot(process.out).match() } | ||
| ) | ||
| } | ||
| } | ||
|
|
||
| } | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.