customOptions = MetadataHelper.processParameters(prms,\r
msaws.getRunnerOptions());\r
}\r
+// System.out.println("The Options read from the command line: " + customOptions);\r
+ \r
Alignment alignment = null;\r
- RNAstruct rnastruct = null;\r
+ String rnastruct = null;\r
if (inputFile != null) {\r
Writer writer = null;\r
if (outFile != null) {\r
rnastruct = fold(inputFile, (FoldWS<T>) foldws, preset, customOptions);\r
// No IOHelper method for rnastruct/String yet\r
if (writer != null) {\r
- writer.write(rnastruct.toString());\r
+ writer.write(rnastruct);\r
}\r
}\r
writer.close();\r
* Preset to use optional\r
* @param customOptions\r
* file which contains new line separated list of options\r
- * @return RNAstruct\r
+ * @return String\r
*/\r
\r
- static <T> RNAstruct fold(File file, FoldWS<T> foldws, Preset<T> preset,\r
+ static <T> String fold(File file, FoldWS<T> foldws, Preset<T> preset,\r
List<Option<T>> customOptions) {\r
FileInputStream instream = null;\r
Alignment alignment = null;\r
- RNAstruct rnastruct = null;\r
+ String rnastruct = null;\r
try {\r
instream = new FileInputStream(file);\r
alignment = ClustalAlignmentUtil.readClustalFile(instream);\r
System.out.println("\n\ncalling fold.........");\r
Thread.sleep(1000);\r
rnastruct = foldws.getResult(jobId);\r
- log.info("log test print results:\n" + rnastruct.toString());\r
- System.out.println("print test results:\n " + rnastruct.toString());\r
\r
} catch (IOException e) {\r
System.err.println("Exception while reading the input file. Exception details: ");\r