phylogenie 3.1.10__py3-none-any.whl → 3.1.11__py3-none-any.whl

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/__init__.py CHANGED
@@ -1,11 +1,3 @@
1
- from phylogenie.draw import (
2
- draw_colored_dated_tree_categorical,
3
- draw_colored_dated_tree_continuous,
4
- draw_colored_tree_categorical,
5
- draw_colored_tree_continuous,
6
- draw_dated_tree,
7
- draw_tree,
8
- )
9
1
  from phylogenie.generators import (
10
2
  AliSimDatasetGenerator,
11
3
  BDEITreeDatasetGenerator,
@@ -71,12 +63,6 @@ from phylogenie.treesimulator import (
71
63
  )
72
64
 
73
65
  __all__ = [
74
- "draw_colored_dated_tree_categorical",
75
- "draw_colored_dated_tree_continuous",
76
- "draw_colored_tree_categorical",
77
- "draw_colored_tree_continuous",
78
- "draw_dated_tree",
79
- "draw_tree",
80
66
  "AliSimDatasetGenerator",
81
67
  "BDEITreeDatasetGenerator",
82
68
  "BDSSTreeDatasetGenerator",
phylogenie/draw.py CHANGED
@@ -1,5 +1,5 @@
1
+ import datetime
1
2
  from dataclasses import dataclass
2
- from datetime import datetime
3
3
  from typing import Any, Literal, overload
4
4
 
5
5
  import matplotlib.colors as mcolors
@@ -21,7 +21,7 @@ from phylogenie.treesimulator import (
21
21
  @dataclass
22
22
  class CalibrationNode:
23
23
  node: Tree
24
- date: datetime
24
+ date: datetime.date
25
25
 
26
26
 
27
27
  Color = str | tuple[float, float, float] | tuple[float, float, float, float]
@@ -115,7 +115,7 @@ def draw_tree(
115
115
 
116
116
  def _depth_to_date(
117
117
  depth: float, calibration_nodes: tuple[CalibrationNode, CalibrationNode]
118
- ) -> datetime:
118
+ ) -> datetime.date:
119
119
  """
120
120
  Convert a depth value to a date using linear interpolation between two calibration nodes.
121
121
 
@@ -128,7 +128,7 @@ def _depth_to_date(
128
128
 
129
129
  Returns
130
130
  -------
131
- datetime
131
+ datetime.date
132
132
  The interpolated date corresponding to the given depth.
133
133
  """
134
134
  node1, node2 = calibration_nodes
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: phylogenie
3
- Version: 3.1.10
3
+ Version: 3.1.11
4
4
  Summary: Generate phylogenetic datasets with minimal setup effort
5
5
  Requires-Python: >=3.10
6
6
  Description-Content-Type: text/markdown
@@ -23,7 +23,6 @@ Dynamic: license-file
23
23
  [![PyPI version](https://img.shields.io/pypi/v/phylogenie)](https://pypi.org/project/phylogenie/)
24
24
  ![Downloads](https://img.shields.io/pypi/dm/phylogenie)
25
25
 
26
-
27
26
  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!
28
27
 
29
28
  ## ✨ Features
@@ -73,21 +72,21 @@ Phylogenie relies on [AliSim](https://iqtree.github.io/doc/AliSim) for simulatin
73
72
 
74
73
  ## 🚀 Quick Start
75
74
 
76
- Once you have installed Phylogenie, check out the [examples](https://github.com/gabriele-marino/phylogenie/tree/main/examples) folder.
75
+ Once you have installed Phylogenie, check out the [tutorials](https://github.com/gabriele-marino/phylogenie/tree/main/tutorials) folder.
77
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.
78
77
 
79
78
  For quick start, pick your favorite config file and run Phylogenie with:
80
79
  ```bash
81
- phylogenie examples/config_file.yaml
80
+ phylogenie tutorials/config_file.yaml
82
81
  ```
83
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.
84
83
 
85
84
  >❗ *Tip*: Can’t choose just one config file?
86
- 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!
85
+ 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!
87
86
 
88
87
  ## 📖 Documentation
89
88
 
90
- - 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.
89
+ - The [tutorials](https://github.com/gabriele-marino/phylogenie/tree/main/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.
91
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.
92
91
 
93
92
  ## 📄 License
@@ -1,5 +1,5 @@
1
- phylogenie/__init__.py,sha256=redo-SdvWwQPlyqOfdSW0TkkZf-aP98kLRCUIg4pB8c,3304
2
- phylogenie/draw.py,sha256=ZZvOQrmW_X9wUiOl5h2nvNBVX7BFH014EJ7evEI2orA,26840
1
+ phylogenie/__init__.py,sha256=RyH_mcEXcKtELTkl9HRzWcl2ANWN-G4K0BLigqR3_B4,2888
2
+ phylogenie/draw.py,sha256=-hyycRN4RyG0nzZrE4CC4bmg0PgxJOeK67rwlmFZiuc,26841
3
3
  phylogenie/main.py,sha256=ry3B3HiwibZG3_qB58T5UhWy5dp6neYUtSqzL9LrSkA,1698
4
4
  phylogenie/mixins.py,sha256=wMwqP6zkqME9eMyzx5FS6-p9X8yW09jIC8jge8pHlkk,907
5
5
  phylogenie/msa.py,sha256=RGXxmo1WX9wi5NpEQTxMuH4zk8vM0f8A7Knm0YUJ9AI,2111
@@ -33,9 +33,9 @@ phylogenie/treesimulator/events/mutations.py,sha256=8Nqa2fg7fwaVNe5XSkGDSwp9pIKQ
33
33
  phylogenie/treesimulator/io/__init__.py,sha256=rfP-zp8SP8baq5_4dPAr10WH0W6KfoMCxdTZDCSXtzE,185
34
34
  phylogenie/treesimulator/io/newick.py,sha256=8Pr_jixByPOaVch18w-rFt62HYy0U97YMu0H-QSwIy0,3449
35
35
  phylogenie/treesimulator/io/nexus.py,sha256=zqT9dzj413z_s0hqp3Cdq5NMO6lv-zuuaJlaqzaqaB8,1847
36
- phylogenie-3.1.10.dist-info/licenses/LICENSE.txt,sha256=NUrDqElK-eD3I0WqC004CJsy6cs0JgsAoebDv_42-pw,1071
37
- phylogenie-3.1.10.dist-info/METADATA,sha256=sdHbD8Gx14dS0TkKkN9dpmZkTKgt0ib__qtTX2noIo0,5195
38
- phylogenie-3.1.10.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
39
- phylogenie-3.1.10.dist-info/entry_points.txt,sha256=BBH8LoReHnNFnvq4sROEsVFegfkKJ6c_oHZ7bgK7Jl4,52
40
- phylogenie-3.1.10.dist-info/top_level.txt,sha256=1YGZJhKA9tN9qI0Hcj6Cn_sOoDpba0HQlNcgQTjMD-8,11
41
- phylogenie-3.1.10.dist-info/RECORD,,
36
+ phylogenie-3.1.11.dist-info/licenses/LICENSE.txt,sha256=NUrDqElK-eD3I0WqC004CJsy6cs0JgsAoebDv_42-pw,1071
37
+ phylogenie-3.1.11.dist-info/METADATA,sha256=91J5lodQcF09WeD0Oq8ljaIVEWQzoYeXvb2VDbNtQ7U,5200
38
+ phylogenie-3.1.11.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
39
+ phylogenie-3.1.11.dist-info/entry_points.txt,sha256=BBH8LoReHnNFnvq4sROEsVFegfkKJ6c_oHZ7bgK7Jl4,52
40
+ phylogenie-3.1.11.dist-info/top_level.txt,sha256=1YGZJhKA9tN9qI0Hcj6Cn_sOoDpba0HQlNcgQTjMD-8,11
41
+ phylogenie-3.1.11.dist-info/RECORD,,