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());
}
}
Aggregations