/**
* Construct an output class for an alignment in a particular filetype
- *
+ * TODO: allow caller to detect errors and warnings encountered when generating output
+ *
* @param format
* string name of alignment format
* @param alignment
afile.setSeqs(alignment.getSequencesArray());
- return afile.print();
+ String afileresp = afile.print();
+ if (afile.hasWarningMessage())
+ {
+ System.err.println("Warning raised when writing as "+format+" : "+afile.getWarningMessage());
+ }
+ return afileresp;
} catch (Exception e)
{
System.err.println("Failed to write alignment as a '" + format
/**
* Format a vector of sequences as a flat alignment file.
+ * TODO: allow caller to detect errors and warnings encountered when generating output
+ *
*
* @param format
* Format string as givien in the AppletFormatAdaptor list
*/
afile.setSeqs(seqs);
-
- return afile.print();
+ String afileresp = afile.print();
+ if (afile.hasWarningMessage())
+ {
+ System.err.println("Warning raised when writing as "+format+" : "+afile.getWarningMessage());
+ }
+ return afileresp;
} catch (Exception e)
{
System.err.println("Failed to write alignment as a '" + format