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);
}
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);
}
Aggregations