From 6ae5fa606e41ff9e06b55d3f5f613e544ad37937 Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Tue, 24 Oct 2006 12:36:20 +0000 Subject: [PATCH] Only send one call per sequence at the moment --- src/jalview/io/DasSequenceFeatureFetcher.java | 29 +++++++++++++------------ 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/src/jalview/io/DasSequenceFeatureFetcher.java b/src/jalview/io/DasSequenceFeatureFetcher.java index 305160e..21ead9c 100755 --- a/src/jalview/io/DasSequenceFeatureFetcher.java +++ b/src/jalview/io/DasSequenceFeatureFetcher.java @@ -247,23 +247,24 @@ public class DasSequenceFeatureFetcher // we know the id for this entry, so don't note its ID in the unknownSequences list // for (int j = 0; j < uprefs.length; j++) { - - // Will have to pass any mapping information to the fetcher - the start/end for the DBRefEntry may not be the same as the sequence's start/end + // Will have to pass any mapping information to the fetcher + //- the start/end for the DBRefEntry may not be the same as the sequence's start/end DasCoordinateSystem cs[] = dasSource.getCoordinateSystem(); - // if(cs.length>0) - // System.out.println("err "+ - for (int l = 0; l < cs.length; l++) + if(cs.length>0) { - if (jalview.util.DBRefUtils.isDasCoordinateSystem(cs[l]. - getName(), uprefs[0])) + // for (int l = 0; l < cs.length; l++) { - - Cache.log.debug("Launched fetcher for coordinate system " + - cs[l].getName()); - - createFeatureFetcher(seq, - dasSource, - uprefs[0].getAccessionId()); + // + if (jalview.util.DBRefUtils + .isDasCoordinateSystem(cs[0].getName(), uprefs[0])) + { + Cache.log.debug("Launched fetcher for coordinate system " + + cs[0].getName()); + + createFeatureFetcher(seq, + dasSource, + uprefs[0].getAccessionId()); + } } } } -- 1.7.10.2