import jalview.ext.treeviewer.TreeI;
import jalview.ext.treeviewer.TreeNodeI;
+import java.io.File;
+import java.io.IOException;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import org.forester.archaeopteryx.Archaeopteryx;
+import org.forester.io.writers.PhylogenyWriter;
import org.forester.phylogeny.Phylogeny;
import org.forester.phylogeny.PhylogenyMethods;
import org.forester.phylogeny.PhylogenyNode;
{
List<SequenceI> treeSeqs = new ArrayList<>();
Iterator<TreeNodeI> iter = iterateInPreOrder();
- int i = 0;
while (iter.hasNext())
{
return treeNodes;
}
+ @Override
+ public void writeToXml(File outputFile) throws IOException
+ {
+ PhylogenyWriter treeWriter = new PhylogenyWriter();
+ treeWriter.toPhyloXML(tree, 0, outputFile);
+
+
+ }
+
}
import jalview.datamodel.SequenceI;
+import java.io.File;
+import java.io.IOException;
import java.util.Iterator;
import java.util.List;
TreeFrameI createTreeViewerFromTree(String instanceTitle);
+ public void writeToXml(File outputFile) throws IOException;
+
}