-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #103 from alanmmobbs93/update/create-test-create_a…
…nnotated_tables Create nf-tests for create_annotated_tables module
- Loading branch information
Showing
9 changed files
with
111 additions
and
14 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,8 @@ | ||
channels: | ||
- conda-forge | ||
dependencies: | ||
- conda-forge::r-dplyr=1.1.4 | ||
- conda-forge::r-ggplot2=3.4.4 | ||
- conda-forge::r-readr=2.1.5 | ||
- conda-forge::r-stringr=1.5.0 | ||
- conda-forge::r-tidyr=1.3.0 |
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,31 @@ | ||
nextflow_process { | ||
|
||
name "Test Process CREATE_ANNOTATED_TABLES" | ||
script "../main.nf" | ||
process "CREATE_ANNOTATED_TABLES" | ||
tag "module" | ||
|
||
test("Should run without failures") { | ||
|
||
when { | ||
process { | ||
""" | ||
// Normalized file | ||
input[0] = file(params.pipelines_testdata_base_path + 'nanostring/modules_test_data/test_profile/normalized_counts.tsv', checkIfExists: true) | ||
// Sample sheet | ||
input[1] = file(params.pipelines_testdata_base_path + 'nanostring/samplesheets/samplesheet_test.csv', checkIfExists: true) | ||
""" | ||
} | ||
} | ||
|
||
then { | ||
assertAll( | ||
{ assert process.success }, | ||
{ assert snapshot(process.out).match() } | ||
) | ||
} | ||
|
||
} | ||
|
||
} |
43 changes: 43 additions & 0 deletions
43
modules/local/create_annotated_tables/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,43 @@ | ||
{ | ||
"Should run without failures": { | ||
"content": [ | ||
{ | ||
"0": [ | ||
"counts_Norm_GEX_ENDO.tsv:md5,5992886680cb6fc6f3e901e79752d544" | ||
], | ||
"1": [ | ||
"counts_Norm_GEX_HK.tsv:md5,9d8a0503df864a82990648348131be21" | ||
], | ||
"2": [ | ||
[ | ||
"Norm_GEX_ENDO_mqc.tsv:md5,5992886680cb6fc6f3e901e79752d544", | ||
"Norm_GEX_HK_mqc.tsv:md5,9d8a0503df864a82990648348131be21" | ||
] | ||
], | ||
"3": [ | ||
"versions.yml:md5,43b871def59fb08862ac85e636101fe5" | ||
], | ||
"annotated_data_mqc": [ | ||
[ | ||
"Norm_GEX_ENDO_mqc.tsv:md5,5992886680cb6fc6f3e901e79752d544", | ||
"Norm_GEX_HK_mqc.tsv:md5,9d8a0503df864a82990648348131be21" | ||
] | ||
], | ||
"annotated_endo_data": [ | ||
"counts_Norm_GEX_ENDO.tsv:md5,5992886680cb6fc6f3e901e79752d544" | ||
], | ||
"annotated_hk_data": [ | ||
"counts_Norm_GEX_HK.tsv:md5,9d8a0503df864a82990648348131be21" | ||
], | ||
"versions": [ | ||
"versions.yml:md5,43b871def59fb08862ac85e636101fe5" | ||
] | ||
} | ||
], | ||
"meta": { | ||
"nf-test": "0.9.0", | ||
"nextflow": "24.10.1" | ||
}, | ||
"timestamp": "2024-11-20T14:10:50.997813905" | ||
} | ||
} |
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
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