Add uniprot DBref
authoramwaterhouse <Andrew Waterhouse>
Mon, 21 Aug 2006 14:39:36 +0000 (14:39 +0000)
committeramwaterhouse <Andrew Waterhouse>
Mon, 21 Aug 2006 14:39:36 +0000 (14:39 +0000)
src/jalview/gui/SequenceFetcher.java

index f3d8e29..d530b84 100755 (executable)
@@ -301,6 +301,17 @@ public class SequenceFetcher
           onlyPdbEntries.addElement(pdb);\r
         }\r
 \r
+        Enumeration en2 = entry.getAccession().elements();\r
+        while (en2.hasMoreElements())\r
+        {\r
+          sequence[i].getDatasetSequence().addDBRef(new DBRefEntry(DBRefSource.UNIPROT,\r
+                    "0",\r
+                    en2.nextElement().toString()));\r
+        }\r
+\r
+\r
+\r
+\r
         sequence[i].getDatasetSequence().setPDBId(onlyPdbEntries);\r
         if (entry.getFeature() != null)\r
         {\r