-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added new test suite cases for version check
- Loading branch information
Showing
7 changed files
with
271 additions
and
0 deletions.
There are no files selected for viewing
35 changes: 35 additions & 0 deletions
35
gpunit_functionality/version_check/invalid_mix_species1_test.yml
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,35 @@ | ||
# Copyright (c) 2003-2022 Broad Institute, Inc., Massachusetts Institute of Technology, and Regents of the University of California. All rights reserved. | ||
#module: urn:lsid:broad.mit.edu:cancer.software.genepattern.module.analysis:00317:7 | ||
module: GSEAPreranked | ||
name: GSEAPreranked invalid_mix_species1_test | ||
description: Test the GSEA version check with files of mixed species no collapsing; expect an error. Note that we need to use remote files to trigger the check. | ||
params: | ||
ranked.list: "<%gpunit.testData%>gpunit/GSEAPreranked/v7/input/Diabetes_collapsed_symbols.rnk" | ||
gene.sets.database: [ "https://data.broadinstitute.org/gsea-msigdb/msigdb/release/2022.1.Hs/h.all.v2022.1.Hs.symbols.gmt", | ||
"https://data.broadinstitute.org/gsea-msigdb/msigdb/release/2022.1.Mm/m1.all.v2022.1.Mm.symbols.gmt" ] | ||
number.of.permutations: "10" | ||
collapse.dataset: "No_Collapse" | ||
chip.platform.file: "" | ||
omit.features.with.no.symbol.match: "true" | ||
collapsing.mode.for.probe.sets.with.more.than.one.match: "Max_probe" | ||
output.file.name: "<ranked.list_basename>.zip" | ||
scoring.scheme: "weighted" | ||
max.gene.set.size: "500" | ||
min.gene.set.size: "15" | ||
normalization.mode: "meandiv" | ||
randomization.mode: "no_balance" | ||
# Note that we use a fixed random seed rather than the 'timestamp' default so that we'll have reproducible test results | ||
random.seed: "149" | ||
create.svgs: "false" | ||
num.top.sets: "20" | ||
make.detailed.gene.set.report: "false" | ||
selected.gene.sets: "" | ||
dev.mode: "true" | ||
alt.delim: "" | ||
create.zip: "false" | ||
assertions: | ||
jobStatus: fail | ||
files: | ||
"stderr.txt": | ||
diffCmd: ../grepMessages.sh | ||
diff: "<%gpunit.resultData%>gpunit/GSEAPreranked/v7/output/version_check/invalid_mix_species1_test/stderrMatches.txt" |
35 changes: 35 additions & 0 deletions
35
gpunit_functionality/version_check/invalid_mix_species2_test.yml
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,35 @@ | ||
# Copyright (c) 2003-2022 Broad Institute, Inc., Massachusetts Institute of Technology, and Regents of the University of California. All rights reserved. | ||
#module: urn:lsid:broad.mit.edu:cancer.software.genepattern.module.analysis:00317:7 | ||
module: GSEAPreranked | ||
name: GSEAPreranked invalid_mix_species2_test | ||
description: Test the GSEAPreranked version check with files of mixed species no collapsing; expect an error. Note that we need to use remote files to trigger the check. | ||
params: | ||
ranked.list: "<%gpunit.testData%>gpunit/GSEAPreranked/v7/input/Diabetes_faked_ranking_for_test.rnk" | ||
gene.sets.database: [ "https://data.broadinstitute.org/gsea-msigdb/msigdb/release/2022.1.Hs/h.all.v2022.1.Hs.symbols.gmt" ] | ||
number.of.permutations: "10" | ||
collapse.dataset: "Collapse" | ||
chip.platform.file: "https://data.broadinstitute.org/gsea-msigdb/msigdb/annotations/mouse/Human_AFFY_HG_U133_Mouse_Orthologs_MSigDB.v2022.1.Mm.chip" | ||
# Changing the output.file.name for ease of testing | ||
output.file.name: "<ranked.list_basename>_collapsed.zip" | ||
scoring.scheme: "weighted" | ||
max.gene.set.size: "500" | ||
min.gene.set.size: "15" | ||
collapsing.mode.for.probe.sets.with.more.than.one.match: "Mean_of_probes" | ||
normalization.mode: "meandiv" | ||
randomization.mode: "no_balance" | ||
omit.features.with.no.symbol.match: "true" | ||
# Note that we use a fixed random seed rather than the 'timestamp' default so that we'll have reproducible test results | ||
random.seed: "149" | ||
create.svgs: "false" | ||
num.top.sets: "20" | ||
make.detailed.gene.set.report: "false" | ||
selected.gene.sets: "" | ||
dev.mode: "true" | ||
alt.delim: "" | ||
create.zip: "true" | ||
assertions: | ||
jobStatus: fail | ||
files: | ||
"stderr.txt": | ||
diffCmd: ../grepMessages.sh | ||
diff: "<%gpunit.resultData%>gpunit/GSEAPreranked/v7/output/version_check/invalid_mix_species2_test/stderrMatches.txt" |
38 changes: 38 additions & 0 deletions
38
gpunit_functionality/version_check/valid_same_vers_with_chip_test.yml
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,38 @@ | ||
# Copyright (c) 2003-2022 Broad Institute, Inc., Massachusetts Institute of Technology, and Regents of the University of California. All rights reserved. | ||
#module: urn:lsid:broad.mit.edu:cancer.software.genepattern.module.analysis:00317:7 | ||
module: GSEAPreranked | ||
name: GSEAPreranked valid_same_vers_with_chip_test | ||
description: Test the GSEAPreranked version check with files of matching version with collapsing. Note that we need to use remote files to trigger the check. | ||
params: | ||
ranked.list: "<%gpunit.testData%>gpunit/GSEAPreranked/v7/input/Diabetes_faked_ranking_for_test.rnk" | ||
gene.sets.database: [ "https://data.broadinstitute.org/gsea-msigdb/msigdb/release/2022.1.Hs/h.all.v2022.1.Hs.symbols.gmt" ] | ||
number.of.permutations: "10" | ||
collapse.dataset: "Collapse" | ||
chip.platform.file: "https://data.broadinstitute.org/gsea-msigdb/msigdb/annotations/human/Human_AFFY_HG_U133_MSigDB.v2022.1.Hs.chip" | ||
# Changing the output.file.name for ease of testing | ||
output.file.name: "<ranked.list_basename>_collapsed.zip" | ||
scoring.scheme: "weighted" | ||
max.gene.set.size: "500" | ||
min.gene.set.size: "15" | ||
collapsing.mode.for.probe.sets.with.more.than.one.match: "Mean_of_probes" | ||
normalization.mode: "meandiv" | ||
randomization.mode: "no_balance" | ||
omit.features.with.no.symbol.match: "true" | ||
# Note that we use a fixed random seed rather than the 'timestamp' default so that we'll have reproducible test results | ||
random.seed: "149" | ||
create.svgs: "false" | ||
num.top.sets: "20" | ||
make.detailed.gene.set.report: "false" | ||
selected.gene.sets: "" | ||
dev.mode: "true" | ||
alt.delim: "" | ||
create.zip: "true" | ||
assertions: | ||
jobStatus: success | ||
files: | ||
"results.edb": | ||
diffCmd: diff -q --strip-trailing-cr | ||
diff: "<%gpunit.resultData%>gpunit/GSEAPreranked/v7/output/version_check/valid_same_vers_with_chip_test/results.edb" | ||
"gene_sets.gmt": | ||
diffCmd: diff -q --strip-trailing-cr | ||
diff: "<%gpunit.resultData%>gpunit/GSEAPreranked/v7/output/version_check/valid_same_vers_with_chip_test/gene_sets.gmt" |
38 changes: 38 additions & 0 deletions
38
gpunit_functionality/version_check/valid_same_version_test.yml
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,38 @@ | ||
# Copyright (c) 2003-2022 Broad Institute, Inc., Massachusetts Institute of Technology, and Regents of the University of California. All rights reserved. | ||
#module: urn:lsid:broad.mit.edu:cancer.software.genepattern.module.analysis:00317:7 | ||
module: GSEAPreranked | ||
name: GSEAPreranked valid_same_version_test | ||
description: Test the GSEAPreranked version check with files of matching version and no collapsing. Note that we need to use remote files to trigger the check. | ||
params: | ||
ranked.list: "<%gpunit.testData%>gpunit/GSEAPreranked/v7/input/Diabetes_collapsed_symbols.rnk" | ||
gene.sets.database: [ "https://data.broadinstitute.org/gsea-msigdb/msigdb/release/2022.1.Hs/h.all.v2022.1.Hs.symbols.gmt", | ||
"https://data.broadinstitute.org/gsea-msigdb/msigdb/release/2022.1.Hs/c1.all.v2022.1.Hs.symbols.gmt" ] | ||
number.of.permutations: "10" | ||
collapse.dataset: "No_Collapse" | ||
chip.platform.file: "" | ||
omit.features.with.no.symbol.match: "true" | ||
collapsing.mode.for.probe.sets.with.more.than.one.match: "Max_probe" | ||
output.file.name: "<ranked.list_basename>.zip" | ||
scoring.scheme: "weighted" | ||
max.gene.set.size: "500" | ||
min.gene.set.size: "15" | ||
normalization.mode: "meandiv" | ||
randomization.mode: "no_balance" | ||
# Note that we use a fixed random seed rather than the 'timestamp' default so that we'll have reproducible test results | ||
random.seed: "149" | ||
create.svgs: "false" | ||
num.top.sets: "20" | ||
make.detailed.gene.set.report: "false" | ||
selected.gene.sets: "" | ||
dev.mode: "true" | ||
alt.delim: "" | ||
create.zip: "false" | ||
assertions: | ||
jobStatus: success | ||
files: | ||
"results.edb": | ||
diffCmd: diff -q --strip-trailing-cr | ||
diff: "<%gpunit.resultData%>gpunit/GSEAPreranked/v7/output/version_check/valid_same_version_test/results.edb" | ||
"gene_sets.gmt": | ||
diffCmd: diff -q --strip-trailing-cr | ||
diff: "<%gpunit.resultData%>gpunit/GSEAPreranked/v7/output/version_check/valid_same_version_test/gene_sets.gmt" |
42 changes: 42 additions & 0 deletions
42
gpunit_functionality/version_check/valid_warn_mix_vers_with_chip1_test.yml
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,42 @@ | ||
# Copyright (c) 2003-2022 Broad Institute, Inc., Massachusetts Institute of Technology, and Regents of the University of California. All rights reserved. | ||
#module: urn:lsid:broad.mit.edu:cancer.software.genepattern.module.analysis:00317:7 | ||
module: GSEAPreranked | ||
name: GSEAPreranked valid_warn_mix_vers_with_chip1_test | ||
description: Test the GSEAPreranked version check with files of matching version with collapsing. Note that we need to use remote files to trigger the check. | ||
params: | ||
ranked.list: "<%gpunit.testData%>gpunit/GSEAPreranked/v7/input/Diabetes_faked_ranking_for_test.rnk" | ||
gene.sets.database: [ "https://data.broadinstitute.org/gsea-msigdb/msigdb/release/7.5.1/h.all.v7.5.1.symbols.gmt", | ||
"https://data.broadinstitute.org/gsea-msigdb/msigdb/release/2022.1.Hs/c1.all.v2022.1.Hs.symbols.gmt" ] | ||
number.of.permutations: "10" | ||
collapse.dataset: "Collapse" | ||
chip.platform.file: "https://data.broadinstitute.org/gsea-msigdb/msigdb/annotations/human/Human_AFFY_HG_U133_MSigDB.v2022.1.Hs.chip" | ||
# Changing the output.file.name for ease of testing | ||
output.file.name: "<ranked.list_basename>_collapsed.zip" | ||
scoring.scheme: "weighted" | ||
max.gene.set.size: "500" | ||
min.gene.set.size: "15" | ||
collapsing.mode.for.probe.sets.with.more.than.one.match: "Mean_of_probes" | ||
normalization.mode: "meandiv" | ||
randomization.mode: "no_balance" | ||
omit.features.with.no.symbol.match: "true" | ||
# Note that we use a fixed random seed rather than the 'timestamp' default so that we'll have reproducible test results | ||
random.seed: "149" | ||
create.svgs: "false" | ||
num.top.sets: "20" | ||
make.detailed.gene.set.report: "false" | ||
selected.gene.sets: "" | ||
dev.mode: "true" | ||
alt.delim: "" | ||
create.zip: "true" | ||
assertions: | ||
jobStatus: success | ||
files: | ||
"results.edb": | ||
diffCmd: diff -q --strip-trailing-cr | ||
diff: "<%gpunit.resultData%>gpunit/GSEAPreranked/v7/output/version_check/valid_warn_mix_vers_with_chip1_test/results.edb" | ||
"gene_sets.gmt": | ||
diffCmd: diff -q --strip-trailing-cr | ||
diff: "<%gpunit.resultData%>gpunit/GSEAPreranked/v7/output/version_check/valid_warn_mix_vers_with_chip1_test/gene_sets.gmt" | ||
"stdout.txt": | ||
diffCmd: ../grepMessages.sh | ||
diff: "<%gpunit.resultData%>gpunit/GSEAPreranked/v7/output/version_check/valid_warn_mix_vers_with_chip1_test/stdoutMatches.txt" |
42 changes: 42 additions & 0 deletions
42
gpunit_functionality/version_check/valid_warn_mix_vers_with_chip2_test.yml
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,42 @@ | ||
# Copyright (c) 2003-2022 Broad Institute, Inc., Massachusetts Institute of Technology, and Regents of the University of California. All rights reserved. | ||
#module: urn:lsid:broad.mit.edu:cancer.software.genepattern.module.analysis:00317:7 | ||
module: GSEAPreranked | ||
name: GSEAPreranked valid_warn_mix_vers_with_chip2_test | ||
description: Test the GSEAPreranked version check with files of mixed versions with collapsing; should warn but complete. Note that we need to use remote files to trigger the check. | ||
params: | ||
ranked.list: "<%gpunit.testData%>gpunit/GSEAPreranked/v7/input/Diabetes_faked_ranking_for_test.rnk" | ||
gene.sets.database: [ "https://data.broadinstitute.org/gsea-msigdb/msigdb/release/2022.1.Hs/h.all.v2022.1.Hs.symbols.gmt", | ||
"https://data.broadinstitute.org/gsea-msigdb/msigdb/release/2022.1.Hs/c1.all.v2022.1.Hs.symbols.gmt" ] | ||
number.of.permutations: "10" | ||
collapse.dataset: "Collapse" | ||
chip.platform.file: "https://data.broadinstitute.org/gsea-msigdb/msigdb/annotations/human/Human_AFFY_HG_U133_MSigDB.v7.5.1.chip" | ||
# Changing the output.file.name for ease of testing | ||
output.file.name: "<ranked.list_basename>_collapsed.zip" | ||
scoring.scheme: "weighted" | ||
max.gene.set.size: "500" | ||
min.gene.set.size: "15" | ||
collapsing.mode.for.probe.sets.with.more.than.one.match: "Mean_of_probes" | ||
normalization.mode: "meandiv" | ||
randomization.mode: "no_balance" | ||
omit.features.with.no.symbol.match: "true" | ||
# Note that we use a fixed random seed rather than the 'timestamp' default so that we'll have reproducible test results | ||
random.seed: "149" | ||
create.svgs: "false" | ||
num.top.sets: "20" | ||
make.detailed.gene.set.report: "false" | ||
selected.gene.sets: "" | ||
dev.mode: "true" | ||
alt.delim: "" | ||
create.zip: "true" | ||
assertions: | ||
jobStatus: success | ||
files: | ||
"results.edb": | ||
diffCmd: diff -q --strip-trailing-cr | ||
diff: "<%gpunit.resultData%>gpunit/GSEAPreranked/v7/output/version_check/valid_warn_mix_vers_with_chip2_test/results.edb" | ||
"gene_sets.gmt": | ||
diffCmd: diff -q --strip-trailing-cr | ||
diff: "<%gpunit.resultData%>gpunit/GSEAPreranked/v7/output/version_check/valid_warn_mix_vers_with_chip2_test/gene_sets.gmt" | ||
"stdout.txt": | ||
diffCmd: ../grepMessages.sh | ||
diff: "<%gpunit.resultData%>gpunit/GSEAPreranked/v7/output/version_check/valid_warn_mix_vers_with_chip2_test/stdoutMatches.txt" |
41 changes: 41 additions & 0 deletions
41
gpunit_functionality/version_check/valid_warn_mix_version_test.yml
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,41 @@ | ||
# Copyright (c) 2003-2022 Broad Institute, Inc., Massachusetts Institute of Technology, and Regents of the University of California. All rights reserved. | ||
#module: urn:lsid:broad.mit.edu:cancer.software.genepattern.module.analysis:00317:7 | ||
module: GSEAPreranked | ||
name: GSEAPreranked valid_warn_mix_version_test | ||
description: Test the GSEAPreranked version check with files of mixed versions and no collapsing; should warn but complete. Note that we need to use remote files to trigger the check. | ||
params: | ||
ranked.list: "<%gpunit.testData%>gpunit/GSEAPreranked/v7/input/Diabetes_collapsed_symbols.rnk" | ||
gene.sets.database: [ "https://data.broadinstitute.org/gsea-msigdb/msigdb/release/2022.1.Hs/h.all.v2022.1.Hs.symbols.gmt", | ||
"https://data.broadinstitute.org/gsea-msigdb/msigdb/release/7.5.1/c1.all.v7.5.1.symbols.gmt" ] | ||
number.of.permutations: "10" | ||
collapse.dataset: "No_Collapse" | ||
chip.platform.file: "" | ||
omit.features.with.no.symbol.match: "true" | ||
collapsing.mode.for.probe.sets.with.more.than.one.match: "Max_probe" | ||
output.file.name: "<ranked.list_basename>.zip" | ||
scoring.scheme: "weighted" | ||
max.gene.set.size: "500" | ||
min.gene.set.size: "15" | ||
normalization.mode: "meandiv" | ||
randomization.mode: "no_balance" | ||
# Note that we use a fixed random seed rather than the 'timestamp' default so that we'll have reproducible test results | ||
random.seed: "149" | ||
create.svgs: "false" | ||
num.top.sets: "20" | ||
make.detailed.gene.set.report: "false" | ||
selected.gene.sets: "" | ||
dev.mode: "true" | ||
alt.delim: "" | ||
create.zip: "false" | ||
assertions: | ||
jobStatus: success | ||
files: | ||
"results.edb": | ||
diffCmd: diff -q --strip-trailing-cr | ||
diff: "<%gpunit.resultData%>gpunit/GSEAPreranked/v7/output/version_check/valid_warn_mix_version_test/results.edb" | ||
"gene_sets.gmt": | ||
diffCmd: diff -q --strip-trailing-cr | ||
diff: "<%gpunit.resultData%>gpunit/GSEAPreranked/v7/output/version_check/valid_warn_mix_version_test/gene_sets.gmt" | ||
"stdout.txt": | ||
diffCmd: ../grepMessages.sh | ||
diff: "<%gpunit.resultData%>gpunit/GSEAPreranked/v7/output/version_check/valid_warn_mix_version_test/stdoutMatches.txt" |