UniprotEntry entry = (UniprotEntry) entries.elementAt(i);\r
Enumeration e = entry.getDbReference().elements();\r
Vector onlyPdbEntries = new Vector();\r
+ Vector dbxrefs = new Vector();\r
while (e.hasMoreElements())\r
{\r
PDBEntry pdb = (PDBEntry) e.nextElement();\r
if (!pdb.getType().equals("PDB"))\r
{\r
+ DBRefEntry dbr = new DBRefEntry();\r
+ dbr.setSource(pdb.getType());\r
+ dbr.setAccessionId(pdb.getId());\r
+ dbr.setVersion(DBRefSource.UNIPROT+":"+getDbVersion());\r
+ dbxrefs.addElement(dbr);\r
continue;\r
}\r
\r
new DBRefEntry(DBRefSource.UNIPROT, getDbVersion(), en2.nextElement()\r
.toString()));\r
}\r
+ en2 = dbxrefs.elements();\r
+ while (en2.hasMoreElements())\r
+ {\r
+ // we always add as uniprot if we retrieved from uniprot or uniprot name\r
+ sq.addDBRef((DBRefEntry) en2.nextElement());\r
+ \r
+ }\r
sq.setPDBId(onlyPdbEntries);\r
if (entry.getFeature() != null)\r
{\r