Only send one call per sequence at the moment
authoramwaterhouse <Andrew Waterhouse>
Tue, 24 Oct 2006 12:36:20 +0000 (12:36 +0000)
committeramwaterhouse <Andrew Waterhouse>
Tue, 24 Oct 2006 12:36:20 +0000 (12:36 +0000)
src/jalview/io/DasSequenceFeatureFetcher.java

index 305160e..21ead9c 100755 (executable)
@@ -247,23 +247,24 @@ public class DasSequenceFeatureFetcher
           // we know the id for this entry, so don't note its ID in the unknownSequences list\r
          // for (int j = 0; j < uprefs.length; j++)\r
           {\r
-\r
-            // 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\r
+            // Will have to pass any mapping information to the fetcher\r
+            //- the start/end for the DBRefEntry may not be the same as the sequence's start/end\r
             DasCoordinateSystem cs[] = dasSource.getCoordinateSystem();\r
-           // if(cs.length>0)\r
-             // System.out.println("err "+\r
-            for (int l = 0; l < cs.length; l++)\r
+            if(cs.length>0)\r
             {\r
-              if (jalview.util.DBRefUtils.isDasCoordinateSystem(cs[l].\r
-                  getName(), uprefs[0]))\r
+             // for (int l = 0; l < cs.length; l++)\r
               {\r
-\r
-                Cache.log.debug("Launched fetcher for coordinate system " +\r
-                                   cs[l].getName());\r
-\r
-                createFeatureFetcher(seq,\r
-                                     dasSource,\r
-                                     uprefs[0].getAccessionId());\r
+               //\r
+               if (jalview.util.DBRefUtils\r
+                    .isDasCoordinateSystem(cs[0].getName(), uprefs[0]))\r
+                {\r
+                  Cache.log.debug("Launched fetcher for coordinate system " +\r
+                                  cs[0].getName());\r
+\r
+                  createFeatureFetcher(seq,\r
+                                       dasSource,\r
+                                       uprefs[0].getAccessionId());\r
+                }\r
               }\r
             }\r
           }\r