-\r
- if ((idname.length() > 0) &&\r
- (idname.indexOf("_") > -1)) {\r
- id = idname; // just use friendly name // JBPNote: we may lose uniprot standardised ID here.\r
- } else {\r
- id = dbid; // use dbid to ensure sensible queries\r
+ if ( (idname.length() > 0) &&\r
+ (idname.indexOf("_") > -1)) {\r
+ id = idname; // use the friendly name - apparently no dbid\r
+ } else\r
+ if (dbid.length()>1) {\r
+ id = dbid; // ignore the friendly name - we lose uniprot accession ID otherwise\r