@@ -41,38 +41,12 @@ nextflow_process {
4141 test("genomes - checkm2 qc_table") {
4242
4343 setup {
44- run("UNTAR") {
45- script "../../untar/main.nf"
46- process {
47- """
48- input[0] = channel
49- .fromPath("https://zenodo.org/records/14897628/files/checkm2_database.tar.gz", checkIfExists: true)
50- .map { dbfile -> [ [id: 'checkm2db'], dbfile ] }
51- """
52- }
53- }
54-
55- run("CHECKM2_PREDICT") {
56- script "../../checkm2/predict/main.nf"
57- process {
58- """
59- input[0] = [
60- [ id:'test_checkm2' ], // meta map
61- [file("https://github.com/nf-core/test-datasets/raw/refs/heads/magmap/testdata/GCA_002688505.1_ASM268850v1_genomic.fna.gz", checkIfExists: true),
62- file("https://github.com/nf-core/test-datasets/raw/refs/heads/magmap/testdata/GCF_004296495.1_ASM429649v1_genomic.fna.gz", checkIfExists: true)]
63- ]
64- input[1] = UNTAR.out.untar.map { meta, dir ->
65- [ [id: 'checkm2db'], file("\${dir}/*.dmnd")]
66- }
67- """
68- }
69- }
7044
7145 run("GAWK") {
7246 script "../../gawk/main.nf"
7347 process {
7448 """
75- input[0] = CHECKM2_PREDICT.out.checkm2_tsv
49+ input[0] = [[id: 'test'], file(params.modules_testdata_base_path + "delete_me/galah/checkm2_report.tsv", checkIfExists: true)]
7650 input[1] = []
7751 input[2] = false
7852 """
@@ -83,16 +57,14 @@ nextflow_process {
8357 when {
8458 process {
8559 """
86- ch_checkm_tsv = GAWK.out.output
87- | map { meta, tsv -> [ [id: "test"], tsv ] }
88-
8960 input[0] = Channel.of([
9061 [ id:'test' ], // meta map
9162 [file("https://github.com/nf-core/test-datasets/raw/refs/heads/magmap/testdata/GCA_002688505.1_ASM268850v1_genomic.fna.gz", checkIfExists: true),
9263 file("https://github.com/nf-core/test-datasets/raw/refs/heads/magmap/testdata/GCF_004296495.1_ASM429649v1_genomic.fna.gz", checkIfExists: true)]
9364 ])
94- .combine(ch_checkm_tsv, by: 0)
95- .map { meta, bins, tsv -> [ meta, bins, tsv, "checkm2" ] }
65+ .combine(GAWK.out.output, by: 0)
66+ // rename 'test' to 'input' to avoid name collision
67+ .map { meta, bins, tsv -> [ meta + [id: "input"], bins, tsv, "checkm2" ] }
9668 """
9769 }
9870 }
0 commit comments