Search in sources :

Example 1 with DiscreteTraitsComponentOptions

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);
    }
}
Also used : DiscreteTraitsComponentOptions(dr.app.beauti.components.discrete.DiscreteTraitsComponentOptions) ContinuousComponentOptions(dr.app.beauti.components.continuous.ContinuousComponentOptions) AncestralStatesComponentOptions(dr.app.beauti.components.ancestralstates.AncestralStatesComponentOptions)

Aggregations

AncestralStatesComponentOptions (dr.app.beauti.components.ancestralstates.AncestralStatesComponentOptions)1 ContinuousComponentOptions (dr.app.beauti.components.continuous.ContinuousComponentOptions)1 DiscreteTraitsComponentOptions (dr.app.beauti.components.discrete.DiscreteTraitsComponentOptions)1