X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fio%2FDasSequenceFeatureFetcher.java;h=3186002e2d1859f1cd9a2606e0cef6e98be567d0;hb=fbb18baad3919cbf94fcb5159bbd5269d6af18b4;hp=305160eb9a579c9ac8d09e68eaca14bf959fde7e;hpb=f3581eb4882e66b7d66a9573be5103358196fd2d;p=jalview.git diff --git a/src/jalview/io/DasSequenceFeatureFetcher.java b/src/jalview/io/DasSequenceFeatureFetcher.java index 305160e..3186002 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()); + } } } } @@ -442,7 +443,7 @@ public class DasSequenceFeatureFetcher DasSourceReaderImpl reader = new DasSourceReaderImpl(); String registryURL = jalview.bin.Cache.getDefault("DAS_REGISTRY_URL", - "http://das.sanger.ac.uk/registry/das1/sources/" + "http://www.dasregistry.org/registry/das1/sources/" ); try