Search in sources :

Example 1 with NewMicrosatelliteModel

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);
}
Also used : FrequencyModel(dr.oldevomodel.substmodel.FrequencyModel) Microsatellite(dr.evolution.datatype.Microsatellite) NewMicrosatelliteModel(dr.oldevomodel.substmodel.NewMicrosatelliteModel)

Aggregations

Microsatellite (dr.evolution.datatype.Microsatellite)1 FrequencyModel (dr.oldevomodel.substmodel.FrequencyModel)1 NewMicrosatelliteModel (dr.oldevomodel.substmodel.NewMicrosatelliteModel)1