stageOutput(bldr.toString());
stageOutput("Pruning protein families");
boolean expand = withProteinFamilyExpansion();
t1 = currentTimeMillis();
DocumentModificationResult r = p3.pruneFamilies(expand, pfDoc, pn);
t2 = currentTimeMillis();
bldr.setLength(0);
markTime(bldr, t1, t2);
stageOutput(bldr.toString());
if (r.isFailure()) {
for (final String error : r.getErrors()) {
stageError(error);
}
return pn;
}
for (final String warning : r.getWarnings()) {
stageError(warning);
}
if (r.getRemainingStatements() == 0) {
bldr.setLength(0);
bldr.append("No statements remain after pruning");
markEndStage(bldr);
stageOutput(bldr.toString());
return pn;
}
bldr.setLength(0);
bldr.append(r.getRemainingStatements());
bldr.append(" of ");
bldr.append(r.getTotalStatements());
bldr.append(" statements remain after pruning");
stageOutput(bldr.toString());
stageOutput("Inferring protein family relationships");
t1 = currentTimeMillis();
r = p3.inferFamilies(pfDoc, pn);
t2 = currentTimeMillis();
bldr.setLength(0);
markTime(bldr, t1, t2);
stageOutput(bldr.toString());
if (r.isFailure()) {
for (final String error : r.getErrors()) {
stageError(error);
}
return pn;
}
for (final String warning : r.getWarnings()) {
stageError(warning);
}
bldr.setLength(0);
if (r.getDeltaStatements() == 0) {
bldr.append("No statements inferred for protein families");
} else {
bldr.append(r.getDeltaStatements());
bldr.append(" of ");
bldr.append(r.getTotalStatements());
bldr.append(" statements inferred for protein families");
}
stageOutput(bldr.toString());
stageOutput("Compiling pruned protein families");