Skip to content

Commit 998e07f

Browse files
committed
Set the interestingness property. Get the individual score in ClusterDrawable
1 parent c695e29 commit 998e07f

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

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
@@ -103,7 +103,7 @@ private void initProperties() {
103103
*/
104104
private void initSingletonProperties() {
105105
EnrichedSequenceNode sn = cluster.getNodes().iterator().next();
106-
properties.put(Scores.SEQ_LENGTH, Integer.toString(sn.getInterestingnessScore()));
106+
properties.put(Scores.SEQ_LENGTH, Integer.toString(sn.getScore(Scores.SEQ_LENGTH)));
107107
properties.put(ClusterPropertyTypes.BASEDIST, Integer.toString(sn.getBaseDistance()));
108108
properties.put(ClusterPropertyTypes.STARTREF, Integer.toString(sn.getStartRef()));
109109
properties.put(ClusterPropertyTypes.ENDREF, Integer.toString(sn.getEndRef()));

0 commit comments

Comments
 (0)