From d46506c4ddd13830bf09a5f6fbad223e80d0eff2 Mon Sep 17 00:00:00 2001 From: Renia Correya Date: Wed, 24 Jul 2024 16:54:17 +0100 Subject: [PATCH] JAL-4392 Adding secondary structure provider Adding secondary structure provider in parenthesis for each secondary structure annotation. --- src/jalview/gui/AnnotationLabels.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/jalview/gui/AnnotationLabels.java b/src/jalview/gui/AnnotationLabels.java index 35ffbf3..d7b950b 100755 --- a/src/jalview/gui/AnnotationLabels.java +++ b/src/jalview/gui/AnnotationLabels.java @@ -1493,6 +1493,12 @@ public class AnnotationLabels extends JPanel vertBar = true; } } + + if(Constants.SECONDARY_STRUCTURE_LABELS.keySet().contains(aa[i].label)) { + String ssSource = AlignmentUtils.extractSSSourceFromAnnotationDescription(aa[i]); + if(ssSource != null && ssSource.length()>0) + label += " (" + ssSource + ")"; + } int labelWidth = fm.stringWidth(label) + 3; x = width - labelWidth; -- 1.7.10.2