From 7714ab633054bde0c558541262244fac56a96673 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Fri, 23 Aug 2019 16:12:59 +0100 Subject: [PATCH] JAL-3417 findOrCreateAnnotation is designed to make unique rows based on Label+calcId, not Label+description. Also pass in all refs to ensure they are preserved! --- src/jalview/workers/AnnotationWorker.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/jalview/workers/AnnotationWorker.java b/src/jalview/workers/AnnotationWorker.java index 8f37f15..56361fa 100644 --- a/src/jalview/workers/AnnotationWorker.java +++ b/src/jalview/workers/AnnotationWorker.java @@ -90,7 +90,9 @@ class AnnotationWorker extends AlignCalcWorker for (AlignmentAnnotation ann : anns) { AlignmentAnnotation theAnn = alignment.findOrCreateAnnotation( - ann.label, ann.description, false, null, null); + ann.label, ann.getCalcId(), ann.autoCalculated, + ann.sequenceRef, + ann.groupRef); theAnn.showAllColLabels = true; theAnn.graph = AlignmentAnnotation.BAR_GRAPH; theAnn.scaleColLabel = true; -- 1.7.10.2