Search in sources :

Example 1 with ExternalInternalBranchModel

use of dr.evomodel.branchmodel.ExternalInternalBranchModel in project beast-mcmc by beast-dev.

the class ExternalInternalBranchModelParser method parseXMLObject.

public Object parseXMLObject(XMLObject xo) throws XMLParseException {
    Logger.getLogger("dr.evomodel").info("\nUsing external-internal branch model.");
    TreeModel tree = (TreeModel) xo.getChild(TreeModel.class);
    SubstitutionModel internalSubstitutionModel = (SubstitutionModel) xo.getChild(SubstitutionModel.class);
    SubstitutionModel externalSubstitutionModel = (SubstitutionModel) xo.getElementFirstChild(EXTERNAL_BRANCHES);
    return new ExternalInternalBranchModel(tree, externalSubstitutionModel, internalSubstitutionModel);
}
Also used : ExternalInternalBranchModel(dr.evomodel.branchmodel.ExternalInternalBranchModel) TreeModel(dr.evomodel.tree.TreeModel) SubstitutionModel(dr.evomodel.substmodel.SubstitutionModel)

Aggregations

ExternalInternalBranchModel (dr.evomodel.branchmodel.ExternalInternalBranchModel)1 SubstitutionModel (dr.evomodel.substmodel.SubstitutionModel)1 TreeModel (dr.evomodel.tree.TreeModel)1