public static String toXML ( MultipleAlignmentEnsemble ensemble ) throws IOException { StringWriter result = new StringWriter ( ) ; PrintWriter writer = new PrintWriter ( result ) ; PrettyXMLWriter xml = new PrettyXMLWriter ( writer ) ; MultipleAlignmentXMLConverter . printXMLensemble ( xml , ensemble ) ; writer . close ( ) ; return result . toString ( ) ; }
Converts all the information of a multiple alignment ensemble into an XML String format . Cached variables like transformation matrices and scores are also converted .