Skip to content

PhyDyn Utilities

Igor Siveroni edited this page May 29, 2020 · 8 revisions

pdutils: PhyDyn Utilities

pdutils is a set of utility programs designed to help users with the creation of PhyDyn population models and analyses. pdutils is provided as a jar file available from the /jars directory in the PhyDyn repository.

PhyDyn utilities can be accessed by running the jar file followed by a command name and suitable arguments:

> java -jar <pdutils-jar> <pdu-command> <pdu-arguments>

pdutils is work in progress. Available functionality is listed below.

Code Generation Tools

Translation of PhyDyn population models to R models.

phydynutils can be used to extract a PopModelODE object from a PhyDyn analysis file and generate the corresponding phydynR or Odin R model file.

The following commands are available:

  • <pdu-command> ::= generate_phydynr
    Generates a phydynR popmodel file from an xml containing the PhyDyn analysis.

Usage:

> java -jar <pdutils-jar> generate_phydynr <xml-file> <phydynr-file>
  • <pdu-command> ::= generate_odin
    Generates a odin R file from an xml containing the PhyDyn analysis.

Usage:

> java -jar generate_odin <xml-file> <odin-file>

Clone this wiki locally