From: Jim Procter Date: Thu, 23 Jun 2016 13:02:38 +0000 (+0100) Subject: JAL-2110 use SequenceI.isProtein() X-Git-Tag: Release_2_10_0~140^2~5^2~46 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=f895c499fd7ac7e02a3da2bdf6060fbd344205c0;p=jalview.git JAL-2110 use SequenceI.isProtein() --- 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