beast-dev / beast-mcmc

Bayesian Evolutionary Analysis Sampling Trees
http://beast.community
GNU Lesser General Public License v2.1
192 stars 73 forks source link

TipLeapOperator and its parser #1041

Closed 4ment closed 6 years ago

4ment commented 6 years ago

TipLeapOperator is an operator that moves a tip from a pre-specified list of taxa. It is based on the SubtreeLeapOperator and it will be useful for SMC. Example:

<operators id="operators" optimizationSchedule="default">
  <tipLeap weight="3" size="0.001">
    <treeModel idref="treeModel"/>
    <taxa>
      <taxon idref="sStHya1991"/>
      <taxon idref="sWiscons1961"/>
    </taxa>
  </tipLeap>
</operators>
rambaut commented 6 years ago

I think this introduces too much code duplication with STL. It should probably just be a variant constructor for STL (but perhaps with its own Parser?). However, there are some other things we want to do to STL so I will merge the PR and then combine the code later.