From 20ff4429a9545eeea6857818b55ec29eaf0388ad Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Mon, 22 Aug 2016 13:00:07 +0100 Subject: [PATCH] =?utf8?q?JAL-2154=20regression=20warning=20-=20should=20nev?= =?utf8?q?er=20recover=20a=20sequence=20=E2=80=98like=E2=80=99=20an=20xref=E2?= =?utf8?q?=80=99s=20mapping.getTo()=20sequence!?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/jalview/analysis/CrossRef.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/jalview/analysis/CrossRef.java b/src/jalview/analysis/CrossRef.java index 578b18f..81fad27 100644 --- a/src/jalview/analysis/CrossRef.java +++ b/src/jalview/analysis/CrossRef.java @@ -271,6 +271,18 @@ public class CrossRef * but findInDataset() matches ENSP when looking for Uniprot... */ SequenceI matchInDataset = findInDataset(xref); + if (matchInDataset != null && xref.getMap().getTo() != null + && matchInDataset != xref.getMap().getTo()) + { + System.err + .println("Implementation problem (reopen JAL-2154): CrossRef.findInDataset seems to have recovered a different sequence than the one explicitly mapped for xref." + + "Found:" + + matchInDataset + + "\nExpected:" + + xref.getMap().getTo() + + "\nFor xref:" + + xref); + } /*matcher.findIdMatch(mappedTo);*/ if (matchInDataset != null) { -- 1.7.10.2