Skip to content

Commit

Permalink
Merge branch 'master' into bump/gatk4
Browse files Browse the repository at this point in the history
  • Loading branch information
matthdsm authored Feb 14, 2024
2 parents 14a62a5 + 6a3c74c commit 000b48d
Show file tree
Hide file tree
Showing 7 changed files with 121 additions and 92 deletions.
84 changes: 84 additions & 0 deletions modules/nf-core/gatk4/reblockgvcf/tests/main.nf.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
nextflow_process {

name "Test Process GATK4_REBLOCKGVCF"
script "../main.nf"
process "GATK4_REBLOCKGVCF"

tag "modules"
tag "modules_nfcore"
tag "gatk4"
tag "gatk4/reblockgvcf"

test("test_gatk4_reblockgvcf") {
when {
process {
"""
input[0] = [[ id:'test', single_end:false ], file(params.test_data['sarscov2']['illumina']['test_vcf_gz'], checkIfExists: true), file(params.test_data['sarscov2']['illumina']['test_vcf_gz_tbi'], checkIfExists: true), []]
input[1] = file(params.test_data['sarscov2']['genome']['genome_fasta'], checkIfExists: true)
input[2] = file(params.test_data['sarscov2']['genome']['genome_fasta_fai'], checkIfExists: true)
input[3] = file(params.test_data['sarscov2']['genome']['genome_dict'], checkIfExists: true)
input[4] = []
input[5] = []
"""
}
}

then {
assertAll(
{ assert process.success },
{ assert snapshot(file(process.out.vcf.get(0).get(1)).name, file(process.out.vcf.get(0).get(2)).name).match("test_gatk4_reblockgvcf") }
)
}

}

test("test_gatk4_reblockgvcf_intervals") {
when {
process {
"""
input[0] = [[ id:'test', single_end:false ], file(params.test_data['sarscov2']['illumina']['test_vcf_gz'], checkIfExists: true), file(params.test_data['sarscov2']['illumina']['test_vcf_gz_tbi'], checkIfExists: true), file(params.test_data['sarscov2']['genome']['test_bed'], checkIfExists: true)]
input[1] = file(params.test_data['sarscov2']['genome']['genome_fasta'], checkIfExists: true)
input[2] = file(params.test_data['sarscov2']['genome']['genome_fasta_fai'], checkIfExists: true)
input[3] = file(params.test_data['sarscov2']['genome']['genome_dict'], checkIfExists: true)
input[4] = []
input[5] = []
"""
}
}

then {
assertAll(
{ assert process.success },
{ assert snapshot(file(process.out.vcf.get(0).get(1)).name, file(process.out.vcf.get(0).get(2)).name).match("test_gatk4_reblockgvcf_intervals") }
)
}

}

test("test_gatk4_reblockgvcf_stub") {

options "-stub"

when {
process {
"""
input[0] = [[ id:'test', single_end:false ], file(params.test_data['sarscov2']['illumina']['test_vcf_gz'], checkIfExists: true), file(params.test_data['sarscov2']['illumina']['test_vcf_gz_tbi'], checkIfExists: true), []]
input[1] = file(params.test_data['sarscov2']['genome']['genome_fasta'], checkIfExists: true)
input[2] = file(params.test_data['sarscov2']['genome']['genome_fasta_fai'], checkIfExists: true)
input[3] = file(params.test_data['sarscov2']['genome']['genome_dict'], checkIfExists: true)
input[4] = []
input[5] = []
"""
}
}

then {
assertAll(
{ assert process.success },
{ assert snapshot(file(process.out.vcf.get(0).get(1)).name, file(process.out.vcf.get(0).get(2)).name).match("test_gatk4_reblockgvcf_stub") }
)
}

}

}
35 changes: 35 additions & 0 deletions modules/nf-core/gatk4/reblockgvcf/tests/main.nf.test.snap

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions modules/nf-core/gatk4/reblockgvcf/tests/tags.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
gatk4/reblockgvcf:
- "modules/nf-core/gatk4/reblockgvcf/**"
3 changes: 0 additions & 3 deletions tests/config/pytest_modules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -840,9 +840,6 @@ gatk4/printreads:
gatk4/printsvevidence:
- modules/nf-core/gatk4/printsvevidence/**
- tests/modules/nf-core/gatk4/printsvevidence/**
gatk4/reblockgvcf:
- modules/nf-core/gatk4/reblockgvcf/**
- tests/modules/nf-core/gatk4/reblockgvcf/**
gatk4/revertsam:
- modules/nf-core/gatk4/revertsam/**
- tests/modules/nf-core/gatk4/revertsam/**
Expand Down
55 changes: 0 additions & 55 deletions tests/modules/nf-core/gatk4/reblockgvcf/main.nf

This file was deleted.

5 changes: 0 additions & 5 deletions tests/modules/nf-core/gatk4/reblockgvcf/nextflow.config

This file was deleted.

29 changes: 0 additions & 29 deletions tests/modules/nf-core/gatk4/reblockgvcf/test.yml

This file was deleted.

0 comments on commit 000b48d

Please sign in to comment.