Expand description
rust support for demes.
Introduction
This crate provides:
- Support for reading
YAMLdescriptions ofdemesmodels. Seeloadsandload. - Support for building a demes model using
rustcode. SeeGraphBuilder.
The output of any of these operations is a fully-resolved
Graph.
More information
- See here for
an overview of
demes.
Technical details
YAMLandGraphBuilderinputs support the Human Data Model (HDM) described in the demes specification- A
Graphis fully-resolved according to the Machine Data Model (MDM) described in the specification.
Features
The following cargo features are available:
json: enables reading/writing aGraphin JSON format.
Structs
- An asymmetric migration epoch.
- The cloning rate of an
Epoch. - A resolved deme.
- Deme-level defaults
- A resolved epoch
- Generation time.
- A resolved demes Graph.
- This type allows building a
Graphusing code rather then using text input. - Top-level defaults
- Top-level metadata
- A migration rate.
- An ancestry proportion.
- A resolved Pulse event
- The selfing rate of an
Epoch. - Store time values.
- A half-open time interval
[present, past). - Top-level defaults for a
Deme. - HDM data for a
Deme - HDM representation of an epoch.
- An unresolved migration epoch.
- An unresolved Pulse event.
Enums
- Error type for this crate.
- Specify how deme sizes change during an
Epoch. - The time units of a graph
Functions
- load_json
jsonLoad aGraphfrom a JSON reader. - loads_json
jsonGenerate aGraphfrom a JSON string. - Convert a time value into generations, rounding output to closest integer.
- Return the package version given in the
Cargo.tomlfile of this crate.