JAL-1081 JAL-841 JAL-1053 JAL-1081 use same selection criteria for secondary structur...
authorJim Procter <jprocter@issues.jalview.org>
Sat, 5 Sep 2015 09:13:54 +0000 (10:13 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Sat, 5 Sep 2015 09:18:52 +0000 (10:18 +0100)
src/jalview/schemes/RNAHelicesColour.java
src/jalview/workers/StrucConsensusThread.java

index 76592ba..5518f8f 100644 (file)
@@ -99,7 +99,8 @@ public class RNAHelicesColour extends ResidueColourScheme
     {
 
       // is this a sensible way of determining type of annotation?
-      if (annotations[i].getRNAStruc() != null)
+      if (annotations[i].visible && annotations[i].isRNA()
+              && annotations[i].isValidStruc())
       {
         annotation = annotations[i];
         break;
index 4471b6e..3113806 100644 (file)
@@ -98,7 +98,7 @@ public class StrucConsensusThread extends AlignCalcWorker implements
       // select rna struct to use for calculation
       for (int i = 0; i < aa.length; i++)
       {
-        if (aa[i].getRNAStruc() != null && aa[i].isValidStruc())
+        if (aa[i].visible && aa[i].isRNA() && aa[i].isValidStruc())
         {
           rnaStruc = aa[i];
           break;