phylogenie 3.3.0__tar.gz → 3.3.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-3.3.0/src/phylogenie.egg-info → phylogenie-3.3.1}/PKG-INFO +1 -1
- {phylogenie-3.3.0 → phylogenie-3.3.1}/pyproject.toml +1 -1
- {phylogenie-3.3.0 → phylogenie-3.3.1}/src/phylogenie/__init__.py +2 -2
- {phylogenie-3.3.0 → phylogenie-3.3.1}/src/phylogenie/generators/_configs.py +2 -2
- {phylogenie-3.3.0 → phylogenie-3.3.1}/src/phylogenie/generators/_factories.py +3 -3
- {phylogenie-3.3.0 → phylogenie-3.3.1}/src/phylogenie/treesimulator/__init__.py +2 -2
- {phylogenie-3.3.0 → phylogenie-3.3.1}/src/phylogenie/treesimulator/events/__init__.py +2 -2
- {phylogenie-3.3.0 → phylogenie-3.3.1}/src/phylogenie/treesimulator/events/unbounded_population.py +2 -2
- {phylogenie-3.3.0 → phylogenie-3.3.1/src/phylogenie.egg-info}/PKG-INFO +1 -1
- {phylogenie-3.3.0 → phylogenie-3.3.1}/LICENSE.txt +0 -0
- {phylogenie-3.3.0 → phylogenie-3.3.1}/README.md +0 -0
- {phylogenie-3.3.0 → phylogenie-3.3.1}/setup.cfg +0 -0
- {phylogenie-3.3.0 → phylogenie-3.3.1}/src/phylogenie/_mixins.py +0 -0
- {phylogenie-3.3.0 → phylogenie-3.3.1}/src/phylogenie/_typeguards.py +0 -0
- {phylogenie-3.3.0 → phylogenie-3.3.1}/src/phylogenie/_typings.py +0 -0
- {phylogenie-3.3.0 → phylogenie-3.3.1}/src/phylogenie/draw.py +0 -0
- {phylogenie-3.3.0 → phylogenie-3.3.1}/src/phylogenie/generators/__init__.py +0 -0
- {phylogenie-3.3.0 → phylogenie-3.3.1}/src/phylogenie/generators/_typeguards.py +0 -0
- {phylogenie-3.3.0 → phylogenie-3.3.1}/src/phylogenie/generators/alisim.py +0 -0
- {phylogenie-3.3.0 → phylogenie-3.3.1}/src/phylogenie/generators/dataset.py +0 -0
- {phylogenie-3.3.0 → phylogenie-3.3.1}/src/phylogenie/generators/trees.py +0 -0
- {phylogenie-3.3.0 → phylogenie-3.3.1}/src/phylogenie/io/__init__.py +0 -0
- {phylogenie-3.3.0 → phylogenie-3.3.1}/src/phylogenie/io/fasta.py +0 -0
- {phylogenie-3.3.0 → phylogenie-3.3.1}/src/phylogenie/io/newick.py +0 -0
- {phylogenie-3.3.0 → phylogenie-3.3.1}/src/phylogenie/io/nexus.py +0 -0
- {phylogenie-3.3.0 → phylogenie-3.3.1}/src/phylogenie/main.py +0 -0
- {phylogenie-3.3.0 → phylogenie-3.3.1}/src/phylogenie/msa.py +0 -0
- {phylogenie-3.3.0 → phylogenie-3.3.1}/src/phylogenie/py.typed +0 -0
- {phylogenie-3.3.0 → phylogenie-3.3.1}/src/phylogenie/skyline/__init__.py +0 -0
- {phylogenie-3.3.0 → phylogenie-3.3.1}/src/phylogenie/skyline/matrix.py +0 -0
- {phylogenie-3.3.0 → phylogenie-3.3.1}/src/phylogenie/skyline/parameter.py +0 -0
- {phylogenie-3.3.0 → phylogenie-3.3.1}/src/phylogenie/skyline/vector.py +0 -0
- {phylogenie-3.3.0 → phylogenie-3.3.1}/src/phylogenie/tree_node.py +0 -0
- {phylogenie-3.3.0 → phylogenie-3.3.1}/src/phylogenie/treesimulator/events/base.py +0 -0
- {phylogenie-3.3.0 → phylogenie-3.3.1}/src/phylogenie/treesimulator/gillespie.py +0 -0
- {phylogenie-3.3.0 → phylogenie-3.3.1}/src/phylogenie/treesimulator/models/__init__.py +0 -0
- {phylogenie-3.3.0 → phylogenie-3.3.1}/src/phylogenie/treesimulator/models/base.py +0 -0
- {phylogenie-3.3.0 → phylogenie-3.3.1}/src/phylogenie/treesimulator/models/unbounded_population.py +0 -0
- {phylogenie-3.3.0 → phylogenie-3.3.1}/src/phylogenie.egg-info/SOURCES.txt +0 -0
- {phylogenie-3.3.0 → phylogenie-3.3.1}/src/phylogenie.egg-info/dependency_links.txt +0 -0
- {phylogenie-3.3.0 → phylogenie-3.3.1}/src/phylogenie.egg-info/entry_points.txt +0 -0
- {phylogenie-3.3.0 → phylogenie-3.3.1}/src/phylogenie.egg-info/requires.txt +0 -0
- {phylogenie-3.3.0 → phylogenie-3.3.1}/src/phylogenie.egg-info/top_level.txt +0 -0
|
@@ -41,8 +41,8 @@ from phylogenie.treesimulator import (
|
|
|
41
41
|
Migration,
|
|
42
42
|
Model,
|
|
43
43
|
Sampling,
|
|
44
|
-
SamplingAtTime,
|
|
45
44
|
TimedEvent,
|
|
45
|
+
TimedSampling,
|
|
46
46
|
UnboundedPopulationEvent,
|
|
47
47
|
UnboundedPopulationModel,
|
|
48
48
|
UnboundedPopulationTimedEvent,
|
|
@@ -98,8 +98,8 @@ __all__ = [
|
|
|
98
98
|
"Migration",
|
|
99
99
|
"Model",
|
|
100
100
|
"Sampling",
|
|
101
|
-
"SamplingAtTime",
|
|
102
101
|
"TimedEvent",
|
|
102
|
+
"TimedSampling",
|
|
103
103
|
"UnboundedPopulationEvent",
|
|
104
104
|
"UnboundedPopulationModel",
|
|
105
105
|
"UnboundedPopulationTimedEvent",
|
|
@@ -59,7 +59,7 @@ class TimedEventModel(StrictBaseModel):
|
|
|
59
59
|
times: ManyScalars
|
|
60
60
|
|
|
61
61
|
|
|
62
|
-
class
|
|
62
|
+
class TimedSamplingModel(TimedEventModel):
|
|
63
63
|
type: Literal[TimedEventType.SAMPLING]
|
|
64
64
|
state: str
|
|
65
65
|
proportion: Scalar
|
|
@@ -67,6 +67,6 @@ class SamplingAtTimeModel(TimedEventModel):
|
|
|
67
67
|
|
|
68
68
|
|
|
69
69
|
UnboundedPopulationTimedEventConfig = Annotated[
|
|
70
|
-
|
|
70
|
+
TimedSamplingModel,
|
|
71
71
|
Field(discriminator="type"),
|
|
72
72
|
]
|
|
@@ -16,7 +16,7 @@ from phylogenie.skyline import (
|
|
|
16
16
|
SkylineVector,
|
|
17
17
|
SkylineVectorCoercible,
|
|
18
18
|
)
|
|
19
|
-
from phylogenie.treesimulator import
|
|
19
|
+
from phylogenie.treesimulator import TimedSampling, UnboundedPopulationTimedEvent
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
def eval_expression(
|
|
@@ -233,8 +233,8 @@ def data(context: dict[str, cfg.Distribution] | None, rng: Generator) -> dict[st
|
|
|
233
233
|
def unbounded_population_timed_event(
|
|
234
234
|
config: cfg.TimedEventModel, data: dict[str, Any]
|
|
235
235
|
) -> UnboundedPopulationTimedEvent:
|
|
236
|
-
if isinstance(config, cfg.
|
|
237
|
-
return
|
|
236
|
+
if isinstance(config, cfg.TimedSamplingModel):
|
|
237
|
+
return TimedSampling(
|
|
238
238
|
times=many_scalars(config.times, data),
|
|
239
239
|
state=string(config.state, data),
|
|
240
240
|
proportion=scalar(config.proportion, data),
|
|
@@ -7,8 +7,8 @@ from phylogenie.treesimulator.events import (
|
|
|
7
7
|
Event,
|
|
8
8
|
Migration,
|
|
9
9
|
Sampling,
|
|
10
|
-
SamplingAtTime,
|
|
11
10
|
TimedEvent,
|
|
11
|
+
TimedSampling,
|
|
12
12
|
UnboundedPopulationEvent,
|
|
13
13
|
UnboundedPopulationTimedEvent,
|
|
14
14
|
get_BD_events,
|
|
@@ -30,8 +30,8 @@ __all__ = [
|
|
|
30
30
|
"Event",
|
|
31
31
|
"Migration",
|
|
32
32
|
"Sampling",
|
|
33
|
-
"SamplingAtTime",
|
|
34
33
|
"TimedEvent",
|
|
34
|
+
"TimedSampling",
|
|
35
35
|
"UnboundedPopulationEvent",
|
|
36
36
|
"UnboundedPopulationTimedEvent",
|
|
37
37
|
"get_BD_events",
|
|
@@ -7,7 +7,7 @@ from phylogenie.treesimulator.events.unbounded_population import (
|
|
|
7
7
|
Death,
|
|
8
8
|
Migration,
|
|
9
9
|
Sampling,
|
|
10
|
-
|
|
10
|
+
TimedSampling,
|
|
11
11
|
UnboundedPopulationEvent,
|
|
12
12
|
UnboundedPopulationTimedEvent,
|
|
13
13
|
get_BD_events,
|
|
@@ -28,7 +28,7 @@ __all__ = [
|
|
|
28
28
|
"Death",
|
|
29
29
|
"Migration",
|
|
30
30
|
"Sampling",
|
|
31
|
-
"
|
|
31
|
+
"TimedSampling",
|
|
32
32
|
"UnboundedPopulationEvent",
|
|
33
33
|
"UnboundedPopulationTimedEvent",
|
|
34
34
|
"get_BD_events",
|
{phylogenie-3.3.0 → phylogenie-3.3.1}/src/phylogenie/treesimulator/events/unbounded_population.py
RENAMED
|
@@ -68,7 +68,7 @@ class Sampling(UnboundedPopulationEvent):
|
|
|
68
68
|
return f"Sampling(state={self.state}, rate={self.rate}, removal={self.removal})"
|
|
69
69
|
|
|
70
70
|
|
|
71
|
-
class
|
|
71
|
+
class TimedSampling(UnboundedPopulationTimedEvent):
|
|
72
72
|
def __init__(
|
|
73
73
|
self, times: Sequence[float], state: str, proportion: float, removal: bool
|
|
74
74
|
):
|
|
@@ -83,7 +83,7 @@ class SamplingAtTime(UnboundedPopulationTimedEvent):
|
|
|
83
83
|
model.sample(individual, time, self.removal)
|
|
84
84
|
|
|
85
85
|
def __repr__(self) -> str:
|
|
86
|
-
return f"
|
|
86
|
+
return f"TimedSampling(times={self.times}, state={self.state}, proportion={self.proportion}, removal={self.removal})"
|
|
87
87
|
|
|
88
88
|
|
|
89
89
|
def get_canonical_events(
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{phylogenie-3.3.0 → phylogenie-3.3.1}/src/phylogenie/treesimulator/models/unbounded_population.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|