Search in sources :

Example 1 with ACGLikelihood

use of bacter.model.ACGLikelihood in project bacter by tgvaughan.

the class CustomConnectors method applyRestrictions.

public static void applyRestrictions(BeautiDoc doc) {
    for (BEASTInterface p : doc.getPartitions("Tree")) {
        ACGLikelihood acgLikelihood = (ACGLikelihood) p;
        SimulatedACG acg = (SimulatedACG) ((ACGLikelihood) p).treeInput.get();
        ACGCoalescent coalescent = null;
        for (BEASTInterface output : acg.getOutputs()) {
            if (output instanceof ACGCoalescent) {
                coalescent = (ACGCoalescent) output;
                break;
            }
        }
        if (coalescent == null)
            continue;
        acg.setWholeLocusMode(coalescent.wholeLocusConversionsInput.get());
    }
}
Also used : ACGLikelihood(bacter.model.ACGLikelihood) ACGCoalescent(bacter.model.ACGCoalescent) SimulatedACG(bacter.model.SimulatedACG) BEASTInterface(beast.core.BEASTInterface)

Aggregations

ACGCoalescent (bacter.model.ACGCoalescent)1 ACGLikelihood (bacter.model.ACGLikelihood)1 SimulatedACG (bacter.model.SimulatedACG)1 BEASTInterface (beast.core.BEASTInterface)1