Search in sources :

Example 1 with SpeciesTreeStatistic

use of dr.evomodel.tree.SpeciesTreeStatistic in project beast-mcmc by beast-dev.

the class SpeciesTreeStatisticParser method parseXMLObject.

public Object parseXMLObject(XMLObject xo) throws XMLParseException {
    String name = xo.getAttribute(Statistic.NAME, xo.getId());
    Tree speciesTree = (Tree) xo.getElementFirstChild("speciesTree");
    Tree popTree = (Tree) xo.getElementFirstChild("populationTree");
    return new SpeciesTreeStatistic(name, speciesTree, popTree);
}
Also used : Tree(dr.evolution.tree.Tree) SpeciesTreeStatistic(dr.evomodel.tree.SpeciesTreeStatistic)

Aggregations

Tree (dr.evolution.tree.Tree)1 SpeciesTreeStatistic (dr.evomodel.tree.SpeciesTreeStatistic)1