use of dr.oldevomodel.substmodel.NewMicrosatelliteModel in project beast-mcmc by beast-dev.
the class NewMicrosatelliteModelParser method parseXMLObject.
//AbstractXMLObjectParser implementation
public Object parseXMLObject(XMLObject xo) throws XMLParseException {
//get msat data type
System.out.println("Using watkins' model");
Microsatellite msat = (Microsatellite) xo.getChild(Microsatellite.class);
//get FrequencyModel
FrequencyModel freqModel = null;
if (xo.hasChildNamed(FrequencyModelParser.FREQUENCIES)) {
freqModel = (FrequencyModel) xo.getElementFirstChild(FrequencyModelParser.FREQUENCIES);
}
return new NewMicrosatelliteModel(msat, freqModel);
}
Aggregations