- if(st.hasMoreTokens())\r
- id = st.nextToken();\r
-\r
-\r
- // Remove /start-end from sequence\r
- if (id.indexOf("/") > 0)\r
- {\r
- st = new StringTokenizer(id, "/");\r
- String limits=null;\r
- try{\r
- if (st.countTokens() == 2)\r
- {\r
- id = st.nextToken();\r
-\r
- limits = st.nextToken();\r
-\r
- st = new StringTokenizer(limits, "-");\r
-\r
- if (st.countTokens() == 2)\r
- {\r
- seq.setStart(Integer.valueOf(st.nextToken()).intValue());\r
- seq.setEnd(Integer.valueOf(st.nextToken()).intValue());\r
- }\r
- }\r
- }catch(NumberFormatException ex)\r
- {\r
- // Problem parsing sequence limits. Just add it back to the\r
- // Id so we dont lose this info\r
- id += "/" + limits;\r
- }\r
- }\r
- seq.setName(id);\r