Search in sources :

Example 1 with TKF91Model

use of dr.oldevomodel.indel.TKF91Model in project beast-mcmc by beast-dev.

the class TKF91LikelihoodParser method parseXMLObject.

public Object parseXMLObject(XMLObject xo) throws XMLParseException {
    TreeModel tree = (TreeModel) xo.getChild(TreeModel.class);
    Alignment alignment = (Alignment) xo.getChild(Alignment.class);
    GammaSiteModel siteModel = (GammaSiteModel) xo.getChild(GammaSiteModel.class);
    TKF91Model tkfModel = (TKF91Model) xo.getChild(TKF91Model.class);
    return new TKF91Likelihood(tree, alignment, siteModel, tkfModel);
}
Also used : TreeModel(dr.evomodel.tree.TreeModel) TKF91Likelihood(dr.oldevomodel.indel.TKF91Likelihood) Alignment(dr.evolution.alignment.Alignment) GammaSiteModel(dr.oldevomodel.sitemodel.GammaSiteModel) TKF91Model(dr.oldevomodel.indel.TKF91Model)

Example 2 with TKF91Model

use of dr.oldevomodel.indel.TKF91Model in project beast-mcmc by beast-dev.

the class TKF91ModelParser method parseXMLObject.

public Object parseXMLObject(XMLObject xo) throws XMLParseException {
    Parameter lengthDistParameter = (Parameter) xo.getElementFirstChild(TKF91_LENGTH_DIST);
    Parameter deathParameter = (Parameter) xo.getElementFirstChild(DEATH_RATE);
    Units.Type units = XMLUnits.Utils.getUnitsAttr(xo);
    return new TKF91Model(lengthDistParameter, deathParameter, units);
}
Also used : Parameter(dr.inference.model.Parameter) TKF91Model(dr.oldevomodel.indel.TKF91Model) Units(dr.evolution.util.Units) XMLUnits(dr.evoxml.util.XMLUnits)

Aggregations

TKF91Model (dr.oldevomodel.indel.TKF91Model)2 Alignment (dr.evolution.alignment.Alignment)1 Units (dr.evolution.util.Units)1 TreeModel (dr.evomodel.tree.TreeModel)1 XMLUnits (dr.evoxml.util.XMLUnits)1 Parameter (dr.inference.model.Parameter)1 TKF91Likelihood (dr.oldevomodel.indel.TKF91Likelihood)1 GammaSiteModel (dr.oldevomodel.sitemodel.GammaSiteModel)1