JAL-4392 Adding secondary structure provider Adding secondary structure
authorRenia Correya <rcorreya001@dundee.ac.uk>
Wed, 24 Jul 2024 15:54:17 +0000 (16:54 +0100)
committerRenia Correya <rcorreya001@dundee.ac.uk>
Wed, 24 Jul 2024 15:54:17 +0000 (16:54 +0100)
provider in parenthesis for each secondary structure annotation.

src/jalview/gui/AnnotationLabels.java

index 35ffbf3..d7b950b 100755 (executable)
@@ -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;