From f895c499fd7ac7e02a3da2bdf6060fbd344205c0 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Thu, 23 Jun 2016 14:02:38 +0100 Subject: [PATCH] JAL-2110 use SequenceI.isProtein() --- src/jalview/analysis/CrossRef.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/jalview/analysis/CrossRef.java b/src/jalview/analysis/CrossRef.java index d96ab58..3862edf 100644 --- a/src/jalview/analysis/CrossRef.java +++ b/src/jalview/analysis/CrossRef.java @@ -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 -- 1.7.10.2