phylogenie 1.0.7__py3-none-any.whl → 1.0.8__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.
@@ -24,7 +24,7 @@ def _beautify_xml(xml: bytes) -> str:
24
24
 
25
25
  def _generate_config_file(
26
26
  output_xml_file: str,
27
- tree_file_name: str,
27
+ tree_filename: str,
28
28
  populations: list[str],
29
29
  init_values: list[int],
30
30
  sample_population: str,
@@ -85,7 +85,7 @@ def _generate_config_file(
85
85
  simulate.append(trajectory)
86
86
 
87
87
  logger = Element(
88
- "logger", {"spec": "Logger", "mode": "tree", "fileName": tree_file_name}
88
+ "logger", {"spec": "Logger", "mode": "tree", "fileName": tree_filename}
89
89
  )
90
90
  logger.append(
91
91
  Element(
@@ -140,7 +140,7 @@ def _postprocess_tree(input_file: str, output_file: str, attributes: list[str])
140
140
 
141
141
 
142
142
  def generate_trees(
143
- tree_file_name: str,
143
+ tree_filename: str,
144
144
  populations: str | list[str] = DEFAULT_POPULATION,
145
145
  init_population: str = DEFAULT_POPULATION,
146
146
  sample_population: str = SAMPLE_POPULATION,
@@ -158,14 +158,14 @@ def generate_trees(
158
158
  init_values[populations.index(init_population)] = 1
159
159
 
160
160
  if output_xml_file is None:
161
- xml_file = f"{tree_file_name}-temp.xml"
161
+ xml_file = f"{tree_filename}-temp.xml"
162
162
  else:
163
163
  xml_file = output_xml_file
164
164
 
165
- temp_tree_file = f"{tree_file_name}-temp.nex"
165
+ temp_tree_filename = f"{tree_filename}-temp.nex"
166
166
  _generate_config_file(
167
167
  output_xml_file=xml_file,
168
- tree_file_name=temp_tree_file,
168
+ tree_filename=temp_tree_filename,
169
169
  populations=populations,
170
170
  init_values=init_values,
171
171
  sample_population=sample_population,
@@ -181,7 +181,7 @@ def generate_trees(
181
181
  cmd.append(xml_file)
182
182
  subprocess.run(cmd, check=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
183
183
 
184
- _postprocess_tree(temp_tree_file, tree_file_name, ["type", "time"])
184
+ _postprocess_tree(temp_tree_filename, tree_filename, ["type", "time"])
185
185
  if output_xml_file is None:
186
186
  subprocess.run(["rm", xml_file], check=True)
187
- subprocess.run(["rm", temp_tree_file], check=True)
187
+ subprocess.run(["rm", temp_tree_filename], check=True)
@@ -51,7 +51,7 @@ class ReMASTERGenerator(TreesGenerator):
51
51
  self, filename: str, rng: Generator, data: pgt.Data, reactions: list[Reaction]
52
52
  ) -> None:
53
53
  generate_trees(
54
- tree_file_name=f"{filename}.nwk",
54
+ tree_filename=f"{filename}.nwk",
55
55
  populations=self.populations,
56
56
  init_population=self.init_population.format(**data),
57
57
  sample_population=self.sample_population,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: phylogenie
3
- Version: 1.0.7
3
+ Version: 1.0.8
4
4
  Summary: Generate phylogenetic datasets with minimal setup effort
5
5
  Author: Gabriele Marino
6
6
  Author-email: gabmarino.8601@gmail.com
@@ -1,7 +1,7 @@
1
1
  phylogenie/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  phylogenie/backend/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
3
  phylogenie/backend/remaster/__init__.py,sha256=g1oMKi6SX60Geq_e2AjBlf7-pDvLfrsT3gW6AORdbMo,509
4
- phylogenie/backend/remaster/generate.py,sha256=Sb5izUQO0GmUcIEMoXtHWLsh9c4vIeyNIUm7u4RVLdw,6100
4
+ phylogenie/backend/remaster/generate.py,sha256=jDtcZyi6ifptRopeuGCHETzVz_NyK4UC3HiNPwQPzbg,6109
5
5
  phylogenie/backend/remaster/reactions.py,sha256=oc2ZY9WtTajbOWjARDmA0JnS255tbVeMt1DmyCUp95M,5904
6
6
  phylogenie/backend/treesimulator.py,sha256=pJmSX_0EOFngJTCxh36qTap1llYIZq4p9azQ9PIjlo4,5469
7
7
  phylogenie/configs.py,sha256=HtRUWZ-zNq1--zTBWL3QFXX27Ybw5x1qSWcmx7Sz8YA,125
@@ -21,7 +21,7 @@ phylogenie/core/trees/base.py,sha256=sNBCJRtWGYaMog4WoyAkrK4F2SXrgjXrxjuVQ6Ae5Js
21
21
  phylogenie/core/trees/remaster/__init__.py,sha256=FfgXYjkeosb22Anbp78re2NssWtNcNNaj7hFQZx8JLE,116
22
22
  phylogenie/core/trees/remaster/configs.py,sha256=d4EqowYMb5I2TfBTgNf9H_X1t8aNCYJbh1RQmFoDxs4,362
23
23
  phylogenie/core/trees/remaster/factories.py,sha256=qla4pg4OgfE5lwQZuP3bEaMt7xIF4P6fQ1Z0IPpFxUs,812
24
- phylogenie/core/trees/remaster/generator.py,sha256=LZTnNHZej6E1QakTBaBwRQQRaeb6rfG61U61bGbgE5Y,7260
24
+ phylogenie/core/trees/remaster/generator.py,sha256=UJO9ymxHE3lS62RgyJ-cS2Tc_RbHgxeGggx_Ses6k4Q,7259
25
25
  phylogenie/core/trees/treesimulator.py,sha256=RpyRvXAHLHEOU9Ub9Yg61au7xP_rnbC7N0va43gbbx8,7319
26
26
  phylogenie/core/typeguards.py,sha256=wEBYJZZ_Q_bY7ZJSh00AXJeyc1X8ZoysoOiLwo24N1w,990
27
27
  phylogenie/main.py,sha256=n_joau3dWJIq0ZMHe4a_1_2GigTFagkfzUFuQEMlyRI,1158
@@ -32,8 +32,8 @@ phylogenie/skyline/parameter.py,sha256=CJ5OEyRQG2Tg1WJWQ1IpfX-6hjJv80Zj8lMoRke5n
32
32
  phylogenie/skyline/vector.py,sha256=Zh6HWoziXQFKDz-XvVE2e_Tw1706NrbwcvBpyPpw_cc,7120
33
33
  phylogenie/typeguards.py,sha256=WBOSJSaOC8VDtrYoA2w_AYEXTpyKdCfmsM29KaKXl3A,1350
34
34
  phylogenie/typings.py,sha256=93VRedBxrpzXkT4uaNu_1JiMzsOjp7fUy4kLv_eYxUE,565
35
- phylogenie-1.0.7.dist-info/LICENSE.txt,sha256=NUrDqElK-eD3I0WqC004CJsy6cs0JgsAoebDv_42-pw,1071
36
- phylogenie-1.0.7.dist-info/METADATA,sha256=nxNZz_0FxtO1QnN99JDqE3c_a6K5I2YkiQBbuFuALVg,6291
37
- phylogenie-1.0.7.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
38
- phylogenie-1.0.7.dist-info/entry_points.txt,sha256=Rt6_usN0FkBX1ZfiqCirjMN9FKOgFLG8rydcQ8kugeE,51
39
- phylogenie-1.0.7.dist-info/RECORD,,
35
+ phylogenie-1.0.8.dist-info/LICENSE.txt,sha256=NUrDqElK-eD3I0WqC004CJsy6cs0JgsAoebDv_42-pw,1071
36
+ phylogenie-1.0.8.dist-info/METADATA,sha256=eEc-ZuAO-y2SKsjHYxqSxRwqMYZ4Y_Hr8wzk49x9I4k,6291
37
+ phylogenie-1.0.8.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
38
+ phylogenie-1.0.8.dist-info/entry_points.txt,sha256=Rt6_usN0FkBX1ZfiqCirjMN9FKOgFLG8rydcQ8kugeE,51
39
+ phylogenie-1.0.8.dist-info/RECORD,,