Search in sources :

Example 1 with CTMCScalePrior

use of dr.evomodel.tree.CTMCScalePrior in project beast-mcmc by beast-dev.

the class CTMCScalePriorParser method parseXMLObject.

public Object parseXMLObject(XMLObject xo) throws XMLParseException {
    TreeModel treeModel = (TreeModel) xo.getChild(TreeModel.class);
    Parameter ctmcScale = (Parameter) xo.getElementFirstChild(SCALEPARAMETER);
    boolean reciprocal = xo.getAttribute(RECIPROCAL, false);
    boolean trial = xo.getAttribute(TRIAL, false);
    SubstitutionModel substitutionModel = (SubstitutionModel) xo.getChild(SubstitutionModel.class);
    Logger.getLogger("dr.evolution").info("Creating CTMC Scale Reference Prior model.");
    return new CTMCScalePrior(MODEL_NAME, ctmcScale, treeModel, reciprocal, substitutionModel, trial);
}
Also used : TreeModel(dr.evomodel.tree.TreeModel) CTMCScalePrior(dr.evomodel.tree.CTMCScalePrior) Parameter(dr.inference.model.Parameter) SubstitutionModel(dr.evomodel.substmodel.SubstitutionModel)

Aggregations

SubstitutionModel (dr.evomodel.substmodel.SubstitutionModel)1 CTMCScalePrior (dr.evomodel.tree.CTMCScalePrior)1 TreeModel (dr.evomodel.tree.TreeModel)1 Parameter (dr.inference.model.Parameter)1