'Update to Covariaton color scheme' merge; JAL-580
authorjanengelhardt <engelhardt87@googlemail.com>
Mon, 23 May 2011 17:26:01 +0000 (19:26 +0200)
committerjanengelhardt <engelhardt87@googlemail.com>
Mon, 25 Jul 2011 12:58:32 +0000 (14:58 +0200)
Change-Id: Iaf439847f280e8be7336437a8447f3a439098b09

src/jalview/datamodel/AlignmentAnnotation.java
src/jalview/io/AlignFile.java

index c4268e2..9037008 100755 (executable)
@@ -339,7 +339,7 @@ public class AlignmentAnnotation
    * checks graphMin and graphMax, secondary structure symbols, sets graphType
    * appropriately, sets null labels to the empty string if appropriate.
    */
-  private void validateRangeAndDisplay()
+  public void validateRangeAndDisplay()
   {
 
     if (annotations == null)
index 1e1b777..abc7a16 100755 (executable)
@@ -127,7 +127,17 @@ public abstract class AlignFile extends FileParse
     addProperties(al);
     for (int i = 0; i < annotations.size(); i++)
     {
-      al.addAnnotation((AlignmentAnnotation) annotations.elementAt(i));
+      // detect if annotations.elementAt(i) rna secondary structure
+      // if so then do:
+      /*
+       * SequenceFeature[] pairArray =
+       * Rna.GetBasePairsFromAlignmentAnnotation(annotations.elementAt(i));
+       * Rna.HelixMap(pairArray);
+       */
+      AlignmentAnnotation an = (AlignmentAnnotation) annotations
+              .elementAt(i);
+      an.validateRangeAndDisplay();
+      al.addAnnotation(an);
     }
 
   }