Skip to content

Commit 9f2acc8

Browse files
committed
Update some of the swagger docs.
1 parent 72577f0 commit 9f2acc8

File tree

5 files changed

+24
-49
lines changed

5 files changed

+24
-49
lines changed

EnrichmentMapPlugin/src/main/java/org/baderlab/csplugins/enrichmentmap/commands/EMBuildCommandTask.java

Lines changed: 17 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -82,65 +82,54 @@
8282
*/
8383
public class EMBuildCommandTask extends AbstractTask {
8484

85-
@Tunable(description = "Analysis Type", groups = { "Analysis Type" }, gravity = 1.0)
86-
public ListSingleSelection<String> analysisType = new ListSingleSelection<String>(method_GSEA, method_generic, method_Specialized);;
85+
@Tunable(description = "Analysis Type")
86+
public ListSingleSelection<String> analysisType = new ListSingleSelection<String>(method_GSEA, method_generic, method_Specialized);
8787

88-
@Tunable(description = "GMT", groups = { "User Input", "Gene Sets" }, gravity = 2.0, dependsOn = "analysisType=" + method_generic,
89-
params = "fileCategory=table;input=true", tooltip = "File specifying gene sets.\nFormat: geneset name <tab> description <tab> gene ...")
88+
@Tunable(description = "Path to GMT File specifying gene sets. Format: geneset name <tab> description <tab> gene ...")
9089
public File gmtFile;
9190

9291
//Dataset 1 Tunables
93-
@Tunable(description = "Expression", groups = { "User Input", "Datasets", "Dataset 1" }, gravity = 3.0, params = "fileCategory=table;input=true",
94-
tooltip = "File with gene expression values.\nFormat: gene <tab> description <tab> expression value <tab> ...")
92+
@Tunable(description = "Path to Expression File for Dataset 1 with gene expression values. Format: gene <tab> description <tab> expression value <tab> ...")
9593
public File expressionDataset1;
9694

97-
@Tunable(description = "Enrichments", groups = { "User Input", "Datasets", "Dataset 1" }, gravity = 4.0,
98-
dependsOn = "analysisType=" + method_generic, params = "fileCategory=table;input=true", tooltip = "File specifying enrichment results.\n")
95+
@Tunable(description = "Path to Enrichments File for Dataset 1 specifying enrichment results.")
9996
public File enrichmentsDataset1;
10097

101-
@Tunable(description = "Enrichments 2", groups = { "User Input", "Datasets", "Dataset 1" }, gravity = 5.0,
102-
dependsOn = "analysisType=" + method_GSEA, params = "fileCategory=table;input=true", tooltip = "File specifying enrichment results.\n")
98+
@Tunable(description = "Path to a second Enrichments File for Dataset 1 specifying enrichment results.")
10399
public File enrichments2Dataset1;
104100

105-
@Tunable(description = "Ranks", groups = { "User Input", "Datasets", "Dataset 1", "Advanced" }, gravity = 6.0, params = "fileCategory=table;input=true",
106-
tooltip = "File specifying ranked genes.\nFormat: gene <tab> score or statistic")
101+
@Tunable(description = "Path to a Ranks File for Dataset 1 specifying ranked genes. Format: gene <tab> score or statistic")
107102
public File ranksDataset1;
108103

109-
@Tunable(description = "Classes", groups = { "User Input", "Datasets", "Dataset 1", "Advanced" }, gravity = 7.0, params = "fileCategory=table;input=true",
110-
tooltip = "File specifying the classes of each sample in expression file.\nformat: see GSEA website")
104+
@Tunable(description = "Path to Classes File for Dataset 1 specifying the classes of each sample in expression file. Format: see GSEA website")
111105
public File classDataset1;
112106

113-
@Tunable(description = "Phenotype1", groups = { "User Input", "Datasets", "Dataset 1", "Advanced" }, gravity = 8.0, tooltip = "Dataset1 phenotype/class")
107+
@Tunable(description = "Phenotype 1 for Dataset 1")
114108
public String phenotype1Dataset1;
115109

116-
@Tunable(description = "Phenotype2", groups = { "User Input", "Datasets", "Dataset 1", "Advanced" }, gravity = 9.0, tooltip = "Dataset1 phenotype/class")
110+
@Tunable(description = "Phenotype 2 for Dataset 1")
117111
public String phenotype2Dataset1;
118112

119113
//Dataset 2 Tunables
120-
@Tunable(description = "Expression", groups = { "User Input", "Datasets", "Dataset 2" }, gravity = 10.0,
121-
params = "fileCategory=table;input=true;displayState=callapsed", tooltip = "File with gene expression values.\nFormat: gene <tab> description <tab> expression value <tab> ...")
114+
@Tunable(description = "Path to Expression File for Dataset 2 with gene expression values. Format: gene <tab> description <tab> expression value <tab> ...")
122115
public File expressionDataset2;
123116

124-
@Tunable(description = "Enrichments", groups = { "User Input", "Datasets", "Dataset 2" }, gravity = 11.0,
125-
dependsOn = "analysisType=" + method_generic, params = "fileCategory=table;input=true;displayState=callapsed", tooltip = "File specifying enrichment results.\n")
117+
@Tunable(description = "Path to Enrichments File for Dataset 2 specifying enrichment results.")
126118
public File enrichmentsDataset2;
127119

128-
@Tunable(description = "Enrichments 2", groups = { "User Input", "Datasets", "Dataset 2" }, gravity = 12.0,
129-
dependsOn = "analysisType=" + method_GSEA, params = "fileCategory=table;input=true;displayState=callapsed", tooltip = "File specifying enrichment results.\n")
120+
@Tunable(description = "Path to a second Enrichments File for Dataset 2 specifying enrichment results.")
130121
public File enrichments2Dataset2;
131122

132-
@Tunable(description = "Ranks", groups = { "User Input", "Datasets", "Dataset 2", "Advanced" }, gravity = 13.0,
133-
params = "fileCategory=table;input=true;displayState=callapsed", tooltip = "File specifying ranked genes.\nFormat: gene <tab> score or statistic")
123+
@Tunable(description = "Path to Ranks File for Dataset 2 specifying ranked genes. Format: gene <tab> score or statistic")
134124
public File ranksDataset2;
135125

136-
@Tunable(description = "Classes", groups = { "User Input", "Datasets", "Dataset 2", "Advanced" }, gravity = 14.0,
137-
params = "fileCategory=table;input=true;displayState=callapsed", tooltip = "File specifying the classes of each sample in expression file.\nformat: see GSEA website")
126+
@Tunable(description = "Path to Classes File for Dataset 2 specifying the classes of each sample in expression file. format: see GSEA website")
138127
public File classDataset2;
139128

140-
@Tunable(description = "Phenotype1", groups = { "User Input", "Datasets", "Dataset 2", "Advanced" }, gravity = 15.0, params = "displayState=callapsed", tooltip = "Dataset2 phenotype/class")
129+
@Tunable(description = "Phenotype 1 for Dataset 2")
141130
public String phenotype1Dataset2;
142131

143-
@Tunable(description = "Phenotype2", groups = { "User Input", "Datasets", "Dataset 2", "Advanced" }, gravity = 16.0, params = "displayState=callapsed", tooltip = "Dataset2 phenotype/class")
132+
@Tunable(description = "Phenotype 2 for Dataset 2")
144133
public String phenotype2Dataset2;
145134

146135

EnrichmentMapPlugin/src/main/java/org/baderlab/csplugins/enrichmentmap/commands/PAKnownSignatureCommandTask.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public class PAKnownSignatureCommandTask extends AbstractTask {
5555
@Tunable(description = "When 'hypergeomUniverseType' is USER_DEFINED, sets the value for N.")
5656
public int userDefinedUniverseSize = 0;
5757

58-
@Tunable(description = "Name of the data set.")
58+
@Tunable(description = "Name of the signature data set that will be created.")
5959
public String name;
6060

6161
@ContainsTunables @Inject

EnrichmentMapPlugin/src/main/java/org/baderlab/csplugins/enrichmentmap/commands/tunables/FilterTunables.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public class FilterTunables {
3535
@Tunable(description = "Similarity Cutoff (value between 0 and 1). Edges with a similarity score lower than the one entered will not be included in the network.")
3636
public Double similaritycutoff = 0.25;
3737

38-
@Tunable(description = "Similarity Coeffecient (value between 0 and 1). Used to choose the formula used to calculate the similarity score.")
38+
@Tunable(description = "Used to choose the formula used to calculate the similarity score.")
3939
public ListSingleSelection<String> coefficients;
4040

4141
@Tunable(description = "When coefficients=COMBINED this parameter is used to determine what percentage to use for JACCARD and OVERLAP when combining their value."

EnrichmentMapPlugin/src/main/java/org/baderlab/csplugins/enrichmentmap/commands/tunables/TableTunables.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,16 @@ public class TableTunables {
1414
longDescription = "If the prefix ```SUID:``` is used, the table corresponding the SUID will be returned. Example: \"galFiltered.sif default node\"")
1515
public String table;
1616

17-
@Tunable(required=true)
17+
@Tunable(required=true, description="Name of column that contains the names of the gene sets.")
1818
public String nameColumn;
1919

20-
@Tunable(required=true)
20+
@Tunable(required=true, description="Name of column that contains the list of genes.")
2121
public String genesColumn;
2222

23-
@Tunable(required=true)
23+
@Tunable(required=true, description="Name of column that contains p values.")
2424
public String pvalueColumn;
2525

26-
@Tunable
26+
@Tunable(description="Name of column that contains the gene set description (optional).")
2727
public String descriptionColumn;
2828

2929

EnrichmentMapPlugin/src/main/java/org/baderlab/csplugins/enrichmentmap/resolver/DataSetResolver.java

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -159,16 +159,6 @@ private static Optional<Path> findClosestMatch(Path p, List<Path> candidates) {
159159

160160
// Find closest match by using edit distance on file name;
161161
Optional<Path> closest = candidates.stream().reduce(BinaryOperator.maxBy(Comparator.comparing(scores::get)));
162-
163-
// There should be a threshold for considering the path a match
164-
// MKTODO can this heuristic be improved?
165-
// if(closest.isPresent()) {
166-
// int score = scores.get(closest.get());
167-
// if(score == 0) {
168-
// return Optional.empty();
169-
// }
170-
// }
171-
172162
return closest;
173163
}
174164

@@ -183,11 +173,7 @@ public static Type guessType(Path path) {
183173
return Type.IGNORE;
184174
}
185175
if(Files.isDirectory(path)) {
186-
// if(GSEAResolver.isGSEAResultsFolder(path)) {
187-
// return Type.GSEA_FOLDER;
188-
// } else {
189-
return Type.IGNORE;
190-
// }
176+
return Type.IGNORE;
191177
}
192178

193179
return guess(path);

0 commit comments

Comments
 (0)