-
Notifications
You must be signed in to change notification settings - Fork 741
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added nftests to gseagsea * Update input files * fix nftests * Address PR comments * Add seed setting parameter for stabilizing results * Fix linting * Add default random seed * Update datasets paths --------- Co-authored-by: Simon Pearce <[email protected]>
- Loading branch information
1 parent
8dd6297
commit 258399c
Showing
8 changed files
with
853 additions
and
749 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
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,78 @@ | ||
nextflow_process { | ||
|
||
name "Test Process GSEA_GSEA" | ||
script "../main.nf" | ||
process "GSEA_GSEA" | ||
|
||
tag "modules" | ||
tag "modules_nfcore" | ||
tag "gsea_gsea" | ||
tag "gsea" | ||
tag "gsea/gsea" | ||
|
||
test("test") { | ||
|
||
when { | ||
process { | ||
""" | ||
input[0] = [['id':'Condition_genotype_WT_KO', 'variable':'Condition genotype', 'reference':'WT', 'target':'KO', 'blocking':'batch'], file("https://github.com/nf-core/test-datasets/raw/refs/heads/modules/data/genomics/mus_musculus/gene_set_analysis/Condition_treatment_Control_Treated.gct", checkIfExists:true), file("https://github.com/nf-core/test-datasets/raw/refs/heads/modules/data/genomics/mus_musculus/gene_set_analysis/Condition_genotype_WT_KO.cls", checkIfExists:true), file("https://github.com/nf-core/test-datasets/raw/refs/heads/modules/data/genomics/mus_musculus/gene_set_analysis/mh.all.v2022.1.Mm.symbols.gmt", checkIfExists:true)] | ||
input[1] = ['WT', 'KO'] | ||
input[2] = file("https://github.com/nf-core/test-datasets/raw/refs/heads/modules/data/genomics/mus_musculus/gene_set_analysis/Mus_musculus.anno.feature_metadata.chip", checkIfExists:true) | ||
""" | ||
} | ||
} | ||
|
||
then { | ||
assertAll ( | ||
{ assert process.success }, | ||
{ assert snapshot( | ||
process.out.rpt.collect{ meta,rpt -> file(rpt).name }, //assert unstable file | ||
process.out.index_html.collect{ meta,index_html -> file(index_html).name }, //assert unstable file | ||
process.out.heat_map_corr_plot, | ||
process.out.report_tsvs_ref, | ||
process.out.report_htmls_ref.collect{ meta,report_htmls_ref -> file(report_htmls_ref).name }, //assert unstable file | ||
process.out.report_tsvs_target, | ||
process.out.report_htmls_target.collect{ meta,report_htmls_target -> file(report_htmls_target).name }, //assert unstable file | ||
process.out.ranked_gene_list, | ||
process.out.gene_set_sizes, | ||
process.out.histogram.collect{ meta,histogram -> file(histogram).name }, //assert unstable file | ||
process.out.heatmap.collect{ meta,heatmap -> file(heatmap).name }, //assert unstable file | ||
process.out.pvalues_vs_nes_plot.collect{ meta,pvalues_vs_nes_plot -> file(pvalues_vs_nes_plot).name }, //assert unstable file | ||
process.out.ranked_list_corr.collect{ meta,ranked_list_corr -> file(ranked_list_corr).name }, //assert unstable file | ||
process.out.butterfly_plot.collect{ meta,butterfly_plot -> file(butterfly_plot).name }, //assert unstable file | ||
process.out.gene_set_tsv, | ||
process.out.gene_set_html[0][1].collect{ file(it).name }, //assert unstable file | ||
process.out.gene_set_heatmap[0][1].collect{ file(it).name }, // unstable file and unstable name | ||
process.out.snapshot[0][1].collect{ file(it).name }, //assert unstable file | ||
process.out.gene_set_enplot[0][1].collect{ file(it).name }, // unstable file and unstable name | ||
process.out.gene_set_dist[0][1].collect{ file(it).name }, //assert unstable file | ||
process.out.archive, | ||
process.out.versions | ||
).match() | ||
} | ||
) | ||
} | ||
} | ||
|
||
test("stub") { | ||
|
||
options "-stub" | ||
|
||
when { | ||
process { | ||
""" | ||
input[0] = [['id':'Condition_genotype_WT_KO', 'variable':'Condition genotype', 'reference':'WT', 'target':'KO', 'blocking':'batch'], file("https://github.com/nf-core/test-datasets/raw/refs/heads/modules/data/genomics/mus_musculus/gene_set_analysis/Condition_treatment_Control_Treated.gct", checkIfExists:true), file("https://github.com/nf-core/test-datasets/raw/refs/heads/modules/data/genomics/mus_musculus/gene_set_analysis/Condition_genotype_WT_KO.cls", checkIfExists:true), file("https://github.com/nf-core/test-datasets/raw/refs/heads/modules/data/genomics/mus_musculus/gene_set_analysis/mh.all.v2022.1.Mm.symbols.gmt", checkIfExists:true)] | ||
input[1] = ['WT', 'KO'] | ||
input[2] = file("https://github.com/nf-core/test-datasets/raw/refs/heads/modules/data/genomics/mus_musculus/gene_set_analysis/Mus_musculus.anno.feature_metadata.chip", checkIfExists:true) | ||
""" | ||
} | ||
} | ||
|
||
then { | ||
assertAll ( | ||
{ assert process.success }, | ||
{ assert snapshot(process.out).match() }, | ||
) | ||
} | ||
} | ||
} |
Oops, something went wrong.