}
outStream.println();
for ( int i = 0; i < ranks.size(); i++){
outStream.print(ranks.get(i));
for ( int t = 0; t < this.trainsets.size(); t++){
HierarchyTree root = trainsets.get(t).getRoot();
HashMap<String, HierarchyTree> nodeMap = new HashMap<String, HierarchyTree>();
root.getNodeMap(ranks.get(i), nodeMap);
outStream.print("\t" + nodeMap.size());
}
outStream.println();
}
outStream.print("All Seqs");
for ( HierarchyTreeExtend factory: this.trainsets ){
HierarchyTree root = factory.getRoot();
outStream.print("\t" + root.getTotalSeqs());
}
outStream.println();
// data for Venn Diagram if less than 3 sets
if ( this.trainsets.size() == 2 || this.trainsets.size() == 3){
outStream.println("\n## data for Venn Diagram");
for ( int i = 0; i < ranks.size(); i++){
outStream.println("\n## Rank " + ranks.get(i));
ArrayList<Set<String>> taxaList = new ArrayList<Set<String>>();
for ( int t = 0; t < this.trainsets.size(); t++){
HierarchyTree root = trainsets.get(t).getRoot();
HashMap<String, HierarchyTree> nodeMap = new HashMap<String, HierarchyTree>();
root.getNodeMap(ranks.get(i), nodeMap);
taxaList.add(nodeMap.keySet());
}
Set<String> tempSet = new HashSet<String>();
tempSet.addAll(taxaList.get(0));