use of dr.app.beauti.components.discrete.DiscreteTraitsComponentOptions in project beast-mcmc by beast-dev.
the class BeautiOptions method updateTraitParameters.
private void updateTraitParameters(AbstractPartitionData partition) {
if (partition.isCreatedFromTrait()) {
ContinuousComponentOptions comp = (ContinuousComponentOptions) getComponentOptions(ContinuousComponentOptions.class);
comp.createParameters(this);
DiscreteTraitsComponentOptions comp2 = (DiscreteTraitsComponentOptions) getComponentOptions(DiscreteTraitsComponentOptions.class);
comp2.createParameters(this);
AncestralStatesComponentOptions comp3 = (AncestralStatesComponentOptions) getComponentOptions(AncestralStatesComponentOptions.class);
comp3.setReconstructAtNodes(partition, true);
comp3.setReconstructAtMRCA(partition, false);
}
}
Aggregations