From 5f92754aa0aa65d11c2ccf7f1daa29fb5a7b421c Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Fri, 26 Aug 2016 13:20:51 +0100 Subject: [PATCH] =?utf8?q?JAL-2154=20don=E2=80=99t=20add=20any=20remaining=20?= =?utf8?q?xrefed=20sequences=20of=20the=20wrong=20molecule=20type=20to=20the?= =?utf8?q?=20alignment?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/jalview/analysis/AlignmentUtils.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/jalview/analysis/AlignmentUtils.java b/src/jalview/analysis/AlignmentUtils.java index cc80384..e0ec22b 100644 --- a/src/jalview/analysis/AlignmentUtils.java +++ b/src/jalview/analysis/AlignmentUtils.java @@ -2596,7 +2596,7 @@ public class AlignmentUtils { AlignmentI copy = new Alignment(new Alignment(seqs)); copy.setDataset(dataset); - + boolean isProtein = !copy.isNucleotide(); SequenceIdMatcher matcher = new SequenceIdMatcher(seqs); if (xrefs != null) { @@ -2607,7 +2607,8 @@ public class AlignmentUtils { for (DBRefEntry dbref : dbrefs) { - if (dbref.getMap() == null || dbref.getMap().getTo() == null) + if (dbref.getMap() == null || dbref.getMap().getTo() == null + || dbref.getMap().getTo().isProtein() != isProtein) { continue; } -- 1.7.10.2