Search in sources :

Example 1 with MicrosatelliteSingleAncestralStateGibbsOperator

use of dr.evomodel.operators.MicrosatelliteSingleAncestralStateGibbsOperator in project beast-mcmc by beast-dev.

the class MicrosatelliteSingleAncestralStateGibbsOperatorParser method parseXMLObject.

public Object parseXMLObject(XMLObject xo) throws XMLParseException {
    final double weight = xo.getDoubleAttribute(MCMCOperator.WEIGHT);
    final Parameter parameter = (Parameter) xo.getChild(Parameter.class);
    final MicrosatelliteSamplerTreeModel msatSamplerTreeModel = (MicrosatelliteSamplerTreeModel) xo.getChild(MicrosatelliteSamplerTreeModel.class);
    final MicrosatelliteModel msatModel = (MicrosatelliteModel) xo.getChild(MicrosatelliteModel.class);
    final BranchRateModel branchRateModel = (BranchRateModel) xo.getChild(BranchRateModel.class);
    return new MicrosatelliteSingleAncestralStateGibbsOperator(parameter, msatSamplerTreeModel, msatModel, branchRateModel, weight);
}
Also used : MicrosatelliteModel(dr.oldevomodel.substmodel.MicrosatelliteModel) MicrosatelliteSamplerTreeModel(dr.evomodel.tree.MicrosatelliteSamplerTreeModel) MicrosatelliteSingleAncestralStateGibbsOperator(dr.evomodel.operators.MicrosatelliteSingleAncestralStateGibbsOperator) BranchRateModel(dr.evomodel.branchratemodel.BranchRateModel) Parameter(dr.inference.model.Parameter)

Aggregations

BranchRateModel (dr.evomodel.branchratemodel.BranchRateModel)1 MicrosatelliteSingleAncestralStateGibbsOperator (dr.evomodel.operators.MicrosatelliteSingleAncestralStateGibbsOperator)1 MicrosatelliteSamplerTreeModel (dr.evomodel.tree.MicrosatelliteSamplerTreeModel)1 Parameter (dr.inference.model.Parameter)1 MicrosatelliteModel (dr.oldevomodel.substmodel.MicrosatelliteModel)1