import org.apache.log4j.Logger;\r
\r
import compbio.data.sequence.Alignment;\r
+import compbio.data.sequence.AnnotatedSequence;\r
import compbio.data.sequence.ClustalAlignmentUtil;\r
import compbio.data.sequence.FastaSequence;\r
import compbio.data.sequence.SequenceUtil;\r
return ClustalAlignmentUtil.readClustalFile(cfile);\r
}\r
\r
+ public static final List<AnnotatedSequence> readJronnFile(\r
+ String workDirectory, String clustFile)\r
+ throws UnknownFileFormatException, IOException,\r
+ FileNotFoundException, NullPointerException {\r
+ assert !compbio.util.Util.isEmpty(workDirectory);\r
+ assert !compbio.util.Util.isEmpty(clustFile);\r
+ File cfile = new File(compbio.engine.client.Util.getFullPath(\r
+ workDirectory, clustFile));\r
+ log.trace("Jronn OUTPUT FILE PATH: " + cfile.getAbsolutePath());\r
+ if (!(cfile.exists() && cfile.length() > 0)) {\r
+ throw new FileNotFoundException("Result for the jobId "\r
+ + workDirectory + " with file name " + clustFile\r
+ + " is not found!");\r
+ }\r
+ return SequenceUtil.readJRonn(cfile);\r
+ }\r
+\r
public static void writeInput(List<FastaSequence> sequences,\r
ConfiguredExecutable<?> exec) {\r
\r