public UnifracTreeBuilder(List<ClassificationResult> classifications, final Map<String, UnifracSample> sampleMap) {
this(classifications, sampleMap, 0.0f);
}
public UnifracTreeBuilder(List<ClassificationResult> classifications, final Map<String, UnifracSample> sampleMap, float cutoff) {
builder = new ClassifierTreeBuilder(new UnifracTree(), classifications, cutoff, new ClassifierTaxonFactory<UnifracTaxon>() {
public UnifracTaxon buildTaxon(int taxid, String name, String rank, float conf, boolean unclassified) {
float dist = 1f;
if(rank.equals("sequence"))
dist = 0.0f;
return new UnifracTaxon(taxid, name, rank, dist, unclassified);