Skip to content

Commit 45a59d8

Browse files
committed
Set the interestingness property. Get the individual score in ClusterDrawable
1 parent dca42ae commit 45a59d8

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

dnainator-core/src/main/java/nl/tudelft/dnainator/graph/impl/query/AllClustersQuery.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ public Map<Integer, List<Cluster>> execute(GraphDatabaseService service) {
9393
}
9494
}
9595
int interestingness = is.compute(new Neo4jScoreContainer(n));
96+
n.setProperty(SequenceProperties.INTERESTINGNESS.name(), interestingness);
9697
if (interestingness > threshold) {
9798
for (long sourceID
9899
: (long[]) n.getProperty(BubbleProperties.BUBBLE_SOURCE_IDS.name())) {

dnainator-javafx/src/main/java/nl/tudelft/dnainator/javafx/drawables/strains/ClusterDrawable.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ private void initProperties() {
9292
} else {
9393
EnrichedSequenceNode sn = cluster.getNodes().iterator().next();
9494
properties.put(ClusterPropertyTypes.ID, sn.getId());
95-
properties.put(Scores.SEQ_LENGTH, Integer.toString(sn.getInterestingnessScore()));
95+
properties.put(Scores.SEQ_LENGTH, Integer.toString(sn.getScore(Scores.SEQ_LENGTH)));
9696
properties.put(ClusterPropertyTypes.BASEDIST, Integer.toString(sn.getBaseDistance()));
9797
properties.put(ClusterPropertyTypes.STARTREF, Integer.toString(sn.getStartRef()));
9898
properties.put(ClusterPropertyTypes.ENDREF, Integer.toString(sn.getEndRef()));

0 commit comments

Comments
 (0)