Skip to content

Commit bb79d36

Browse files
committed
tests: switch bivariateremlldms setup to makegrmpart
1 parent 284ced5 commit bb79d36

2 files changed

Lines changed: 31 additions & 49 deletions

File tree

modules/nf-core/gcta/bivariateremlldms/tests/helpers/makegrm/main.nf

Lines changed: 0 additions & 36 deletions
This file was deleted.

modules/nf-core/gcta/bivariateremlldms/tests/main.nf.test

Lines changed: 31 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ nextflow_process {
77
tag "modules_nfcore"
88
tag "gcta"
99
tag "gcta/bivariateremlldms"
10-
tag "tests/helpers/makegrm"
10+
tag "gcta/makegrmpart"
1111
tag "gawk"
1212

1313
setup {
@@ -73,15 +73,24 @@ nextflow_process {
7373
}
7474
}
7575

76-
run("GCTA_MAKEGRM_HELPER", alias: "GCTA_MAKEGRM_LDMS1") {
77-
script "../tests/helpers/makegrm/main.nf"
76+
run("GCTA_MAKEGRMPART", alias: "GCTA_MAKEGRM_LDMS1") {
77+
script "../../makegrmpart/main.nf"
7878
process {
7979
"""
80+
file('plink_simulated.mbfile').text = 'plink_simulated\\n'
81+
8082
input[0] = [
81-
[ id:'plink_simulated_ldms1.part_1_1' ],
82-
file(params.modules_testdata_base_path + 'genomics/homo_sapiens/popgen/plink_simulated.bed', checkIfExists: true),
83-
file(params.modules_testdata_base_path + 'genomics/homo_sapiens/popgen/plink_simulated.bim', checkIfExists: true),
84-
file(params.modules_testdata_base_path + 'genomics/homo_sapiens/popgen/plink_simulated.fam', checkIfExists: true)
83+
[ id:'plink_simulated_ldms1', part_gcta_job:1, nparts_gcta:1 ],
84+
file('plink_simulated.mbfile'),
85+
[
86+
file(params.modules_testdata_base_path + 'genomics/homo_sapiens/popgen/plink_simulated.bed', checkIfExists: true)
87+
],
88+
[
89+
file(params.modules_testdata_base_path + 'genomics/homo_sapiens/popgen/plink_simulated.bim', checkIfExists: true)
90+
],
91+
[
92+
file(params.modules_testdata_base_path + 'genomics/homo_sapiens/popgen/plink_simulated.fam', checkIfExists: true)
93+
]
8594
]
8695
input[1] = [
8796
[ id:'plink_random_selected_snp' ],
@@ -91,15 +100,24 @@ nextflow_process {
91100
}
92101
}
93102

94-
run("GCTA_MAKEGRM_HELPER", alias: "GCTA_MAKEGRM_LDMS2") {
95-
script "../tests/helpers/makegrm/main.nf"
103+
run("GCTA_MAKEGRMPART", alias: "GCTA_MAKEGRM_LDMS2") {
104+
script "../../makegrmpart/main.nf"
96105
process {
97106
"""
107+
file('plink_simulated.mbfile').text = 'plink_simulated\\n'
108+
98109
input[0] = [
99-
[ id:'plink_simulated_ldms2.part_1_1' ],
100-
file(params.modules_testdata_base_path + 'genomics/homo_sapiens/popgen/plink_simulated.bed', checkIfExists: true),
101-
file(params.modules_testdata_base_path + 'genomics/homo_sapiens/popgen/plink_simulated.bim', checkIfExists: true),
102-
file(params.modules_testdata_base_path + 'genomics/homo_sapiens/popgen/plink_simulated.fam', checkIfExists: true)
110+
[ id:'plink_simulated_ldms2', part_gcta_job:1, nparts_gcta:1 ],
111+
file('plink_simulated.mbfile'),
112+
[
113+
file(params.modules_testdata_base_path + 'genomics/homo_sapiens/popgen/plink_simulated.bed', checkIfExists: true)
114+
],
115+
[
116+
file(params.modules_testdata_base_path + 'genomics/homo_sapiens/popgen/plink_simulated.bim', checkIfExists: true)
117+
],
118+
[
119+
file(params.modules_testdata_base_path + 'genomics/homo_sapiens/popgen/plink_simulated.fam', checkIfExists: true)
120+
]
103121
]
104122
input[1] = GAWK_COMPLEMENT_VARIANTS.out.output
105123
"""

0 commit comments

Comments
 (0)