JAL-3417 groovy script enables per group consensus and sequence logos for all so...
authorJim Procter <j.procter@dundee.ac.uk>
Wed, 23 Feb 2022 14:27:11 +0000 (14:27 +0000)
committerJim Procter <j.procter@dundee.ac.uk>
Wed, 23 Feb 2022 14:27:11 +0000 (14:27 +0000)
examples/groovy/sdppred_testing.groovy

index 64199cc..9e7c862 100644 (file)
@@ -58,13 +58,18 @@ def sdppredCounter =
          }
          }
          }
-         AlignmentAnnotation annotrow = new AlignmentAnnotation("SDPpred","SDP calculation results",annot);
+         AlignmentAnnotation annotrow = new AlignmentAnnotation("SDPpred","SDP calculation results for groups using displayed sequence logos for each group",annot);
          annotrow.setCalcId("SDPPRED");
          return [annotrow];
      }
      ] as AnnotationProviderI
 
+def alf = Jalview.getCurrentAlignFrame()
+alf.viewport.setShowGroupConsensus(true)
+alf.viewport.setShowSequenceLogo(true)
+alf.applyAutoAnnotationSettings.setState(true)
+alf.alignPanel.updateAnnotation(true)
 /*
  * and register the counter
  */
-AlignmentAnnotationFactory.newCalculator(sdppredCounter)
+AlignmentAnnotationFactory.newCalculator(sdppredCounter)
\ No newline at end of file