phylogenie 2.0.12__py3-none-any.whl → 2.0.14__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 +6 -0
- phylogenie/generators/__init__.py +8 -0
- phylogenie/treesimulator/gillespie.py +4 -2
- {phylogenie-2.0.12.dist-info → phylogenie-2.0.14.dist-info}/METADATA +1 -1
- {phylogenie-2.0.12.dist-info → phylogenie-2.0.14.dist-info}/RECORD +8 -8
- {phylogenie-2.0.12.dist-info → phylogenie-2.0.14.dist-info}/LICENSE.txt +0 -0
- {phylogenie-2.0.12.dist-info → phylogenie-2.0.14.dist-info}/WHEEL +0 -0
- {phylogenie-2.0.12.dist-info → phylogenie-2.0.14.dist-info}/entry_points.txt +0 -0
phylogenie/__init__.py
CHANGED
|
@@ -8,6 +8,9 @@ from phylogenie.generators import (
|
|
|
8
8
|
DatasetGeneratorConfig,
|
|
9
9
|
EpidemiologicalTreeDatasetGenerator,
|
|
10
10
|
FBDTreeDatasetGenerator,
|
|
11
|
+
SkylineMatrixModel,
|
|
12
|
+
SkylineParameterModel,
|
|
13
|
+
SkylineVectorModel,
|
|
11
14
|
TreeDatasetGeneratorConfig,
|
|
12
15
|
)
|
|
13
16
|
from phylogenie.io import load_fasta, load_newick
|
|
@@ -48,13 +51,16 @@ __all__ = [
|
|
|
48
51
|
"FBDTreeDatasetGenerator",
|
|
49
52
|
"SkylineMatrix",
|
|
50
53
|
"SkylineMatrixCoercible",
|
|
54
|
+
"SkylineMatrixModel",
|
|
51
55
|
"skyline_matrix",
|
|
52
56
|
"SkylineParameter",
|
|
53
57
|
"SkylineParameterLike",
|
|
58
|
+
"SkylineParameterModel",
|
|
54
59
|
"skyline_parameter",
|
|
55
60
|
"SkylineVector",
|
|
56
61
|
"SkylineVectorCoercible",
|
|
57
62
|
"SkylineVectorLike",
|
|
63
|
+
"SkylineVectorModel",
|
|
58
64
|
"skyline_vector",
|
|
59
65
|
"Tree",
|
|
60
66
|
"TreeDatasetGeneratorConfig",
|
|
@@ -3,6 +3,11 @@ from typing import Annotated
|
|
|
3
3
|
from pydantic import Field
|
|
4
4
|
|
|
5
5
|
from phylogenie.generators.alisim import AliSimDatasetGenerator
|
|
6
|
+
from phylogenie.generators.configs import (
|
|
7
|
+
SkylineMatrixModel,
|
|
8
|
+
SkylineParameterModel,
|
|
9
|
+
SkylineVectorModel,
|
|
10
|
+
)
|
|
6
11
|
from phylogenie.generators.dataset import DatasetGenerator
|
|
7
12
|
from phylogenie.generators.trees import (
|
|
8
13
|
BDEITreeDatasetGenerator,
|
|
@@ -29,4 +34,7 @@ __all__ = [
|
|
|
29
34
|
"BDTreeDatasetGenerator",
|
|
30
35
|
"BDEITreeDatasetGenerator",
|
|
31
36
|
"BDSSTreeDatasetGenerator",
|
|
37
|
+
"SkylineMatrixModel",
|
|
38
|
+
"SkylineParameterModel",
|
|
39
|
+
"SkylineVectorModel",
|
|
32
40
|
]
|
|
@@ -60,9 +60,11 @@ def simulate_tree(
|
|
|
60
60
|
if not any(rates):
|
|
61
61
|
break
|
|
62
62
|
|
|
63
|
-
|
|
64
|
-
if current_time >= max_time:
|
|
63
|
+
time_step = rng.exponential(1 / sum(rates))
|
|
64
|
+
if current_time + time_step >= max_time:
|
|
65
|
+
current_time = max_time
|
|
65
66
|
break
|
|
67
|
+
current_time += time_step
|
|
66
68
|
|
|
67
69
|
if current_time >= next_change_time:
|
|
68
70
|
current_time = next_change_time
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
phylogenie/__init__.py,sha256=
|
|
2
|
-
phylogenie/generators/__init__.py,sha256=
|
|
1
|
+
phylogenie/__init__.py,sha256=4BytT42_M1K6T3W9eqHQCrKc6g0Lh5LTQxP8dGIJTsk,1915
|
|
2
|
+
phylogenie/generators/__init__.py,sha256=VCpuvmOoY_N6p1h_Q0peYgGIIUIFLsvZT3T7vbHG6w0,1090
|
|
3
3
|
phylogenie/generators/alisim.py,sha256=dDqlSwLDbRE2u5SZlsq1mArobTBtuk0aeXY3m1N-bWA,2374
|
|
4
4
|
phylogenie/generators/configs.py,sha256=4jSBUZiFo2GacXWed5dy7lUEkaOWZkZG-KY9vHfhqGU,993
|
|
5
5
|
phylogenie/generators/dataset.py,sha256=hbkN5McM4BKY7D0hLNaxdoAGsLHac6O-D4sgnZ0wFX4,2618
|
|
@@ -17,12 +17,12 @@ phylogenie/skyline/vector.py,sha256=bJP7_FNX_Klt6wXqsyfj0KX3VNj6-dIhzCKSJuQcOV0,
|
|
|
17
17
|
phylogenie/tree.py,sha256=dk8Sj1tqyGOunVO2crtIqb0LH-ws-PXqA8SuNcYfVHI,1738
|
|
18
18
|
phylogenie/treesimulator/__init__.py,sha256=INPU9LrPdUmt3dYGzWDRoRKrPR9xENcHu44pJVUbyNA,525
|
|
19
19
|
phylogenie/treesimulator/events.py,sha256=X3_0U9qqMpYgh6-7TwQEnlUipANkHz6QTCXlm-qXFQk,9524
|
|
20
|
-
phylogenie/treesimulator/gillespie.py,sha256=
|
|
20
|
+
phylogenie/treesimulator/gillespie.py,sha256=NHiBLVlpKdcTPohMr6ehywbPeB8gnn6erEv2bkgvf4c,3268
|
|
21
21
|
phylogenie/treesimulator/model.py,sha256=XpzAicmg2O6K0Trk5YolH-B_HJZxoSauF2wZOMqp-Iw,5559
|
|
22
22
|
phylogenie/typeguards.py,sha256=JtqmbEWJZBRHbWgCvcl6nrWm3VcBfzRbklbTBYHItn0,1325
|
|
23
23
|
phylogenie/typings.py,sha256=O1X6lGKTjJ2YJz3ApQ-rYb_tEJNUIcHdUIeYlSM4s5o,500
|
|
24
|
-
phylogenie-2.0.
|
|
25
|
-
phylogenie-2.0.
|
|
26
|
-
phylogenie-2.0.
|
|
27
|
-
phylogenie-2.0.
|
|
28
|
-
phylogenie-2.0.
|
|
24
|
+
phylogenie-2.0.14.dist-info/LICENSE.txt,sha256=NUrDqElK-eD3I0WqC004CJsy6cs0JgsAoebDv_42-pw,1071
|
|
25
|
+
phylogenie-2.0.14.dist-info/METADATA,sha256=NXOQmoUHSTA2AjrXjt4VKSaM2KO6H2rBF7nrRuGK2f4,5473
|
|
26
|
+
phylogenie-2.0.14.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
27
|
+
phylogenie-2.0.14.dist-info/entry_points.txt,sha256=Rt6_usN0FkBX1ZfiqCirjMN9FKOgFLG8rydcQ8kugeE,51
|
|
28
|
+
phylogenie-2.0.14.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|