phylogenie 1.0.0__tar.gz → 1.0.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- phylogenie-1.0.1/LICENSE.txt +22 -0
- phylogenie-1.0.1/PKG-INFO +120 -0
- phylogenie-1.0.1/README.md +100 -0
- {phylogenie-1.0.0 → phylogenie-1.0.1}/phylogenie/backend/remaster/generate.py +2 -1
- {phylogenie-1.0.0 → phylogenie-1.0.1}/phylogenie/core/trees/remaster/generator.py +2 -0
- {phylogenie-1.0.0 → phylogenie-1.0.1}/pyproject.toml +2 -2
- phylogenie-1.0.0/PKG-INFO +0 -31
- phylogenie-1.0.0/README.md +0 -11
- {phylogenie-1.0.0 → phylogenie-1.0.1}/phylogenie/__init__.py +0 -0
- {phylogenie-1.0.0 → phylogenie-1.0.1}/phylogenie/backend/__init__.py +0 -0
- {phylogenie-1.0.0 → phylogenie-1.0.1}/phylogenie/backend/remaster/__init__.py +0 -0
- {phylogenie-1.0.0 → phylogenie-1.0.1}/phylogenie/backend/remaster/reactions.py +0 -0
- {phylogenie-1.0.0 → phylogenie-1.0.1}/phylogenie/backend/treesimulator.py +0 -0
- {phylogenie-1.0.0 → phylogenie-1.0.1}/phylogenie/configs.py +0 -0
- {phylogenie-1.0.0 → phylogenie-1.0.1}/phylogenie/core/__init__.py +0 -0
- {phylogenie-1.0.0 → phylogenie-1.0.1}/phylogenie/core/configs.py +0 -0
- {phylogenie-1.0.0 → phylogenie-1.0.1}/phylogenie/core/context/__init__.py +0 -0
- {phylogenie-1.0.0 → phylogenie-1.0.1}/phylogenie/core/context/configs.py +0 -0
- {phylogenie-1.0.0 → phylogenie-1.0.1}/phylogenie/core/context/distributions.py +0 -0
- {phylogenie-1.0.0 → phylogenie-1.0.1}/phylogenie/core/context/factories.py +0 -0
- {phylogenie-1.0.0 → phylogenie-1.0.1}/phylogenie/core/dataset.py +3 -3
- {phylogenie-1.0.0 → phylogenie-1.0.1}/phylogenie/core/factories.py +0 -0
- {phylogenie-1.0.0 → phylogenie-1.0.1}/phylogenie/core/msas/__init__.py +0 -0
- {phylogenie-1.0.0 → phylogenie-1.0.1}/phylogenie/core/msas/alisim.py +0 -0
- {phylogenie-1.0.0 → phylogenie-1.0.1}/phylogenie/core/msas/base.py +0 -0
- {phylogenie-1.0.0 → phylogenie-1.0.1}/phylogenie/core/trees/__init__.py +0 -0
- {phylogenie-1.0.0 → phylogenie-1.0.1}/phylogenie/core/trees/base.py +0 -0
- {phylogenie-1.0.0 → phylogenie-1.0.1}/phylogenie/core/trees/remaster/__init__.py +0 -0
- {phylogenie-1.0.0 → phylogenie-1.0.1}/phylogenie/core/trees/remaster/configs.py +0 -0
- {phylogenie-1.0.0 → phylogenie-1.0.1}/phylogenie/core/trees/remaster/factories.py +0 -0
- {phylogenie-1.0.0 → phylogenie-1.0.1}/phylogenie/core/trees/treesimulator.py +1 -1
- {phylogenie-1.0.0 → phylogenie-1.0.1}/phylogenie/core/typeguards.py +0 -0
- {phylogenie-1.0.0 → phylogenie-1.0.1}/phylogenie/core/typings.py +0 -0
- {phylogenie-1.0.0 → phylogenie-1.0.1}/phylogenie/main.py +0 -0
- {phylogenie-1.0.0 → phylogenie-1.0.1}/phylogenie/py.typed +0 -0
- {phylogenie-1.0.0 → phylogenie-1.0.1}/phylogenie/skyline/__init__.py +0 -0
- {phylogenie-1.0.0 → phylogenie-1.0.1}/phylogenie/skyline/matrix.py +0 -0
- {phylogenie-1.0.0 → phylogenie-1.0.1}/phylogenie/skyline/parameter.py +0 -0
- {phylogenie-1.0.0 → phylogenie-1.0.1}/phylogenie/skyline/vector.py +0 -0
- {phylogenie-1.0.0 → phylogenie-1.0.1}/phylogenie/typeguards.py +0 -0
- {phylogenie-1.0.0 → phylogenie-1.0.1}/phylogenie/typings.py +0 -0
- {phylogenie-1.0.0 → phylogenie-1.0.1}/phylogenie/utils.py +0 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 GABRIELE MARINO
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
6
|
+
a copy of this software and associated documentation files (the
|
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
11
|
+
the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be
|
|
14
|
+
included in all copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: phylogenie
|
|
3
|
+
Version: 1.0.1
|
|
4
|
+
Summary: Generate phylogenetic datasets with minimal setup effort
|
|
5
|
+
Author: gabriele-marino
|
|
6
|
+
Author-email: gabmarino.8601@gmail.com
|
|
7
|
+
Requires-Python: >=3.10,<4.0
|
|
8
|
+
Classifier: Programming Language :: Python :: 3
|
|
9
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
10
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
11
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
12
|
+
Requires-Dist: joblib (>=1.4.2,<2.0.0)
|
|
13
|
+
Requires-Dist: pandas (>=2.2.2,<3.0.0)
|
|
14
|
+
Requires-Dist: pydantic (>=2.11.5,<3.0.0)
|
|
15
|
+
Requires-Dist: pyyaml (>=6.0.2,<7.0.0)
|
|
16
|
+
Requires-Dist: tqdm (>=4.66.4,<5.0.0)
|
|
17
|
+
Requires-Dist: treesimulator (>=0.2.15,<0.3.0)
|
|
18
|
+
Description-Content-Type: text/markdown
|
|
19
|
+
|
|
20
|
+
<p align="center">
|
|
21
|
+
<img src="https://raw.githubusercontent.com/gabriele-marino/phylogenie/main/logo.png" style="width:100%; height:auto;"/>
|
|
22
|
+
</p>
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
[](https://github.com/evolbioinfo/treesimulator)
|
|
27
|
+
[](https://tgvaughan.github.io/remaster/)
|
|
28
|
+
[](https://iqtree.github.io/doc/AliSim)
|
|
29
|
+
|
|
30
|
+
Phylogenie is a [Python](https://www.python.org/) 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!
|
|
31
|
+
|
|
32
|
+
## ✨ Features
|
|
33
|
+
|
|
34
|
+
Phylogenie comes packed with useful features, including:
|
|
35
|
+
|
|
36
|
+
- **Simulate tree and multiple sequence alignment (MSA) datasets from parameter distributions** 🌳🧬
|
|
37
|
+
Define distributions over your parameters and sample a different combination of parameters for each dataset sample.
|
|
38
|
+
|
|
39
|
+
- **Automatic metadata management** 🗂️
|
|
40
|
+
Phylogenie stores each parameter combination sampled during dataset generation in a `.csv` file.
|
|
41
|
+
|
|
42
|
+
- **Generalizable configurations** 🔄
|
|
43
|
+
Easily apply the same configuration across multiple dataset splits (e.g., train, validation, test).
|
|
44
|
+
|
|
45
|
+
- **Multiprocessing support** ⚙️💻
|
|
46
|
+
Simply specify the number of cores to use, and Phylogenie handles multiprocessing automatically.
|
|
47
|
+
|
|
48
|
+
- **Pre-implemented parameterizations** 🎯
|
|
49
|
+
Include canonical, fossilized birth-death, epidemiological, birth-death with exposed-infectious (BDEI), contact-tracing (CT), and more.
|
|
50
|
+
|
|
51
|
+
- **Skyline parameter support** 🪜
|
|
52
|
+
Support for piece-wise constant parameters.
|
|
53
|
+
|
|
54
|
+
- **Arithmetic operations on parameters** 🧮
|
|
55
|
+
Perform flexible arithmetic operations between parameters directly within the config file.
|
|
56
|
+
|
|
57
|
+
- **Support for common phylogenetic simulation tools** 🛠️
|
|
58
|
+
Compatible backends include ReMASTER, TreeSimulator, and AliSim.
|
|
59
|
+
|
|
60
|
+
- **Modular and extendible architecture** 🧩
|
|
61
|
+
Easily add new simulation backends as needed.
|
|
62
|
+
|
|
63
|
+
## 📦 Installation
|
|
64
|
+
Phylogenie requires [Python](https://www.python.org/) 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](https://github.com/pyenv/pyenv).
|
|
65
|
+
|
|
66
|
+
Once you have Python set up, you can install Phylogenie directly from PyPI:
|
|
67
|
+
|
|
68
|
+
```bash
|
|
69
|
+
pip install phylogenie
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
Or install from source:
|
|
73
|
+
```bash
|
|
74
|
+
git clone https://github.com/gabriele-marino/phylogenie.git
|
|
75
|
+
cd phylogenie
|
|
76
|
+
pip install .
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
## 🛠 Backend dependencies
|
|
80
|
+
|
|
81
|
+
Phylogenie works with the following simulation backends:
|
|
82
|
+
|
|
83
|
+
- **[TreeSimulator](https://github.com/evolbioinfo/treesimulator)**
|
|
84
|
+
A [Python](https://www.python.org/) package for simulating phylogenetic trees. It is automatically installed with Phylogenie, so you can use it right away.
|
|
85
|
+
|
|
86
|
+
- **[ReMASTER](https://tgvaughan.github.io/remaster/)**
|
|
87
|
+
A [BEAST2](https://www.beast2.org/) package designed for tree simulation. To use ReMASTER as a backend, you need to install it separately.
|
|
88
|
+
|
|
89
|
+
- **[AliSim](https://iqtree.github.io/doc/AliSim)**
|
|
90
|
+
A tool for simulating multiple sequence alignments (MSAs). It is distributed with [IQ-TREE](https://iqtree.github.io/) and also requires separate installation if you wish to use it as a backend.
|
|
91
|
+
|
|
92
|
+
## 🚀 Quick Start
|
|
93
|
+
|
|
94
|
+
Once you have installed Phylogenie, check out the [examples](https://github.com/gabriele-marino/phylogenie/tree/main/examples) folder.
|
|
95
|
+
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.
|
|
96
|
+
|
|
97
|
+
For quick start, pick your favorite config file and run Phylogenie with:
|
|
98
|
+
```bash
|
|
99
|
+
phylogenie examples/<config_file>.yaml
|
|
100
|
+
```
|
|
101
|
+
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.
|
|
102
|
+
|
|
103
|
+
>❗ *Tip*: Can’t choose just one config file?
|
|
104
|
+
You can run them all at once by pointing Phylogenie to the folder! Just use: `phylogenie examples`. In this mode, Phylogenie will automatically find all `.yaml` files in the folder you specified and run for each of them!
|
|
105
|
+
|
|
106
|
+
## 📖 Documentation
|
|
107
|
+
|
|
108
|
+
- The [examples](https://github.com/gabriele-marino/phylogenie/tree/main/examples) 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.
|
|
109
|
+
- A complete user guide and API reference are under development. In the meantime, feel free to [reach out](mailto:gabmarino.8601@email.com) if you have any questions about integrating Phylogenie into your workflows.
|
|
110
|
+
|
|
111
|
+
## 📄 License
|
|
112
|
+
|
|
113
|
+
This project is licensed under [MIT License](https://raw.githubusercontent.com/gabriele-marino/phylogenie/main/LICENSE.txt).
|
|
114
|
+
|
|
115
|
+
## 📫 Contact
|
|
116
|
+
|
|
117
|
+
For questions, bug reports, or feature requests, please, consider opening an [issue on GitHub](https://github.com/gabriele-marino/phylogenie/issues), or [contact me directly](mailto:gabmarino.8601@email.com).
|
|
118
|
+
|
|
119
|
+
If you need help with the configuration files, feel free to reach out — I am always very available and happy to assist!
|
|
120
|
+
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img src="https://raw.githubusercontent.com/gabriele-marino/phylogenie/main/logo.png" style="width:100%; height:auto;"/>
|
|
3
|
+
</p>
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
[](https://github.com/evolbioinfo/treesimulator)
|
|
8
|
+
[](https://tgvaughan.github.io/remaster/)
|
|
9
|
+
[](https://iqtree.github.io/doc/AliSim)
|
|
10
|
+
|
|
11
|
+
Phylogenie is a [Python](https://www.python.org/) 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!
|
|
12
|
+
|
|
13
|
+
## ✨ Features
|
|
14
|
+
|
|
15
|
+
Phylogenie comes packed with useful features, including:
|
|
16
|
+
|
|
17
|
+
- **Simulate tree and multiple sequence alignment (MSA) datasets from parameter distributions** 🌳🧬
|
|
18
|
+
Define distributions over your parameters and sample a different combination of parameters for each dataset sample.
|
|
19
|
+
|
|
20
|
+
- **Automatic metadata management** 🗂️
|
|
21
|
+
Phylogenie stores each parameter combination sampled during dataset generation in a `.csv` file.
|
|
22
|
+
|
|
23
|
+
- **Generalizable configurations** 🔄
|
|
24
|
+
Easily apply the same configuration across multiple dataset splits (e.g., train, validation, test).
|
|
25
|
+
|
|
26
|
+
- **Multiprocessing support** ⚙️💻
|
|
27
|
+
Simply specify the number of cores to use, and Phylogenie handles multiprocessing automatically.
|
|
28
|
+
|
|
29
|
+
- **Pre-implemented parameterizations** 🎯
|
|
30
|
+
Include canonical, fossilized birth-death, epidemiological, birth-death with exposed-infectious (BDEI), contact-tracing (CT), and more.
|
|
31
|
+
|
|
32
|
+
- **Skyline parameter support** 🪜
|
|
33
|
+
Support for piece-wise constant parameters.
|
|
34
|
+
|
|
35
|
+
- **Arithmetic operations on parameters** 🧮
|
|
36
|
+
Perform flexible arithmetic operations between parameters directly within the config file.
|
|
37
|
+
|
|
38
|
+
- **Support for common phylogenetic simulation tools** 🛠️
|
|
39
|
+
Compatible backends include ReMASTER, TreeSimulator, and AliSim.
|
|
40
|
+
|
|
41
|
+
- **Modular and extendible architecture** 🧩
|
|
42
|
+
Easily add new simulation backends as needed.
|
|
43
|
+
|
|
44
|
+
## 📦 Installation
|
|
45
|
+
Phylogenie requires [Python](https://www.python.org/) 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](https://github.com/pyenv/pyenv).
|
|
46
|
+
|
|
47
|
+
Once you have Python set up, you can install Phylogenie directly from PyPI:
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
pip install phylogenie
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
Or install from source:
|
|
54
|
+
```bash
|
|
55
|
+
git clone https://github.com/gabriele-marino/phylogenie.git
|
|
56
|
+
cd phylogenie
|
|
57
|
+
pip install .
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
## 🛠 Backend dependencies
|
|
61
|
+
|
|
62
|
+
Phylogenie works with the following simulation backends:
|
|
63
|
+
|
|
64
|
+
- **[TreeSimulator](https://github.com/evolbioinfo/treesimulator)**
|
|
65
|
+
A [Python](https://www.python.org/) package for simulating phylogenetic trees. It is automatically installed with Phylogenie, so you can use it right away.
|
|
66
|
+
|
|
67
|
+
- **[ReMASTER](https://tgvaughan.github.io/remaster/)**
|
|
68
|
+
A [BEAST2](https://www.beast2.org/) package designed for tree simulation. To use ReMASTER as a backend, you need to install it separately.
|
|
69
|
+
|
|
70
|
+
- **[AliSim](https://iqtree.github.io/doc/AliSim)**
|
|
71
|
+
A tool for simulating multiple sequence alignments (MSAs). It is distributed with [IQ-TREE](https://iqtree.github.io/) and also requires separate installation if you wish to use it as a backend.
|
|
72
|
+
|
|
73
|
+
## 🚀 Quick Start
|
|
74
|
+
|
|
75
|
+
Once you have installed Phylogenie, check out the [examples](https://github.com/gabriele-marino/phylogenie/tree/main/examples) folder.
|
|
76
|
+
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.
|
|
77
|
+
|
|
78
|
+
For quick start, pick your favorite config file and run Phylogenie with:
|
|
79
|
+
```bash
|
|
80
|
+
phylogenie examples/<config_file>.yaml
|
|
81
|
+
```
|
|
82
|
+
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.
|
|
83
|
+
|
|
84
|
+
>❗ *Tip*: Can’t choose just one config file?
|
|
85
|
+
You can run them all at once by pointing Phylogenie to the folder! Just use: `phylogenie examples`. In this mode, Phylogenie will automatically find all `.yaml` files in the folder you specified and run for each of them!
|
|
86
|
+
|
|
87
|
+
## 📖 Documentation
|
|
88
|
+
|
|
89
|
+
- The [examples](https://github.com/gabriele-marino/phylogenie/tree/main/examples) 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.
|
|
90
|
+
- A complete user guide and API reference are under development. In the meantime, feel free to [reach out](mailto:gabmarino.8601@email.com) if you have any questions about integrating Phylogenie into your workflows.
|
|
91
|
+
|
|
92
|
+
## 📄 License
|
|
93
|
+
|
|
94
|
+
This project is licensed under [MIT License](https://raw.githubusercontent.com/gabriele-marino/phylogenie/main/LICENSE.txt).
|
|
95
|
+
|
|
96
|
+
## 📫 Contact
|
|
97
|
+
|
|
98
|
+
For questions, bug reports, or feature requests, please, consider opening an [issue on GitHub](https://github.com/gabriele-marino/phylogenie/issues), or [contact me directly](mailto:gabmarino.8601@email.com).
|
|
99
|
+
|
|
100
|
+
If you need help with the configuration files, feel free to reach out — I am always very available and happy to assist!
|
|
@@ -151,6 +151,7 @@ def generate_trees(
|
|
|
151
151
|
output_xml_file: str | None = None,
|
|
152
152
|
n_simulations: int = 1,
|
|
153
153
|
seed: int | None = None,
|
|
154
|
+
beast_path: str = "beast",
|
|
154
155
|
) -> None:
|
|
155
156
|
if isinstance(populations, str):
|
|
156
157
|
populations = [populations]
|
|
@@ -175,7 +176,7 @@ def generate_trees(
|
|
|
175
176
|
n_simulations=n_simulations,
|
|
176
177
|
)
|
|
177
178
|
|
|
178
|
-
cmd = [
|
|
179
|
+
cmd = [beast_path]
|
|
179
180
|
if seed is not None:
|
|
180
181
|
cmd.extend(["-seed", str(seed)])
|
|
181
182
|
cmd.append(xml_file)
|
|
@@ -39,6 +39,7 @@ class ParameterizationType(str, Enum):
|
|
|
39
39
|
|
|
40
40
|
class ReMASTERGenerator(TreesGenerator):
|
|
41
41
|
backend: Literal[BackendType.REMASTER] = BackendType.REMASTER
|
|
42
|
+
beast_path: str = "beast"
|
|
42
43
|
populations: str | list[str] = DEFAULT_POPULATION
|
|
43
44
|
init_population: str = DEFAULT_POPULATION
|
|
44
45
|
sample_population: str = SAMPLE_POPULATION
|
|
@@ -63,6 +64,7 @@ class ReMASTERGenerator(TreesGenerator):
|
|
|
63
64
|
for k, v in self.trajectory_attrs.items()
|
|
64
65
|
},
|
|
65
66
|
seed=int(rng.integers(0, 2**31 - 1)),
|
|
67
|
+
beast_path=self.beast_path,
|
|
66
68
|
)
|
|
67
69
|
|
|
68
70
|
def _generate_one(self, filename: str, rng: Generator, data: Data) -> None:
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "phylogenie"
|
|
3
|
-
version = "1.0.
|
|
4
|
-
description = "Generate phylogenetic datasets with minimal
|
|
3
|
+
version = "1.0.1"
|
|
4
|
+
description = "Generate phylogenetic datasets with minimal setup effort"
|
|
5
5
|
authors = ["gabriele-marino <gabmarino.8601@gmail.com>"]
|
|
6
6
|
readme = "README.md"
|
|
7
7
|
|
phylogenie-1.0.0/PKG-INFO
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.1
|
|
2
|
-
Name: phylogenie
|
|
3
|
-
Version: 1.0.0
|
|
4
|
-
Summary: Generate phylogenetic datasets with minimal set up overhead
|
|
5
|
-
Author: gabriele-marino
|
|
6
|
-
Author-email: gabmarino.8601@gmail.com
|
|
7
|
-
Requires-Python: >=3.10,<4.0
|
|
8
|
-
Classifier: Programming Language :: Python :: 3
|
|
9
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
10
|
-
Classifier: Programming Language :: Python :: 3.11
|
|
11
|
-
Classifier: Programming Language :: Python :: 3.12
|
|
12
|
-
Requires-Dist: joblib (>=1.4.2,<2.0.0)
|
|
13
|
-
Requires-Dist: pandas (>=2.2.2,<3.0.0)
|
|
14
|
-
Requires-Dist: pydantic (>=2.11.5,<3.0.0)
|
|
15
|
-
Requires-Dist: pyyaml (>=6.0.2,<7.0.0)
|
|
16
|
-
Requires-Dist: tqdm (>=4.66.4,<5.0.0)
|
|
17
|
-
Requires-Dist: treesimulator (>=0.2.15,<0.3.0)
|
|
18
|
-
Description-Content-Type: text/markdown
|
|
19
|
-
|
|
20
|
-
<p align="center">
|
|
21
|
-
<img src="logo.png" alt="Project Logo" style="width:100%; height:auto;" />
|
|
22
|
-
</p>
|
|
23
|
-
|
|
24
|
-
---
|
|
25
|
-
|
|
26
|
-
[](https://github.com/evolbioinfo/treesimulator)
|
|
27
|
-
[](https://tgvaughan.github.io/remaster/)
|
|
28
|
-
[](https://iqtree.github.io/doc/AliSim)
|
|
29
|
-
|
|
30
|
-
**Phylogenie** is a Python package designed to easily simulate phylogenetic datasets—such as trees and multiple sequence alignments—with minimal setup effort.
|
|
31
|
-
|
phylogenie-1.0.0/README.md
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
<p align="center">
|
|
2
|
-
<img src="logo.png" alt="Project Logo" style="width:100%; height:auto;" />
|
|
3
|
-
</p>
|
|
4
|
-
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
[](https://github.com/evolbioinfo/treesimulator)
|
|
8
|
-
[](https://tgvaughan.github.io/remaster/)
|
|
9
|
-
[](https://iqtree.github.io/doc/AliSim)
|
|
10
|
-
|
|
11
|
-
**Phylogenie** is a Python package designed to easily simulate phylogenetic datasets—such as trees and multiple sequence alignments—with minimal setup effort.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -19,12 +19,12 @@ class DataType(str, Enum):
|
|
|
19
19
|
|
|
20
20
|
class DatasetGenerator(ABC, StrictBaseModel):
|
|
21
21
|
output_dir: str = "phylogenie-out"
|
|
22
|
+
data_dir: str = "data"
|
|
23
|
+
metadata_filename: str = "metadata.csv"
|
|
22
24
|
n_samples: int | dict[str, int] = 1
|
|
23
|
-
context: ContextConfig | None = None
|
|
24
25
|
n_jobs: int = -1
|
|
25
26
|
seed: int | None = None
|
|
26
|
-
|
|
27
|
-
metadata_filename: str = "metadata.csv"
|
|
27
|
+
context: ContextConfig | None = None
|
|
28
28
|
|
|
29
29
|
@abstractmethod
|
|
30
30
|
def _generate_one(self, filename: str, rng: Generator, data: Data) -> None: ...
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -35,12 +35,12 @@ class TreeSimulatorGenerator(TreesGenerator):
|
|
|
35
35
|
min_tips: cfg.IntConfig
|
|
36
36
|
max_tips: cfg.IntConfig
|
|
37
37
|
T: cfg.ScalarConfig = np.inf
|
|
38
|
+
root_state: str | None = None
|
|
38
39
|
state_frequencies: list[float] | None = None
|
|
39
40
|
notification_probability: cfg.SkylineParameterLikeConfig = 0
|
|
40
41
|
notification_sampling_rate: cfg.SkylineParameterLikeConfig = np.inf
|
|
41
42
|
allow_irremovable_states: bool = False
|
|
42
43
|
max_notified_contacts: cfg.IntConfig = 1
|
|
43
|
-
root_state: str | None = None
|
|
44
44
|
|
|
45
45
|
def _generate_one_from_params(
|
|
46
46
|
self, filename: str, rng: Generator, data: Data, params: TreeParams
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|