JAL-2110 use SequenceI.isProtein()
authorJim Procter <jprocter@issues.jalview.org>
Thu, 23 Jun 2016 13:02:38 +0000 (14:02 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Thu, 23 Jun 2016 13:02:38 +0000 (14:02 +0100)
src/jalview/analysis/CrossRef.java

index d96ab58..3862edf 100644 (file)
@@ -779,8 +779,7 @@ public class CrossRef
            * complementary type if !direct
            */
           {
-            boolean isDna = Comparison
-                    .isNucleotide(new SequenceI[] { nxt });
+            boolean isDna = !nxt.isProtein();
             if (direct ? (isDna != fromDna) : (isDna == fromDna))
             {
               // skip this sequence because it is wrong molecule type