File tree Expand file tree Collapse file tree 2 files changed +7
-14
lines changed
EnrichmentMapPlugin/src/main/java/org/baderlab/csplugins/enrichmentmap Expand file tree Collapse file tree 2 files changed +7
-14
lines changed Original file line number Diff line number Diff line change @@ -183,6 +183,11 @@ private DataSetFiles getDataSet2Files() {
183
183
return dataset2files ;
184
184
}
185
185
186
+
187
+ private boolean is2DataSet () {
188
+ return expressionDataset2 != null || enrichmentsDataset2 != null || enrichments2Dataset2 != null ;
189
+ }
190
+
186
191
187
192
@ Override
188
193
public void run (TaskMonitor tm ) {
@@ -192,8 +197,8 @@ public void run(TaskMonitor tm) {
192
197
DataSetFiles dataset1files = getDataSet1Files ();
193
198
dataSets .add (new DataSetParameters (LegacySupport .DATASET1 , method , dataset1files ));
194
199
195
- DataSetFiles dataset2files = getDataSet2Files ();
196
- if (! dataset2files . isEmpty ()) {
200
+ if ( is2DataSet ()) {
201
+ DataSetFiles dataset2files = getDataSet2Files ();
197
202
dataSets .add (new DataSetParameters (LegacySupport .DATASET2 , method , dataset2files ));
198
203
}
199
204
Original file line number Diff line number Diff line change @@ -114,16 +114,4 @@ public void copy(DataSetFiles copy) {
114
114
this .phenotype2 = copy .getPhenotype2 ();
115
115
}
116
116
117
-
118
- public boolean isEmpty () {
119
- if (this .GMTFileName != null && !this .GMTFileName .equalsIgnoreCase ("" ))
120
- return false ;
121
- if (this .expressionFileName != null && !this .expressionFileName .equalsIgnoreCase ("" ))
122
- return false ;
123
- if (this .enrichmentFileName1 != null && !this .enrichmentFileName1 .equalsIgnoreCase ("" ))
124
- return false ;
125
- if (this .enrichmentFileName2 != null && !this .enrichmentFileName2 .equalsIgnoreCase ("" ))
126
- return false ;
127
- return true ;
128
- }
129
117
}
You can’t perform that action at this time.
0 commit comments