Skip to content

Commit 3c476d9

Browse files
committed
Added new test suite cases for version check
1 parent 7ca12d4 commit 3c476d9

7 files changed

+271
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Copyright (c) 2003-2022 Broad Institute, Inc., Massachusetts Institute of Technology, and Regents of the University of California. All rights reserved.
2+
#module: urn:lsid:broad.mit.edu:cancer.software.genepattern.module.analysis:00317:7
3+
module: GSEAPreranked
4+
name: GSEAPreranked invalid_mix_species1_test
5+
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.
6+
params:
7+
ranked.list: "<%gpunit.testData%>gpunit/GSEAPreranked/v7/input/Diabetes_collapsed_symbols.rnk"
8+
gene.sets.database: [ "https://data.broadinstitute.org/gsea-msigdb/msigdb/release/2022.1.Hs/h.all.v2022.1.Hs.symbols.gmt",
9+
"https://data.broadinstitute.org/gsea-msigdb/msigdb/release/2022.1.Mm/m1.all.v2022.1.Mm.symbols.gmt" ]
10+
number.of.permutations: "10"
11+
collapse.dataset: "No_Collapse"
12+
chip.platform.file: ""
13+
omit.features.with.no.symbol.match: "true"
14+
collapsing.mode.for.probe.sets.with.more.than.one.match: "Max_probe"
15+
output.file.name: "<ranked.list_basename>.zip"
16+
scoring.scheme: "weighted"
17+
max.gene.set.size: "500"
18+
min.gene.set.size: "15"
19+
normalization.mode: "meandiv"
20+
randomization.mode: "no_balance"
21+
# Note that we use a fixed random seed rather than the 'timestamp' default so that we'll have reproducible test results
22+
random.seed: "149"
23+
create.svgs: "false"
24+
num.top.sets: "20"
25+
make.detailed.gene.set.report: "false"
26+
selected.gene.sets: ""
27+
dev.mode: "true"
28+
alt.delim: ""
29+
create.zip: "false"
30+
assertions:
31+
jobStatus: fail
32+
files:
33+
"stderr.txt":
34+
diffCmd: ../grepMessages.sh
35+
diff: "<%gpunit.resultData%>gpunit/GSEAPreranked/v7/output/version_check/invalid_mix_species1_test/stderrMatches.txt"
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Copyright (c) 2003-2022 Broad Institute, Inc., Massachusetts Institute of Technology, and Regents of the University of California. All rights reserved.
2+
#module: urn:lsid:broad.mit.edu:cancer.software.genepattern.module.analysis:00317:7
3+
module: GSEAPreranked
4+
name: GSEAPreranked invalid_mix_species2_test
5+
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.
6+
params:
7+
ranked.list: "<%gpunit.testData%>gpunit/GSEAPreranked/v7/input/Diabetes_faked_ranking_for_test.rnk"
8+
gene.sets.database: [ "https://data.broadinstitute.org/gsea-msigdb/msigdb/release/2022.1.Hs/h.all.v2022.1.Hs.symbols.gmt" ]
9+
number.of.permutations: "10"
10+
collapse.dataset: "Collapse"
11+
chip.platform.file: "https://data.broadinstitute.org/gsea-msigdb/msigdb/annotations/mouse/Human_AFFY_HG_U133_Mouse_Orthologs_MSigDB.v2022.1.Mm.chip"
12+
# Changing the output.file.name for ease of testing
13+
output.file.name: "<ranked.list_basename>_collapsed.zip"
14+
scoring.scheme: "weighted"
15+
max.gene.set.size: "500"
16+
min.gene.set.size: "15"
17+
collapsing.mode.for.probe.sets.with.more.than.one.match: "Mean_of_probes"
18+
normalization.mode: "meandiv"
19+
randomization.mode: "no_balance"
20+
omit.features.with.no.symbol.match: "true"
21+
# Note that we use a fixed random seed rather than the 'timestamp' default so that we'll have reproducible test results
22+
random.seed: "149"
23+
create.svgs: "false"
24+
num.top.sets: "20"
25+
make.detailed.gene.set.report: "false"
26+
selected.gene.sets: ""
27+
dev.mode: "true"
28+
alt.delim: ""
29+
create.zip: "true"
30+
assertions:
31+
jobStatus: fail
32+
files:
33+
"stderr.txt":
34+
diffCmd: ../grepMessages.sh
35+
diff: "<%gpunit.resultData%>gpunit/GSEAPreranked/v7/output/version_check/invalid_mix_species2_test/stderrMatches.txt"
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Copyright (c) 2003-2022 Broad Institute, Inc., Massachusetts Institute of Technology, and Regents of the University of California. All rights reserved.
2+
#module: urn:lsid:broad.mit.edu:cancer.software.genepattern.module.analysis:00317:7
3+
module: GSEAPreranked
4+
name: GSEAPreranked valid_same_vers_with_chip_test
5+
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.
6+
params:
7+
ranked.list: "<%gpunit.testData%>gpunit/GSEAPreranked/v7/input/Diabetes_faked_ranking_for_test.rnk"
8+
gene.sets.database: [ "https://data.broadinstitute.org/gsea-msigdb/msigdb/release/2022.1.Hs/h.all.v2022.1.Hs.symbols.gmt" ]
9+
number.of.permutations: "10"
10+
collapse.dataset: "Collapse"
11+
chip.platform.file: "https://data.broadinstitute.org/gsea-msigdb/msigdb/annotations/human/Human_AFFY_HG_U133_MSigDB.v2022.1.Hs.chip"
12+
# Changing the output.file.name for ease of testing
13+
output.file.name: "<ranked.list_basename>_collapsed.zip"
14+
scoring.scheme: "weighted"
15+
max.gene.set.size: "500"
16+
min.gene.set.size: "15"
17+
collapsing.mode.for.probe.sets.with.more.than.one.match: "Mean_of_probes"
18+
normalization.mode: "meandiv"
19+
randomization.mode: "no_balance"
20+
omit.features.with.no.symbol.match: "true"
21+
# Note that we use a fixed random seed rather than the 'timestamp' default so that we'll have reproducible test results
22+
random.seed: "149"
23+
create.svgs: "false"
24+
num.top.sets: "20"
25+
make.detailed.gene.set.report: "false"
26+
selected.gene.sets: ""
27+
dev.mode: "true"
28+
alt.delim: ""
29+
create.zip: "true"
30+
assertions:
31+
jobStatus: success
32+
files:
33+
"results.edb":
34+
diffCmd: diff -q --strip-trailing-cr
35+
diff: "<%gpunit.resultData%>gpunit/GSEAPreranked/v7/output/version_check/valid_same_vers_with_chip_test/results.edb"
36+
"gene_sets.gmt":
37+
diffCmd: diff -q --strip-trailing-cr
38+
diff: "<%gpunit.resultData%>gpunit/GSEAPreranked/v7/output/version_check/valid_same_vers_with_chip_test/gene_sets.gmt"
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Copyright (c) 2003-2022 Broad Institute, Inc., Massachusetts Institute of Technology, and Regents of the University of California. All rights reserved.
2+
#module: urn:lsid:broad.mit.edu:cancer.software.genepattern.module.analysis:00317:7
3+
module: GSEAPreranked
4+
name: GSEAPreranked valid_same_version_test
5+
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.
6+
params:
7+
ranked.list: "<%gpunit.testData%>gpunit/GSEAPreranked/v7/input/Diabetes_collapsed_symbols.rnk"
8+
gene.sets.database: [ "https://data.broadinstitute.org/gsea-msigdb/msigdb/release/2022.1.Hs/h.all.v2022.1.Hs.symbols.gmt",
9+
"https://data.broadinstitute.org/gsea-msigdb/msigdb/release/2022.1.Hs/c1.all.v2022.1.Hs.symbols.gmt" ]
10+
number.of.permutations: "10"
11+
collapse.dataset: "No_Collapse"
12+
chip.platform.file: ""
13+
omit.features.with.no.symbol.match: "true"
14+
collapsing.mode.for.probe.sets.with.more.than.one.match: "Max_probe"
15+
output.file.name: "<ranked.list_basename>.zip"
16+
scoring.scheme: "weighted"
17+
max.gene.set.size: "500"
18+
min.gene.set.size: "15"
19+
normalization.mode: "meandiv"
20+
randomization.mode: "no_balance"
21+
# Note that we use a fixed random seed rather than the 'timestamp' default so that we'll have reproducible test results
22+
random.seed: "149"
23+
create.svgs: "false"
24+
num.top.sets: "20"
25+
make.detailed.gene.set.report: "false"
26+
selected.gene.sets: ""
27+
dev.mode: "true"
28+
alt.delim: ""
29+
create.zip: "false"
30+
assertions:
31+
jobStatus: success
32+
files:
33+
"results.edb":
34+
diffCmd: diff -q --strip-trailing-cr
35+
diff: "<%gpunit.resultData%>gpunit/GSEAPreranked/v7/output/version_check/valid_same_version_test/results.edb"
36+
"gene_sets.gmt":
37+
diffCmd: diff -q --strip-trailing-cr
38+
diff: "<%gpunit.resultData%>gpunit/GSEAPreranked/v7/output/version_check/valid_same_version_test/gene_sets.gmt"
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Copyright (c) 2003-2022 Broad Institute, Inc., Massachusetts Institute of Technology, and Regents of the University of California. All rights reserved.
2+
#module: urn:lsid:broad.mit.edu:cancer.software.genepattern.module.analysis:00317:7
3+
module: GSEAPreranked
4+
name: GSEAPreranked valid_warn_mix_vers_with_chip1_test
5+
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.
6+
params:
7+
ranked.list: "<%gpunit.testData%>gpunit/GSEAPreranked/v7/input/Diabetes_faked_ranking_for_test.rnk"
8+
gene.sets.database: [ "https://data.broadinstitute.org/gsea-msigdb/msigdb/release/7.5.1/h.all.v7.5.1.symbols.gmt",
9+
"https://data.broadinstitute.org/gsea-msigdb/msigdb/release/2022.1.Hs/c1.all.v2022.1.Hs.symbols.gmt" ]
10+
number.of.permutations: "10"
11+
collapse.dataset: "Collapse"
12+
chip.platform.file: "https://data.broadinstitute.org/gsea-msigdb/msigdb/annotations/human/Human_AFFY_HG_U133_MSigDB.v2022.1.Hs.chip"
13+
# Changing the output.file.name for ease of testing
14+
output.file.name: "<ranked.list_basename>_collapsed.zip"
15+
scoring.scheme: "weighted"
16+
max.gene.set.size: "500"
17+
min.gene.set.size: "15"
18+
collapsing.mode.for.probe.sets.with.more.than.one.match: "Mean_of_probes"
19+
normalization.mode: "meandiv"
20+
randomization.mode: "no_balance"
21+
omit.features.with.no.symbol.match: "true"
22+
# Note that we use a fixed random seed rather than the 'timestamp' default so that we'll have reproducible test results
23+
random.seed: "149"
24+
create.svgs: "false"
25+
num.top.sets: "20"
26+
make.detailed.gene.set.report: "false"
27+
selected.gene.sets: ""
28+
dev.mode: "true"
29+
alt.delim: ""
30+
create.zip: "true"
31+
assertions:
32+
jobStatus: success
33+
files:
34+
"results.edb":
35+
diffCmd: diff -q --strip-trailing-cr
36+
diff: "<%gpunit.resultData%>gpunit/GSEAPreranked/v7/output/version_check/valid_warn_mix_vers_with_chip1_test/results.edb"
37+
"gene_sets.gmt":
38+
diffCmd: diff -q --strip-trailing-cr
39+
diff: "<%gpunit.resultData%>gpunit/GSEAPreranked/v7/output/version_check/valid_warn_mix_vers_with_chip1_test/gene_sets.gmt"
40+
"stdout.txt":
41+
diffCmd: ../grepMessages.sh
42+
diff: "<%gpunit.resultData%>gpunit/GSEAPreranked/v7/output/version_check/valid_warn_mix_vers_with_chip1_test/stdoutMatches.txt"
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Copyright (c) 2003-2022 Broad Institute, Inc., Massachusetts Institute of Technology, and Regents of the University of California. All rights reserved.
2+
#module: urn:lsid:broad.mit.edu:cancer.software.genepattern.module.analysis:00317:7
3+
module: GSEAPreranked
4+
name: GSEAPreranked valid_warn_mix_vers_with_chip2_test
5+
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.
6+
params:
7+
ranked.list: "<%gpunit.testData%>gpunit/GSEAPreranked/v7/input/Diabetes_faked_ranking_for_test.rnk"
8+
gene.sets.database: [ "https://data.broadinstitute.org/gsea-msigdb/msigdb/release/2022.1.Hs/h.all.v2022.1.Hs.symbols.gmt",
9+
"https://data.broadinstitute.org/gsea-msigdb/msigdb/release/2022.1.Hs/c1.all.v2022.1.Hs.symbols.gmt" ]
10+
number.of.permutations: "10"
11+
collapse.dataset: "Collapse"
12+
chip.platform.file: "https://data.broadinstitute.org/gsea-msigdb/msigdb/annotations/human/Human_AFFY_HG_U133_MSigDB.v7.5.1.chip"
13+
# Changing the output.file.name for ease of testing
14+
output.file.name: "<ranked.list_basename>_collapsed.zip"
15+
scoring.scheme: "weighted"
16+
max.gene.set.size: "500"
17+
min.gene.set.size: "15"
18+
collapsing.mode.for.probe.sets.with.more.than.one.match: "Mean_of_probes"
19+
normalization.mode: "meandiv"
20+
randomization.mode: "no_balance"
21+
omit.features.with.no.symbol.match: "true"
22+
# Note that we use a fixed random seed rather than the 'timestamp' default so that we'll have reproducible test results
23+
random.seed: "149"
24+
create.svgs: "false"
25+
num.top.sets: "20"
26+
make.detailed.gene.set.report: "false"
27+
selected.gene.sets: ""
28+
dev.mode: "true"
29+
alt.delim: ""
30+
create.zip: "true"
31+
assertions:
32+
jobStatus: success
33+
files:
34+
"results.edb":
35+
diffCmd: diff -q --strip-trailing-cr
36+
diff: "<%gpunit.resultData%>gpunit/GSEAPreranked/v7/output/version_check/valid_warn_mix_vers_with_chip2_test/results.edb"
37+
"gene_sets.gmt":
38+
diffCmd: diff -q --strip-trailing-cr
39+
diff: "<%gpunit.resultData%>gpunit/GSEAPreranked/v7/output/version_check/valid_warn_mix_vers_with_chip2_test/gene_sets.gmt"
40+
"stdout.txt":
41+
diffCmd: ../grepMessages.sh
42+
diff: "<%gpunit.resultData%>gpunit/GSEAPreranked/v7/output/version_check/valid_warn_mix_vers_with_chip2_test/stdoutMatches.txt"
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Copyright (c) 2003-2022 Broad Institute, Inc., Massachusetts Institute of Technology, and Regents of the University of California. All rights reserved.
2+
#module: urn:lsid:broad.mit.edu:cancer.software.genepattern.module.analysis:00317:7
3+
module: GSEAPreranked
4+
name: GSEAPreranked valid_warn_mix_version_test
5+
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.
6+
params:
7+
ranked.list: "<%gpunit.testData%>gpunit/GSEAPreranked/v7/input/Diabetes_collapsed_symbols.rnk"
8+
gene.sets.database: [ "https://data.broadinstitute.org/gsea-msigdb/msigdb/release/2022.1.Hs/h.all.v2022.1.Hs.symbols.gmt",
9+
"https://data.broadinstitute.org/gsea-msigdb/msigdb/release/7.5.1/c1.all.v7.5.1.symbols.gmt" ]
10+
number.of.permutations: "10"
11+
collapse.dataset: "No_Collapse"
12+
chip.platform.file: ""
13+
omit.features.with.no.symbol.match: "true"
14+
collapsing.mode.for.probe.sets.with.more.than.one.match: "Max_probe"
15+
output.file.name: "<ranked.list_basename>.zip"
16+
scoring.scheme: "weighted"
17+
max.gene.set.size: "500"
18+
min.gene.set.size: "15"
19+
normalization.mode: "meandiv"
20+
randomization.mode: "no_balance"
21+
# Note that we use a fixed random seed rather than the 'timestamp' default so that we'll have reproducible test results
22+
random.seed: "149"
23+
create.svgs: "false"
24+
num.top.sets: "20"
25+
make.detailed.gene.set.report: "false"
26+
selected.gene.sets: ""
27+
dev.mode: "true"
28+
alt.delim: ""
29+
create.zip: "false"
30+
assertions:
31+
jobStatus: success
32+
files:
33+
"results.edb":
34+
diffCmd: diff -q --strip-trailing-cr
35+
diff: "<%gpunit.resultData%>gpunit/GSEAPreranked/v7/output/version_check/valid_warn_mix_version_test/results.edb"
36+
"gene_sets.gmt":
37+
diffCmd: diff -q --strip-trailing-cr
38+
diff: "<%gpunit.resultData%>gpunit/GSEAPreranked/v7/output/version_check/valid_warn_mix_version_test/gene_sets.gmt"
39+
"stdout.txt":
40+
diffCmd: ../grepMessages.sh
41+
diff: "<%gpunit.resultData%>gpunit/GSEAPreranked/v7/output/version_check/valid_warn_mix_version_test/stdoutMatches.txt"

0 commit comments

Comments
 (0)