This project has been archived by its maintainers, and is no longer receiving any updates.
Phylogenie is a Python package designed to easily simulate phylogenetic datasets—such as trees and multiple sequence alignments (MSAs)—with minimal setup effort. Simply specify the distributions from which your parameters should be sampled, and Phylogenie will handle the rest! It also makes it easy to define your own simulation models, allowing you to tailor simulations to your specific use cases.
✨ Features
Phylogenie comes packed with useful features, including:
-
Simulate tree and multiple sequence alignment (MSA) datasets from parameter distributions 🌳🧬
Define distributions over your parameters and sample a different combination of parameters for each dataset sample. -
Automatic metadata management 🗂️
Phylogenie stores each parameter combination sampled during dataset generation in a.csvfile. -
Generalizable configurations 🔧
Easily apply the same configuration across multiple dataset splits (e.g., train, validation, test). -
Flexible acceptance and stopping criteria 🔄
Define custom acceptance and stopping criteria on the simulated trees to ensure they meet your requirements. -
Multiprocessing support ⚙️💻
Simply specify the number of cores to use, and Phylogenie handles multiprocessing automatically. -
Pre-implemented parameterizations 🎯
Include birth-death (BD), birth-death with exposed-infectious (BDEI), birth-death with superspreading (BDSS), susceptible-infected-recovered (SIR), and other commonly used parameterizations. -
Custom models and extensibility 🧩
Define your own simulation models and extend Phylogenie via plugins. -
Skyline parameter support 🪜
Support for piece-wise constant parameters. -
Operations on parameters 🧮
Perform flexible operations between parameters directly within the config file.
📦 Installation
Phylogenie requires Python 3.10+ to be installed on your system. There are several ways to install Python and managing different Python versions. One popular option is to use uv.
Once you have Python set up, you can install Phylogenie directly from PyPI:
pip install phylogenie
Or install from source:
git clone https://github.com/gabriele-marino/phylogenie.git
cd phylogenie
pip install .
🛠 Backend dependencies
Phylogenie relies on AliSim for simulating multiple sequence alignments (MSAs). AliSim is a powerful MSAs simulation tool distributed with IQ-TREE, and requires separate installation to use it as a simulation backend.
🚀 Quick start
Once you have installed Phylogenie, check out the YAML examples folder.
For quick start, pick your favorite config file and run Phylogenie with:
phylogenie examples/yaml/config_file.yaml
This command will create the output dataset in the folder specified inside the configuration file, including data directories and metadata files for each dataset split defined in the config.
📖 Examples and documentation
The documentation website provides a comprehensive reference, including detailed explanations of configuration options, models, and usage examples. It also covers the full Python API, along with step-by-step tutorials on how to develop custom plugins and extend the framework with new functionality.
📄 License
This project is licensed under MIT License.
📫 Contact
For questions, bug reports, or feature requests, please, consider opening an issue on GitHub, or contact me directly.
For help with configuration files, don’t hesitate to reach out — I’m happy to assist!
Metadata
Release files for phylogenie 3.11.8.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| phylogenie-3.11.8.2.tar.gz | 44.0 kB | Without provenance | Details for phylogenie-3.11.8.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| phylogenie-3.11.8.2-py3-none-any.whl | Python 3 | none | any | Details for phylogenie-3.11.8.2-py3-none-any.whl |
Total release size: 101.6 kB
Release files / phylogenie-3.11.8.2.tar.gz
| Download URL | phylogenie-3.11.8.2.tar.gz |
|---|---|
| Size | 44.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8357ef8589cad23976e6edd5c7cb40cd8124a8be44983383db44dd9195abcc84
|
|
BLAKE2b-256 checksum How to use checksums |
742f7c118c66fa4ce9e25c2c36a401da6d84c547ebc52c8f4ff60fd8a6040e56
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.5
|
Release files / phylogenie-3.11.8.2-py3-none-any.whl
| Download URL | phylogenie-3.11.8.2-py3-none-any.whl |
|---|---|
| Size | 57.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3f2809231e414b5fa614d982231e42132a23253536375ca6198a62b73d3ee45a
|
|
BLAKE2b-256 checksum How to use checksums |
0d78e2aa4d687ff63b283d900e5a4a3e2d69ba75a2279d1110031c162d7b26e7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.5
|
Security for phylogenie 3.11.8.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.