-
Notifications
You must be signed in to change notification settings - Fork 736
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Swap hicpca to nf-test * Fix test * Update snapshot
- Loading branch information
Showing
7 changed files
with
225 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
nextflow_process { | ||
|
||
name "Test Process HICEXPLORER_HICPCA" | ||
script "../main.nf" | ||
process "HICEXPLORER_HICPCA" | ||
|
||
tag "modules" | ||
tag "modules_nfcore" | ||
tag "hicexplorer" | ||
tag "hicexplorer/hicpca" | ||
|
||
test("mm9 chr1") { | ||
|
||
when { | ||
process { | ||
""" | ||
input[0] = [ | ||
[ id:'test' ], // meta map | ||
file('https://github.com/deeptools/HiCExplorer/raw/master/hicexplorer/test/test_data/hicPCA/mm9_reduced_chr1.cool', checkIfExists: true) | ||
] | ||
""" | ||
} | ||
} | ||
|
||
then { | ||
assertAll( | ||
{ assert process.success }, | ||
{ assert snapshot(process.out).match() } | ||
) | ||
} | ||
|
||
} | ||
|
||
test("mm9 chr1 - stub") { | ||
|
||
options "-stub" | ||
|
||
when { | ||
process { | ||
""" | ||
input[0] = [ | ||
[ id:'test' ], // meta map | ||
file('https://github.com/deeptools/HiCExplorer/raw/master/hicexplorer/test/test_data/hicPCA/mm9_reduced_chr1.cool', checkIfExists: true) | ||
] | ||
""" | ||
} | ||
} | ||
|
||
then { | ||
assertAll( | ||
{ assert process.success }, | ||
{ assert snapshot(process.out).match() } | ||
) | ||
} | ||
|
||
} | ||
|
||
} |
144 changes: 144 additions & 0 deletions
144
modules/nf-core/hicexplorer/hicpca/tests/main.nf.test.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,144 @@ | ||
{ | ||
"mm9 chr1": { | ||
"content": [ | ||
{ | ||
"0": [ | ||
[ | ||
{ | ||
"id": "test" | ||
}, | ||
[ | ||
"test_pca1.bigwig:md5,e228fde481bedea641bcd0204bb663a4", | ||
"test_pca2.bigwig:md5,109c0d3cc70ecaf3647f3293504a9683" | ||
] | ||
] | ||
], | ||
"1": [ | ||
[ | ||
{ | ||
"id": "test" | ||
}, | ||
"test_pca1.bigwig:md5,e228fde481bedea641bcd0204bb663a4" | ||
] | ||
], | ||
"2": [ | ||
[ | ||
{ | ||
"id": "test" | ||
}, | ||
"test_pca2.bigwig:md5,109c0d3cc70ecaf3647f3293504a9683" | ||
] | ||
], | ||
"3": [ | ||
"versions.yml:md5,54775e8cd6ce193be8705000c3279192" | ||
], | ||
"pca1": [ | ||
[ | ||
{ | ||
"id": "test" | ||
}, | ||
"test_pca1.bigwig:md5,e228fde481bedea641bcd0204bb663a4" | ||
] | ||
], | ||
"pca2": [ | ||
[ | ||
{ | ||
"id": "test" | ||
}, | ||
"test_pca2.bigwig:md5,109c0d3cc70ecaf3647f3293504a9683" | ||
] | ||
], | ||
"results": [ | ||
[ | ||
{ | ||
"id": "test" | ||
}, | ||
[ | ||
"test_pca1.bigwig:md5,e228fde481bedea641bcd0204bb663a4", | ||
"test_pca2.bigwig:md5,109c0d3cc70ecaf3647f3293504a9683" | ||
] | ||
] | ||
], | ||
"versions": [ | ||
"versions.yml:md5,54775e8cd6ce193be8705000c3279192" | ||
] | ||
} | ||
], | ||
"meta": { | ||
"nf-test": "0.9.2", | ||
"nextflow": "24.10.3" | ||
}, | ||
"timestamp": "2025-01-09T11:04:14.308469361" | ||
}, | ||
"mm9 chr1 - stub": { | ||
"content": [ | ||
{ | ||
"0": [ | ||
[ | ||
{ | ||
"id": "test" | ||
}, | ||
[ | ||
"test_pca1.bigwig:md5,d41d8cd98f00b204e9800998ecf8427e", | ||
"test_pca2.bigwig:md5,d41d8cd98f00b204e9800998ecf8427e" | ||
] | ||
] | ||
], | ||
"1": [ | ||
[ | ||
{ | ||
"id": "test" | ||
}, | ||
"test_pca1.bigwig:md5,d41d8cd98f00b204e9800998ecf8427e" | ||
] | ||
], | ||
"2": [ | ||
[ | ||
{ | ||
"id": "test" | ||
}, | ||
"test_pca2.bigwig:md5,d41d8cd98f00b204e9800998ecf8427e" | ||
] | ||
], | ||
"3": [ | ||
"versions.yml:md5,54775e8cd6ce193be8705000c3279192" | ||
], | ||
"pca1": [ | ||
[ | ||
{ | ||
"id": "test" | ||
}, | ||
"test_pca1.bigwig:md5,d41d8cd98f00b204e9800998ecf8427e" | ||
] | ||
], | ||
"pca2": [ | ||
[ | ||
{ | ||
"id": "test" | ||
}, | ||
"test_pca2.bigwig:md5,d41d8cd98f00b204e9800998ecf8427e" | ||
] | ||
], | ||
"results": [ | ||
[ | ||
{ | ||
"id": "test" | ||
}, | ||
[ | ||
"test_pca1.bigwig:md5,d41d8cd98f00b204e9800998ecf8427e", | ||
"test_pca2.bigwig:md5,d41d8cd98f00b204e9800998ecf8427e" | ||
] | ||
] | ||
], | ||
"versions": [ | ||
"versions.yml:md5,54775e8cd6ce193be8705000c3279192" | ||
] | ||
} | ||
], | ||
"meta": { | ||
"nf-test": "0.9.2", | ||
"nextflow": "24.10.3" | ||
}, | ||
"timestamp": "2025-01-09T11:04:26.856478191" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.