JAL-3700 JAL-3748 use AlignedCodonFrame.covers(seq,true) to select the protein that...
authorJim Procter <jprocter@issues.jalview.org>
Wed, 16 Sep 2020 16:37:15 +0000 (17:37 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Wed, 16 Sep 2020 16:37:15 +0000 (17:37 +0100)
src/jalview/datamodel/AlignedCodonFrame.java

index 9fa11cc..fbc8a61 100644 (file)
@@ -464,8 +464,7 @@ public class AlignedCodonFrame
       {
         for (SequenceI sourceAligned : al.getSequences())
         {
-          if (ssm.mapping.to == sourceAligned.getDatasetSequence()
-                  || ssm.mapping.to == sourceAligned)
+          if (ssm.covers(sourceAligned,true))
           {
             return sourceAligned;
           }
@@ -483,7 +482,7 @@ public class AlignedCodonFrame
       {
         for (SequenceI sourceAligned : al.getSequences())
         {
-          if (ssm.fromSeq == sourceAligned.getDatasetSequence())
+          if (ssm.covers(sourceAligned,true))
           {
             return sourceAligned;
           }