forked from nf-core/phaseimpute
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.nf.test
More file actions
65 lines (54 loc) · 1.89 KB
/
main.nf.test
File metadata and controls
65 lines (54 loc) · 1.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
nextflow_process {
name "Test Process MINIMAC4_COMPRESSREF"
script "../main.nf"
process "MINIMAC4_COMPRESSREF"
tag "modules"
tag "modules_nfcore"
tag "minimac4"
tag "minimac4/compressref"
test("homo sapiens - vcf") {
when {
process {
"""
input[0] = Channel.of([
[ id:'input', single_end:false ], // meta map
file(params.modules_testdata_base_path + "genomics/homo_sapiens/popgen/1000GP.chr22.vcf.gz", checkIfExists: true),
file(params.modules_testdata_base_path + "genomics/homo_sapiens/popgen/1000GP.chr22.vcf.gz.csi", checkIfExists: true),
])
"""
}
}
then {
assertAll(
{ assert process.success },
{ assert snapshot(
process.out.msav.collect{ file(it[1]).name },
["versions.yml": path(process.out.versions.get(0)).yaml]
).match() }
)
}
}
test("homo sapiens - vcf - stub") {
options "-stub"
when {
process {
"""
input[0] = Channel.of([
[ id:'input', single_end:false ], // meta map
file(params.modules_testdata_base_path + "genomics/homo_sapiens/popgen/1000GP.chr22.vcf.gz", checkIfExists: true),
file(params.modules_testdata_base_path + "genomics/homo_sapiens/popgen/1000GP.chr22.vcf.gz.csi", checkIfExists: true),
])
"""
}
}
then {
assertAll(
{ assert process.success },
{ assert snapshot(
process.out.msav,
["versions.yml": path(process.out.versions.get(0)).yaml]
).match() }
)
}
}
}