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 5
5
import java .util .Iterator ;
6
6
7
7
import org .baderlab .csplugins .enrichmentmap .model .DataSet ;
8
+ import org .baderlab .csplugins .enrichmentmap .model .EnrichmentMap ;
8
9
import org .baderlab .csplugins .enrichmentmap .model .GeneExpression ;
9
10
import org .baderlab .csplugins .enrichmentmap .model .GeneExpressionMatrix ;
10
11
import org .cytoscape .work .AbstractTask ;
@@ -82,7 +83,10 @@ private void createDummyExpression(){
82
83
expressionMatrix .setFilename ("Dummy Expression_" + dataset .getName ().toString () );
83
84
84
85
//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 );
86
90
}
87
91
88
92
public void run (TaskMonitor taskMonitor ) throws Exception {
Original file line number Diff line number Diff line change @@ -1174,7 +1174,7 @@ private JPanel createExpressionLegendPanel() {
1174
1174
layout .setHorizontalGroup (hGroup );
1175
1175
layout .setVerticalGroup (vGroup );
1176
1176
1177
- if (params .isTwoDistinctExpressionSets ()) {
1177
+ if (params .isTwoDistinctExpressionSets () && params . isData2 () ) {
1178
1178
ColorGradientWidget legend1 = ColorGradientWidget .getInstance ("" , hmParams .getTheme_ds1 (),
1179
1179
hmParams .getRange_ds1 (), true , ColorGradientWidget .LEGEND_POSITION .NA );
1180
1180
ColorGradientWidget legend2 = ColorGradientWidget .getInstance ("" , hmParams .getTheme_ds2 (),
You can’t perform that action at this time.
0 commit comments