-
Notifications
You must be signed in to change notification settings - Fork 740
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
port parabricks/deepvariant to nf-test (#6995)
* port to nf-test * remove * update test yaml * swap to nextflow config * finalize * revert changes to nf-test config * revert changes to nf-test config * add to conda_skip * add tag gpu * Update modules/nf-core/parabricks/deepvariant/tests/nextflow.config * Update modules/nf-core/parabricks/deepvariant/main.nf * fix tests and add myself as maintainer to other modules * fix meta * add isssue to comment * remove conda skip * update snap --------- Co-authored-by: Simon Pearce <24893913+SPPearce@users.noreply.github.com>
- Loading branch information
Showing
16 changed files
with
829 additions
and
150 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
|
@@ -88,3 +88,4 @@ authors: | |
- "@bsiranosian" | ||
maintainers: | ||
- "@bsiranosian" | ||
- "@famosab" |
This file contains 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 |
---|---|---|
|
@@ -50,3 +50,5 @@ output: | |
pattern: "versions.yml" | ||
authors: | ||
- "@Furentsu" | ||
maintainers: | ||
- "@famosab" |
This file contains 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 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
223 changes: 223 additions & 0 deletions
223
modules/nf-core/parabricks/deepvariant/tests/main.nf.test
This file contains 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,223 @@ | ||
nextflow_process { | ||
|
||
name "Test Process PARABRICKS_DEEPVARIANT" | ||
script "../main.nf" | ||
process "PARABRICKS_DEEPVARIANT" | ||
|
||
tag "modules" | ||
tag "modules_nfcore" | ||
tag "parabricks" | ||
tag "parabricks/deepvariant" | ||
tag "gpu" | ||
|
||
test("human - bam") { | ||
|
||
when { | ||
process { | ||
""" | ||
input[0] = [ | ||
[ id:'test'], | ||
file(params.modules_testdata_base_path + 'genomics/homo_sapiens/illumina/bam/test2.paired_end.recalibrated.sorted.bam', checkIfExists: true), | ||
[], // bam.bai not needed unless using intervals | ||
[] | ||
] | ||
input[1] = [ | ||
[ id:'test'], | ||
file(params.modules_testdata_base_path + 'genomics/homo_sapiens/genome/chr21/sequence/genome.fasta', checkIfExists: true) | ||
] | ||
""" | ||
} | ||
} | ||
|
||
then { | ||
assertAll( | ||
{ assert process.success }, | ||
{ assert snapshot( | ||
path(process.out.vcf[0][1]).vcf.getVariantsAsStrings(100), | ||
process.out.versions, | ||
path(process.out.versions[0]).yaml | ||
).match() } | ||
) | ||
} | ||
|
||
} | ||
|
||
test("human - bam - intervals") { | ||
|
||
when { | ||
process { | ||
""" | ||
input[0] = [ | ||
[ id:'test'], | ||
file(params.modules_testdata_base_path + 'genomics/homo_sapiens/illumina/bam/test2.paired_end.recalibrated.sorted.bam', checkIfExists: true), | ||
file(params.modules_testdata_base_path + 'genomics/homo_sapiens/illumina/bam/test2.paired_end.recalibrated.sorted.bam.bai', checkIfExists: true), | ||
file(params.modules_testdata_base_path + 'genomics/homo_sapiens/genome/chr21/sequence/multi_intervals.bed', checkIfExists: true) | ||
] | ||
input[1] = [ | ||
[ id:'ref'], | ||
file(params.modules_testdata_base_path + 'genomics/homo_sapiens/genome/chr21/sequence/genome.fasta', checkIfExists: true) | ||
] | ||
""" | ||
} | ||
} | ||
|
||
then { | ||
assertAll( | ||
{ assert process.success }, | ||
{ assert snapshot( | ||
path(process.out.vcf[0][1]).vcf.getVariantsAsStrings(100), | ||
process.out.versions, | ||
path(process.out.versions[0]).yaml | ||
).match() } | ||
) | ||
} | ||
|
||
} | ||
|
||
test("human - bam - gvcf") { | ||
|
||
config './nextflow.config' | ||
|
||
when { | ||
params { | ||
module_args = '--gvcf' | ||
} | ||
process { | ||
""" | ||
input[0] = [ | ||
[ id:'test'], | ||
file(params.modules_testdata_base_path + 'genomics/homo_sapiens/illumina/bam/test2.paired_end.recalibrated.sorted.bam', checkIfExists: true), | ||
[], // bam.bai not needed unless using intervals | ||
[] | ||
] | ||
input[1] = [ | ||
[ id:'ref'], | ||
file(params.modules_testdata_base_path + 'genomics/homo_sapiens/genome/chr21/sequence/genome.fasta', checkIfExists: true) | ||
] | ||
""" | ||
} | ||
} | ||
|
||
then { | ||
assertAll( | ||
{ assert process.success }, | ||
{ assert snapshot( | ||
path(process.out.gvcf[0][1]).vcf.getVariantsAsStrings(100), | ||
process.out.versions, | ||
path(process.out.versions[0]).yaml | ||
).match() | ||
} | ||
) | ||
} | ||
|
||
} | ||
|
||
test("human - bam - intervals - gvcf") { | ||
|
||
config './nextflow.config' | ||
|
||
when { | ||
params { | ||
module_args = '--gvcf' | ||
} | ||
process { | ||
""" | ||
input[0] = [ | ||
[ id:'test'], | ||
file(params.modules_testdata_base_path + 'genomics/homo_sapiens/illumina/bam/test2.paired_end.recalibrated.sorted.bam', checkIfExists: true), | ||
file(params.modules_testdata_base_path + 'genomics/homo_sapiens/illumina/bam/test2.paired_end.recalibrated.sorted.bam.bai', checkIfExists: true), | ||
file(params.modules_testdata_base_path + 'genomics/homo_sapiens/genome/chr21/sequence/multi_intervals.bed', checkIfExists: true) | ||
] | ||
input[1] = [ | ||
[ id:'ref'], | ||
file(params.modules_testdata_base_path + 'genomics/homo_sapiens/genome/chr21/sequence/genome.fasta', checkIfExists: true) | ||
] | ||
""" | ||
} | ||
} | ||
|
||
then { | ||
assertAll( | ||
{ assert process.success }, | ||
{ assert snapshot( | ||
path(process.out.gvcf[0][1]).vcf.getVariantsAsStrings(100), | ||
process.out.versions, | ||
path(process.out.versions[0]).yaml | ||
).match() | ||
} | ||
) | ||
} | ||
|
||
} | ||
|
||
test("human - bam - stub") { | ||
|
||
options "-stub" | ||
|
||
when { | ||
process { | ||
""" | ||
input[0] = [ | ||
[ id:'test'], | ||
file(params.modules_testdata_base_path + 'genomics/homo_sapiens/illumina/bam/test2.paired_end.recalibrated.sorted.bam', checkIfExists: true), | ||
[], // bam.bai not needed unless using intervals | ||
[] | ||
] | ||
input[1] = [ | ||
[ id:'test'], | ||
file(params.modules_testdata_base_path + 'genomics/homo_sapiens/genome/chr21/sequence/genome.fasta', checkIfExists: true) | ||
] | ||
""" | ||
} | ||
} | ||
|
||
then { | ||
assertAll( | ||
{ assert process.success }, | ||
{ assert snapshot( | ||
process.out, | ||
path(process.out.versions[0]).yaml | ||
).match() } | ||
) | ||
} | ||
|
||
} | ||
|
||
test("human - bam - intervals - gvcf - stub") { | ||
|
||
config './nextflow.config' | ||
options "-stub" | ||
|
||
when { | ||
params { | ||
module_args = '--gvcf' | ||
} | ||
process { | ||
""" | ||
input[0] = [ | ||
[ id:'test'], | ||
file(params.modules_testdata_base_path + 'genomics/homo_sapiens/illumina/bam/test2.paired_end.recalibrated.sorted.bam', checkIfExists: true), | ||
file(params.modules_testdata_base_path + 'genomics/homo_sapiens/illumina/bam/test2.paired_end.recalibrated.sorted.bam.bai', checkIfExists: true), | ||
file(params.modules_testdata_base_path + 'genomics/homo_sapiens/genome/chr21/sequence/multi_intervals.bed', checkIfExists: true) | ||
] | ||
input[1] = [ | ||
[ id:'test'], | ||
file(params.modules_testdata_base_path + 'genomics/homo_sapiens/genome/chr21/sequence/genome.fasta', checkIfExists: true) | ||
] | ||
""" | ||
} | ||
} | ||
|
||
then { | ||
assertAll( | ||
{ assert process.success }, | ||
{ assert snapshot( | ||
process.out, | ||
path(process.out.versions[0]).yaml | ||
).match() } | ||
) | ||
} | ||
|
||
} | ||
|
||
} |
Oops, something went wrong.