- count++;\r
-\r
- StringTokenizer str = new StringTokenizer(line, " ");\r
-\r
- id = str.nextToken();\r
- id = id.substring(1);\r
-\r
- com.stevesoft.pat.Regex dbId = new com.stevesoft.pat.Regex(\r
- "[A-Za-z-]+/[A-Za-z-]+\\|(\\w+)\\|(.+)");\r
-\r
- if (dbId.search(id)) {\r
- String dbid = dbId.stringMatched(1);\r
- String idname = dbId.stringMatched(2);\r
-\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
- }\r
- }\r
-\r
- if (id.indexOf("/") > 0) {\r
- StringTokenizer st = new StringTokenizer(id, "/");\r
-\r
- if (st.countTokens() == 2) {\r
- id = st.nextToken();\r