Skip to content

Commit bc65bee

Browse files
committed
Merge pull request #386 from Vennik/enhancement/data-overflow
Fix to much annotation data.
2 parents 1ace357 + 7ed01bc commit bc65bee

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

geex-core/src/main/java/nl/tudelft/context/controller/BaseController.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,11 @@ public BaseController(final Node node) {
7979
public void initialize(final URL location,
8080
final ResourceBundle resources) {
8181

82-
codingSequences.setText(node.getCodingSequenceText());
82+
if (node.getSources().contains("TKK_REF")) {
83+
codingSequences.setText(node.getCodingSequenceText());
84+
} else {
85+
codingSequences.setText("None");
86+
}
8387
resistances.setText(node.getResistancesText());
8488
percentages.setText(node.getBaseCounter().toString());
8589
bases.setText(node.getContent());

geex-core/src/main/java/nl/tudelft/context/drawable/graph/AbstractLabel.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ protected void initAnnotations() {
6767
annotationsHolder.getChildren().add(resistancesLabel);
6868
}
6969

70-
if (codingSequencesAmount > 0) {
70+
if (codingSequencesAmount > 0 && node.getSources().contains("TKK_REF")) {
7171
final Label codingSequencesLabel = new Label(Integer.toString(codingSequencesAmount));
7272
codingSequencesLabel.getStyleClass().add("coding-sequences-label");
7373
annotationsHolder.getChildren().add(codingSequencesLabel);

0 commit comments

Comments
 (0)