map.loadMapping(url);\r
\r
// 2. Unmarshal the data\r
- Unmarshaller unmar = new Unmarshaller();\r
+ Unmarshaller unmar = new Unmarshaller(uni);\r
unmar.setIgnoreExtraElements(true);\r
unmar.setMapping(map);\r
- uni = (UniprotFile) unmar.unmarshal(new FileReader(file));\r
+ // unmar.setDebug(true);\r
\r
+ uni = (UniprotFile) unmar.unmarshal(new FileReader(file));\r
}\r
catch (Exception e)\r
{\r
System.out.println("Error getUniprotEntries() "+e);\r
}\r
+\r
+\r
return uni.getUniprotEntries();\r
}\r
\r
seqIndex++, i++)\r
{\r
Sequence sequence = (Sequence) sequences.get(seqIndex);\r
- Vector uprefs = jalview.util.DBRefUtils.selectRefs(sequence.getDBRef(), new String[] { "Uniprot"});\r
+ Vector uprefs = jalview.util.DBRefUtils.selectRefs(sequence.getDBRef(), new String[] {\r
+ jalview.datamodel.DBRefSource.UNIPROT});\r
if (uprefs!=null)\r
{\r
// we know the id for this entry, so don't note its ID in the unknownSequences list\r