From bc7f494552068121b933b776b621a68fe2591647 Mon Sep 17 00:00:00 2001 From: jprocter Date: Wed, 2 May 2007 14:30:02 +0000 Subject: [PATCH] public debug report log message to gather any cases where Das coordinate frame mapping fails --- src/jalview/io/DasSequenceFeatureFetcher.java | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/jalview/io/DasSequenceFeatureFetcher.java b/src/jalview/io/DasSequenceFeatureFetcher.java index 58ae580..2f94d64 100755 --- a/src/jalview/io/DasSequenceFeatureFetcher.java +++ b/src/jalview/io/DasSequenceFeatureFetcher.java @@ -374,7 +374,19 @@ public class DasSequenceFeatureFetcher source.getNickname()); if (dbref.getMap()!=null && f.getBegin()>0 && f.getEnd()>0) { Cache.log.debug("mapping from "+f.getBegin()+" - "+f.getEnd()); - SequenceFeature vf[] = dbref.getMap().locateFeature(f); + SequenceFeature vf[]=null; + + try { + vf = dbref.getMap().locateFeature(f); + } + catch (Exception ex) + { + Cache.log.info("Error in 'experimental' mapping of features. Please try to reproduce and then report info to help@jalview.org."); + Cache.log.info("Mapping feature from "+f.getBegin()+" to "+f.getEnd()+" in dbref "+dbref.getAccessionId()+" in "+dbref.getSource()); + Cache.log.info("using das Source "+ds.getUrl()); + Cache.log.info(ex); + } + if (vf!=null) { for (int v=0;v