public AlignmentI getEmblSequenceRecords(String emprefx, String query) throws Exception\r
{\r
startQuery();\r
- SequenceI seqs[] = null;\r
- Vector alseq = new Vector(); // the sequences that will actually be presented in the alignment\r
- StringBuffer result = new StringBuffer();\r
EBIFetchClient dbFetch = new EBIFetchClient();\r
File reply; \r
try {\r
stopQuery();\r
throw new Exception("EBI EMBL XML retrieval failed on "+emprefx.toLowerCase()+":"+query.trim(),e);\r
}\r
+ return getEmblSequenceRecords(emprefx, query, reply);\r
+ }\r
+ /**\r
+ * parse an emblxml file stored locally\r
+ * @param emprefx either EMBL or EMBLCDS strings are allowed - anything else will not retrieve emblxml\r
+ * @param query\r
+ * @param file the EMBL XML file containing the results of a query\r
+ * @return\r
+ * @throws Exception\r
+ */\r
+ public AlignmentI getEmblSequenceRecords(String emprefx, String query, File reply) throws Exception\r
+ {\r
+ SequenceI seqs[] = null;\r
+ StringBuffer result = new StringBuffer();\r
if (reply != null && reply.exists())\r
{\r
efile=null;\r