Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

⚠️ Warning: Phylogenie is no longer maintained. Development continues in phyloom. Please migrate to it.


AliSim PyPI version Downloads

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!

✨ 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 .csv file.

  • Generalizable configurations 🔧 Easily apply the same configuration across multiple dataset splits (e.g., train, validation, test).

  • Flexible acceptance criteria 🔄
    Define custom acceptance 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 canonical, fossilized birth-death, epidemiological, birth-death with exposed-infectious (BDEI), birth-death with superspreading (BDSS).

  • 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 pyenv.

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 dependency

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 tutorials folder.
It includes a collection of thoroughly commented configuration files, organized as a step-by-step tutorial. These examples will help you understand how to use Phylogenie in practice and can be easily adapted to fit your own workflow.

For quick start, pick your favorite config file and run Phylogenie with:

phylogenie tutorials/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.

❗ Tip: Can’t choose just one config file? You can run them all at once by pointing Phylogenie to the folder! Just use: phylogenie tutorials. In this mode, Phylogenie will automatically find all .yaml files in the folder you specified and run for each of them!

📖 Documentation

  • The tutorials folder contains many ready-to-use, extensively commented configuration files that serve as a step-by-step tutorial to guide you through using Phylogenie. You can explore them to learn how it works or adapt them directly to your own workflows.
  • A complete user guide and API reference are under development. In the meantime, feel free to reach out if you have any questions about integrating Phylogenie into your workflows.

📄 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.12.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for phylogenie 3.12.0
File Size Uploaded Provenance Actions
phylogenie-3.12.0.tar.gz 35.4 kB Without provenance Details for phylogenie-3.12.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for phylogenie 3.12.0
File Interpreter ABI Platform Actions
phylogenie-3.12.0-py3-none-any.whl Python 3 none any Details for phylogenie-3.12.0-py3-none-any.whl

Total release size: 80.0 kB

Release files / phylogenie-3.12.0.tar.gz

Download URL phylogenie-3.12.0.tar.gz
Size 35.4 kB
Tags Source
SHA-256 checksum
How to use checksums
1098f97bd7fd54ec1d3724870f243328b6ad3772e40365fe194d0d58f7a90f64
BLAKE2b-256 checksum
How to use checksums
12642aec2b91896de19d85a7fed5b371afc467abd072f00fa5384563057bd12d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.5

Release files / phylogenie-3.12.0-py3-none-any.whl

Download URL phylogenie-3.12.0-py3-none-any.whl
Size 44.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
642b4d31a61a7ff810971f93992e421d290b427a8666c6aaabc5c9f801932909
BLAKE2b-256 checksum
How to use checksums
adba6711de32f0f952a3acc38ed1f195d9b12a1458de5e064a719d0c1ec3cbde
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.5

Security for phylogenie 3.12.0

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.

Release history Release notifications | RSS feed

This release
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page