return;\r
\r
SequenceI sequence = null;\r
- // String pdb = null;\r
\r
Vector entries = getUniprotEntries(file);\r
\r
\r
if (sequence == null)\r
{\r
- System.out.println("not found");\r
+ System.out.println(idmatch+" not found");\r
continue;\r
}\r
\r
int absStart = entry.getUniprotSequence().getContent().indexOf(\r
nonGapped.toString());\r
\r
- int residueOffset = 0;\r
if (absStart == -1)\r
{\r
// Is UniprotSequence contained in dataset sequence?\r
}\r
else\r
{\r
- if(entry.getFeatures()!=null)\r
+ if(entry.getFeature()!=null)\r
{\r
- Enumeration e = entry.getFeatures().elements();\r
+ Enumeration e = entry.getFeature().elements();\r
while (e.hasMoreElements())\r
{\r
SequenceFeature sf = (SequenceFeature) e.nextElement();\r
int absEnd = absStart + nonGapped.toString().length();\r
absStart += 1;\r
\r
- sequence.setSequenceFeatures(entry.getFeatures());\r
+ Enumeration e = entry.getDbReference().elements();\r
+ Vector onlyPdbEntries = new Vector();\r
+ while(e.hasMoreElements())\r
+ {\r
+ PDBEntry pdb = (PDBEntry)e.nextElement();\r
+ if(!pdb.getType().equals("PDB"))\r
+ continue;\r
+\r
+ onlyPdbEntries.addElement(pdb);\r
+ }\r
+\r
+ sequence.setPDBId(onlyPdbEntries);\r
+ sequence.setSequenceFeatures(entry.getFeature());\r
sequence.setStart(absStart);\r
sequence.setEnd(absEnd);\r
\r