-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create nf-tests for create_annotated_tables module #103
Merged
alanmmobbs93
merged 17 commits into
nf-core:dev
from
alanmmobbs93:update/create-test-create_annotated_tables
Nov 22, 2024
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
e765843
Merge pull request #75 from nf-core/dev
apeltzer ff33b52
Merge branch 'nf-core:dev' into dev
alanmmobbs93 cfb9c24
update module structure
alanmmobbs93 1ec1129
update include statement
alanmmobbs93 ed60a51
create test
alanmmobbs93 50d61ec
Merge branch 'dev' of https://github.com/nf-core/nanostring into dev
alanmmobbs93 31a7a87
Merge branch 'dev' of https://github.com/alanmmobbs93/nanostring into…
alanmmobbs93 492e285
correct module name
alanmmobbs93 84bb519
update snaps
alanmmobbs93 cec62c6
Update changelog
alanmmobbs93 77b7ece
Update changelog
alanmmobbs93 4cb2ba9
Merge branch 'dev' into update/create-test-create_annotated_tables
alanmmobbs93 2a6a349
Merge remote-tracking branch 'origin' into update/create-test-create_…
atrigila 78d7478
remove normalize.nf subworkflow
alanmmobbs93 68ef4dc
sort create_annotated_table input to solve consistency
alanmmobbs93 4e395de
update pipeline snapshot
alanmmobbs93 c1eaaa2
fix nacho_normalize test snaps
alanmmobbs93 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well done! :)