-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.nf.test
77 lines (65 loc) · 2.06 KB
/
main.nf.test
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
66
67
68
69
70
71
72
73
74
75
76
77
nextflow_process {
name "Test Process BRAKER3"
script "../main.nf"
config "./nextflow.config"
process "BRAKER3"
tag "modules"
tag "modules_gallvp"
tag "braker3"
test("braker3 - test - 4") {
when {
process {
"""
input[0] = [
[ id:'test', single_end:false ], // meta map
file('https://raw.githubusercontent.com/Gaius-Augustus/BRAKER/f58479fe5bb13a9e51c3ca09cb9e137cab3b8471/example/genome.fa', checkIfExists: true)
]
input[1] = file('http://topaz.gatech.edu/GeneMark/Braker/RNAseq.bam', checkIfExists: true)
input[2] = []
input[3] = []
input[4] = []
input[5] = []
"""
}
}
then {
assertAll(
{ assert process.success },
{ assert snapshot(
process.out.aa,
process.out.cds,
process.out.citations,
process.out.gff3,
process.out.gtf,
process.out.hintsfile,
process.out.versions,
).match() },
{ assert file(process.out.log[0][1]).text.contains('BRAKER RUN FINISHED') }
)
}
}
test("sarscov2 - fasta - stub") {
options '-stub'
when {
process {
"""
input[0] = [
[ id:'test', single_end:false ], // meta map
file(params.modules_testdata_base_path + 'genomics/sarscov2/genome/genome.fasta', checkIfExists: true),
]
input[1] = []
input[2] = []
input[3] = []
input[4] = []
input[5] = []
"""
}
}
then {
assertAll(
{ assert process.success },
{ assert snapshot(process.out).match() }
)
}
}
}