Package edu.msu.cme.rdp.taxatree.utils

Examples of edu.msu.cme.rdp.taxatree.utils.ClassifierTreeBuilder$ClassifierTaxonFactory


    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);
View Full Code Here

TOP

Related Classes of edu.msu.cme.rdp.taxatree.utils.ClassifierTreeBuilder$ClassifierTaxonFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.