TaxonLabelSet inputLabelSet = step.getInputTaxonLabelSet();
inputLabelSet.buildNexusBlockTaxa(stepContent, true, false);
for ( AnalyzedData data : step.getDataSetReadOnly() ) {
if ( data.isInputData() ) {
PhyloTree tree = data.getTreeData();
Matrix matrix = data.getMatrixData();
if ( tree != null ) {
tree.getTreeBlock().setTaxonLabelSet(inputLabelSet);
tree.buildNexusBlock(stepContent);
}
if ( matrix != null ) {
matrix.setTaxa(inputLabelSet);
matrix.generateNexusBlock(stepContent);
}
}
}
stepContent.append("[ The following blocks are output data for analysis step " + analysisId + " ]\n");
TaxonLabelSet outputLabelSet = step.getOutputTaxonLabelSet();
//outputLabelSet.buildNexusBlockTaxa(stepContent, true, false);
for ( AnalyzedData data : step.getDataSetReadOnly() ) {
if ( ! data.isInputData() ) {
PhyloTree tree = data.getTreeData();
Matrix matrix = data.getMatrixData();
if ( tree != null ) {
tree.getTreeBlock().setTaxonLabelSet(outputLabelSet);
tree.buildNexusBlock(stepContent);
}
if ( matrix != null ) {
matrix.setTaxa(outputLabelSet);
matrix.generateNexusBlock(stepContent);
}
}
}
return stepContent.toString();
}