-
Notifications
You must be signed in to change notification settings - Fork 713
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Bump shinyngs * Fix containers * Migrate shinyngs/app to nf-test * Bump versions again * Bump conda envs too * Bump snapshots for versions * shinyngs/staticexploratory -> nftest * Appease eclint --------- Co-authored-by: Adam Talbot <[email protected]>
- Loading branch information
1 parent
3f6c1f1
commit 2876a02
Showing
23 changed files
with
475 additions
and
192 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,4 @@ channels: | |
- bioconda | ||
- defaults | ||
dependencies: | ||
- bioconda::r-shinyngs=1.8.5 | ||
- bioconda::r-shinyngs=1.8.7 |
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,133 @@ | ||
nextflow_process { | ||
|
||
name "Test Process SHINYNGS_APP" | ||
script "../main.nf" | ||
process "SHINYNGS_APP" | ||
|
||
tag "modules" | ||
tag "modules_nfcore" | ||
tag "shinyngs" | ||
tag "shinyngs/app" | ||
|
||
test("mouse - multi matrix") { | ||
|
||
config './nextflow.config' | ||
|
||
when { | ||
process { | ||
""" | ||
expression_test_data_dir = params.modules_testdata_base_path + 'genomics/mus_musculus/rnaseq_expression/' | ||
expression_sample_sheet = file(expression_test_data_dir + 'SRP254919.samplesheet.csv', checkIfExists: true) | ||
expression_feature_meta = file(expression_test_data_dir + 'SRP254919.gene_meta.tsv', checkIfExists: true) | ||
raw_expression_matrix_file = file(expression_test_data_dir + 'SRP254919.salmon.merged.gene_counts.top1000cov.tsv', checkIfExists: true) | ||
expression_contrasts = file(expression_test_data_dir + 'SRP254919.contrasts.csv', checkIfExists: true) | ||
expression_differential = file(expression_test_data_dir + 'SRP254919.salmon.merged.deseq2.results.tsv', checkIfExists: true) | ||
// Copy some inputs for testing the multi-matrix functionality | ||
raw_expression_matrix_file.copyTo('normalised.tsv') | ||
normalised_expression_matrix_file = file('normalised.tsv') | ||
expression_differential.copyTo('second_contrast_stats.tsv') | ||
second_contrast_stats = file('second_contrast_stats.tsv') | ||
contrast_stats_assay = Channel.value(1) | ||
input[0] = [ [ "id":"SRP254919" ], expression_sample_sheet, expression_feature_meta, [ raw_expression_matrix_file, normalised_expression_matrix_file ] ] | ||
input[1] = [ [ "id":"SRP254919" ], expression_contrasts, [ expression_differential, second_contrast_stats ] ] | ||
input[2] = contrast_stats_assay | ||
""" | ||
} | ||
} | ||
|
||
then { | ||
assertAll( | ||
{ assert process.success }, | ||
{ assert snapshot( | ||
file(process.out.app[0][1]).name, | ||
process.out.app[0][2], | ||
process.out.versions | ||
).match() } | ||
) | ||
} | ||
} | ||
|
||
test("mouse - single matrix") { | ||
|
||
config './nextflow.config' | ||
|
||
when { | ||
process { | ||
""" | ||
expression_test_data_dir = params.modules_testdata_base_path + 'genomics/mus_musculus/rnaseq_expression/' | ||
expression_sample_sheet = file(expression_test_data_dir + 'SRP254919.samplesheet.csv', checkIfExists: true) | ||
expression_feature_meta = file(expression_test_data_dir + 'SRP254919.gene_meta.tsv', checkIfExists: true) | ||
raw_expression_matrix_file = file(expression_test_data_dir + 'SRP254919.salmon.merged.gene_counts.top1000cov.tsv', checkIfExists: true) | ||
expression_contrasts = file(expression_test_data_dir + 'SRP254919.contrasts.csv', checkIfExists: true) | ||
expression_differential = file(expression_test_data_dir + 'SRP254919.salmon.merged.deseq2.results.tsv', checkIfExists: true) | ||
// Copy some inputs for testing the multi-matrix functionality | ||
expression_differential.copyTo('second_contrast_stats.tsv') | ||
second_contrast_stats = file('second_contrast_stats.tsv') | ||
contrast_stats_assay = Channel.value(1) | ||
input[0] = [ [ "id":"SRP254919" ], expression_sample_sheet, expression_feature_meta, [ raw_expression_matrix_file ] ] | ||
input[1] = [ [ "id":"SRP254919" ], expression_contrasts, [ expression_differential, second_contrast_stats ] ] | ||
input[2] = contrast_stats_assay | ||
""" | ||
} | ||
} | ||
|
||
then { | ||
assertAll( | ||
{ assert process.success }, | ||
{ assert snapshot( | ||
file(process.out.app[0][1]).name, | ||
process.out.app[0][2], | ||
process.out.versions | ||
).match() } | ||
) | ||
} | ||
} | ||
|
||
test("mouse - stub") { | ||
|
||
options "-stub" | ||
|
||
when { | ||
process { | ||
""" | ||
expression_test_data_dir = params.modules_testdata_base_path + 'genomics/mus_musculus/rnaseq_expression/' | ||
expression_sample_sheet = file(expression_test_data_dir + 'SRP254919.samplesheet.csv', checkIfExists: true) | ||
expression_feature_meta = file(expression_test_data_dir + 'SRP254919.gene_meta.tsv', checkIfExists: true) | ||
raw_expression_matrix_file = file(expression_test_data_dir + 'SRP254919.salmon.merged.gene_counts.top1000cov.tsv', checkIfExists: true) | ||
expression_contrasts = file(expression_test_data_dir + 'SRP254919.contrasts.csv', checkIfExists: true) | ||
expression_differential = file(expression_test_data_dir + 'SRP254919.salmon.merged.deseq2.results.tsv', checkIfExists: true) | ||
// Copy some inputs for testing the multi-matrix functionality | ||
expression_differential.copyTo('second_contrast_stats.tsv') | ||
second_contrast_stats = file('second_contrast_stats.tsv') | ||
contrast_stats_assay = Channel.value(1) | ||
input[0] = [ [ "id":"SRP254919" ], expression_sample_sheet, expression_feature_meta, [ raw_expression_matrix_file ] ] | ||
input[1] = [ [ "id":"SRP254919" ], expression_contrasts, [ expression_differential, second_contrast_stats ] ] | ||
input[2] = contrast_stats_assay | ||
""" | ||
} | ||
} | ||
|
||
then { | ||
assertAll( | ||
{ assert process.success }, | ||
{ assert snapshot( | ||
file(process.out.app[0][1]).name, | ||
process.out.app[0][2], | ||
process.out.versions | ||
).match() } | ||
) | ||
} | ||
} | ||
} |
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,44 @@ | ||
{ | ||
"mouse - stub": { | ||
"content": [ | ||
"data.rds", | ||
"app.R:md5,d41d8cd98f00b204e9800998ecf8427e", | ||
[ | ||
"versions.yml:md5,09111b64e01c10c1c0788e9700488e5c" | ||
] | ||
], | ||
"meta": { | ||
"nf-test": "0.8.4", | ||
"nextflow": "23.10.1" | ||
}, | ||
"timestamp": "2024-05-02T15:29:41.473618" | ||
}, | ||
"mouse - multi matrix": { | ||
"content": [ | ||
"data.rds", | ||
"app.R:md5,bedcfc45b6cdcc2b8fe3627987e2b17a", | ||
[ | ||
"versions.yml:md5,09111b64e01c10c1c0788e9700488e5c" | ||
] | ||
], | ||
"meta": { | ||
"nf-test": "0.8.4", | ||
"nextflow": "23.10.1" | ||
}, | ||
"timestamp": "2024-05-02T15:29:06.587538" | ||
}, | ||
"mouse - single matrix": { | ||
"content": [ | ||
"data.rds", | ||
"app.R:md5,bedcfc45b6cdcc2b8fe3627987e2b17a", | ||
[ | ||
"versions.yml:md5,09111b64e01c10c1c0788e9700488e5c" | ||
] | ||
], | ||
"meta": { | ||
"nf-test": "0.8.4", | ||
"nextflow": "23.10.1" | ||
}, | ||
"timestamp": "2024-05-02T15:29:26.649048" | ||
} | ||
} |
4 changes: 0 additions & 4 deletions
4
...ules/nf-core/shinyngs/app/nextflow.config → ...f-core/shinyngs/app/tests/nextflow.config
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,2 @@ | ||
shinyngs/app: | ||
- "modules/nf-core/shinyngs/app/**" |
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 |
---|---|---|
|
@@ -4,4 +4,4 @@ channels: | |
- bioconda | ||
- defaults | ||
dependencies: | ||
- bioconda::r-shinyngs=1.8.5 | ||
- bioconda::r-shinyngs=1.8.7 |
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 |
---|---|---|
|
@@ -4,4 +4,4 @@ channels: | |
- bioconda | ||
- defaults | ||
dependencies: | ||
- bioconda::r-shinyngs=1.8.5 | ||
- bioconda::r-shinyngs=1.8.7 |
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.