phylogenie 2.1.4__py3-none-any.whl → 3.1.7__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 +60 -14
- phylogenie/draw.py +690 -0
- phylogenie/generators/alisim.py +12 -12
- phylogenie/generators/configs.py +26 -4
- phylogenie/generators/dataset.py +3 -3
- phylogenie/generators/factories.py +38 -12
- phylogenie/generators/trees.py +48 -47
- phylogenie/io/__init__.py +3 -0
- phylogenie/io/fasta.py +34 -0
- phylogenie/main.py +27 -10
- phylogenie/mixins.py +33 -0
- phylogenie/skyline/matrix.py +11 -7
- phylogenie/skyline/parameter.py +12 -4
- phylogenie/skyline/vector.py +12 -6
- phylogenie/treesimulator/__init__.py +36 -3
- phylogenie/treesimulator/events/__init__.py +5 -5
- phylogenie/treesimulator/events/base.py +39 -0
- phylogenie/treesimulator/events/contact_tracing.py +38 -23
- phylogenie/treesimulator/events/core.py +21 -12
- phylogenie/treesimulator/events/mutations.py +46 -46
- phylogenie/treesimulator/features.py +49 -0
- phylogenie/treesimulator/gillespie.py +59 -55
- phylogenie/treesimulator/io/__init__.py +4 -0
- phylogenie/treesimulator/io/newick.py +104 -0
- phylogenie/treesimulator/io/nexus.py +50 -0
- phylogenie/treesimulator/model.py +25 -49
- phylogenie/treesimulator/tree.py +196 -0
- phylogenie/treesimulator/utils.py +108 -0
- phylogenie/typings.py +3 -3
- {phylogenie-2.1.4.dist-info → phylogenie-3.1.7.dist-info}/METADATA +13 -15
- phylogenie-3.1.7.dist-info/RECORD +41 -0
- {phylogenie-2.1.4.dist-info → phylogenie-3.1.7.dist-info}/WHEEL +2 -1
- phylogenie-3.1.7.dist-info/entry_points.txt +2 -0
- phylogenie-3.1.7.dist-info/top_level.txt +1 -0
- phylogenie/io.py +0 -107
- phylogenie/tree.py +0 -92
- phylogenie/utils.py +0 -17
- phylogenie-2.1.4.dist-info/RECORD +0 -32
- phylogenie-2.1.4.dist-info/entry_points.txt +0 -3
- {phylogenie-2.1.4.dist-info → phylogenie-3.1.7.dist-info/licenses}/LICENSE.txt +0 -0
phylogenie/__init__.py
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
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
|
+
)
|
|
1
9
|
from phylogenie.generators import (
|
|
2
10
|
AliSimDatasetGenerator,
|
|
3
11
|
BDEITreeDatasetGenerator,
|
|
@@ -10,8 +18,8 @@ from phylogenie.generators import (
|
|
|
10
18
|
FBDTreeDatasetGenerator,
|
|
11
19
|
TreeDatasetGeneratorConfig,
|
|
12
20
|
)
|
|
13
|
-
from phylogenie.io import
|
|
14
|
-
from phylogenie.msa import MSA
|
|
21
|
+
from phylogenie.io import dump_fasta, load_fasta
|
|
22
|
+
from phylogenie.msa import MSA, Sequence
|
|
15
23
|
from phylogenie.skyline import (
|
|
16
24
|
SkylineMatrix,
|
|
17
25
|
SkylineMatrixCoercible,
|
|
@@ -24,29 +32,51 @@ from phylogenie.skyline import (
|
|
|
24
32
|
skyline_parameter,
|
|
25
33
|
skyline_vector,
|
|
26
34
|
)
|
|
27
|
-
from phylogenie.tree import Tree
|
|
28
35
|
from phylogenie.treesimulator import (
|
|
29
36
|
Birth,
|
|
30
37
|
BirthWithContactTracing,
|
|
31
38
|
Death,
|
|
32
39
|
Event,
|
|
40
|
+
EventType,
|
|
41
|
+
Feature,
|
|
33
42
|
Migration,
|
|
34
43
|
Mutation,
|
|
35
|
-
MutationTargetType,
|
|
36
44
|
Sampling,
|
|
37
45
|
SamplingWithContactTracing,
|
|
46
|
+
Tree,
|
|
47
|
+
compute_mean_leaf_pairwise_distance,
|
|
48
|
+
compute_sackin_index,
|
|
49
|
+
dump_newick,
|
|
38
50
|
generate_trees,
|
|
39
51
|
get_BD_events,
|
|
40
52
|
get_BDEI_events,
|
|
41
53
|
get_BDSS_events,
|
|
42
54
|
get_canonical_events,
|
|
43
55
|
get_contact_tracing_events,
|
|
56
|
+
get_distance,
|
|
44
57
|
get_epidemiological_events,
|
|
45
58
|
get_FBD_events,
|
|
59
|
+
get_mrca,
|
|
60
|
+
get_mutation_id,
|
|
61
|
+
get_node_depth_levels,
|
|
62
|
+
get_node_depths,
|
|
63
|
+
get_node_height_levels,
|
|
64
|
+
get_node_heights,
|
|
65
|
+
get_node_leaf_counts,
|
|
66
|
+
get_node_state,
|
|
67
|
+
load_newick,
|
|
68
|
+
load_nexus,
|
|
69
|
+
set_features,
|
|
46
70
|
simulate_tree,
|
|
47
71
|
)
|
|
48
72
|
|
|
49
73
|
__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",
|
|
50
80
|
"AliSimDatasetGenerator",
|
|
51
81
|
"BDEITreeDatasetGenerator",
|
|
52
82
|
"BDSSTreeDatasetGenerator",
|
|
@@ -56,38 +86,54 @@ __all__ = [
|
|
|
56
86
|
"DatasetGeneratorConfig",
|
|
57
87
|
"EpidemiologicalTreeDatasetGenerator",
|
|
58
88
|
"FBDTreeDatasetGenerator",
|
|
89
|
+
"TreeDatasetGeneratorConfig",
|
|
90
|
+
"dump_fasta",
|
|
91
|
+
"load_fasta",
|
|
92
|
+
"MSA",
|
|
93
|
+
"Sequence",
|
|
59
94
|
"SkylineMatrix",
|
|
60
95
|
"SkylineMatrixCoercible",
|
|
61
|
-
"skyline_matrix",
|
|
62
96
|
"SkylineParameter",
|
|
63
97
|
"SkylineParameterLike",
|
|
64
|
-
"skyline_parameter",
|
|
65
98
|
"SkylineVector",
|
|
66
99
|
"SkylineVectorCoercible",
|
|
67
100
|
"SkylineVectorLike",
|
|
101
|
+
"skyline_matrix",
|
|
102
|
+
"skyline_parameter",
|
|
68
103
|
"skyline_vector",
|
|
69
|
-
"Tree",
|
|
70
|
-
"TreeDatasetGeneratorConfig",
|
|
71
104
|
"Birth",
|
|
72
105
|
"BirthWithContactTracing",
|
|
73
106
|
"Death",
|
|
74
107
|
"Event",
|
|
108
|
+
"EventType",
|
|
109
|
+
"Feature",
|
|
75
110
|
"Migration",
|
|
76
111
|
"Mutation",
|
|
77
|
-
"MutationTargetType",
|
|
78
112
|
"Sampling",
|
|
79
113
|
"SamplingWithContactTracing",
|
|
114
|
+
"Tree",
|
|
115
|
+
"compute_mean_leaf_pairwise_distance",
|
|
116
|
+
"compute_sackin_index",
|
|
117
|
+
"dump_newick",
|
|
118
|
+
"generate_trees",
|
|
80
119
|
"get_BD_events",
|
|
81
120
|
"get_BDEI_events",
|
|
82
121
|
"get_BDSS_events",
|
|
83
122
|
"get_canonical_events",
|
|
84
123
|
"get_contact_tracing_events",
|
|
124
|
+
"get_distance",
|
|
85
125
|
"get_epidemiological_events",
|
|
86
126
|
"get_FBD_events",
|
|
87
|
-
"
|
|
88
|
-
"
|
|
89
|
-
"
|
|
90
|
-
"
|
|
127
|
+
"get_mrca",
|
|
128
|
+
"get_mutation_id",
|
|
129
|
+
"get_node_depth_levels",
|
|
130
|
+
"get_node_depths",
|
|
131
|
+
"get_node_height_levels",
|
|
132
|
+
"get_node_heights",
|
|
133
|
+
"get_node_leaf_counts",
|
|
134
|
+
"get_node_state",
|
|
91
135
|
"load_newick",
|
|
92
|
-
"
|
|
136
|
+
"load_nexus",
|
|
137
|
+
"set_features",
|
|
138
|
+
"simulate_tree",
|
|
93
139
|
]
|