Skip to content

Commit 30fd365

Browse files
committed
The similarity slider no longer filters signature edges.
1 parent 729892e commit 30fd365

File tree

1 file changed

+19
-15
lines changed

1 file changed

+19
-15
lines changed

EnrichmentMapPlugin/src/main/java/org/baderlab/csplugins/enrichmentmap/view/control/ControlPanelMediator.java

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package org.baderlab.csplugins.enrichmentmap.view.control;
22

3+
import static org.baderlab.csplugins.enrichmentmap.style.EMStyleBuilder.Columns.EDGE_INTERACTION_VALUE_SIG;
34
import static org.baderlab.csplugins.enrichmentmap.style.EMStyleBuilder.Columns.NODE_GS_TYPE;
45
import static org.baderlab.csplugins.enrichmentmap.style.EMStyleBuilder.Columns.NODE_GS_TYPE_ENRICHMENT;
56
import static org.baderlab.csplugins.enrichmentmap.view.util.SwingUtil.invokeOnEDT;
@@ -902,22 +903,25 @@ private Set<CyEdge> getFilteredInEdges(SliderBarPanel sliderPanel, EnrichmentMap
902903
show = false;
903904
} else {
904905
CyRow row = network.getRow(e);
906+
String interaction = row.get(CyEdge.INTERACTION, String.class);
905907

906-
for (String colName : columnNames) {
907-
if (table.getColumn(colName) == null)
908-
continue; // Ignore this column name (maybe the user deleted it)
909-
910-
Double value = row.get(colName, Double.class);
911-
912-
// Possible that there isn't value for this interaction
913-
if (value == null)
914-
continue;
915-
916-
if (value >= minCutoff && value <= maxCutoff) {
917-
show = true;
918-
break;
919-
} else {
920-
show = false;
908+
if (!EDGE_INTERACTION_VALUE_SIG.equals(interaction)) { // Do not filter signature edges
909+
for (String colName : columnNames) {
910+
if (table.getColumn(colName) == null)
911+
continue; // Ignore this column name (maybe the user deleted it)
912+
913+
Double value = row.get(colName, Double.class);
914+
915+
// Possible that there isn't value for this interaction
916+
if (value == null)
917+
continue;
918+
919+
if (value >= minCutoff && value <= maxCutoff) {
920+
show = true;
921+
break;
922+
} else {
923+
show = false;
924+
}
921925
}
922926
}
923927
}

0 commit comments

Comments
 (0)