File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
EnrichmentMapPlugin/src/main/java/org/baderlab/csplugins/enrichmentmap Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 55import java .util .Iterator ;
66
77import org .baderlab .csplugins .enrichmentmap .model .DataSet ;
8+ import org .baderlab .csplugins .enrichmentmap .model .EnrichmentMap ;
89import org .baderlab .csplugins .enrichmentmap .model .GeneExpression ;
910import org .baderlab .csplugins .enrichmentmap .model .GeneExpressionMatrix ;
1011import org .cytoscape .work .AbstractTask ;
@@ -82,7 +83,10 @@ private void createDummyExpression(){
8283 expressionMatrix .setFilename ("Dummy Expression_" + dataset .getName ().toString () );
8384
8485 //set that there is data for the expression viewer
85- dataset .getMap ().getParams ().setData (true );
86+ if (dataset .getName ().equals (EnrichmentMap .DATASET1 ))
87+ dataset .getMap ().getParams ().setData (true );
88+ else if (dataset .getName ().equals (EnrichmentMap .DATASET2 ))
89+ dataset .getMap ().getParams ().setData2 (true );
8690 }
8791
8892 public void run (TaskMonitor taskMonitor ) throws Exception {
Original file line number Diff line number Diff line change @@ -1174,7 +1174,7 @@ private JPanel createExpressionLegendPanel() {
11741174 layout .setHorizontalGroup (hGroup );
11751175 layout .setVerticalGroup (vGroup );
11761176
1177- if (params .isTwoDistinctExpressionSets ()) {
1177+ if (params .isTwoDistinctExpressionSets () && params . isData2 () ) {
11781178 ColorGradientWidget legend1 = ColorGradientWidget .getInstance ("" , hmParams .getTheme_ds1 (),
11791179 hmParams .getRange_ds1 (), true , ColorGradientWidget .LEGEND_POSITION .NA );
11801180 ColorGradientWidget legend2 = ColorGradientWidget .getInstance ("" , hmParams .getTheme_ds2 (),
You can’t perform that action at this time.
0 commit comments