msasim 24.13.0__cp311-cp311-win_amd64.whl → 25.3.0__cp311-cp311-win_amd64.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.

Potentially problematic release.


This version of msasim might be problematic. Click here for more details.

Binary file
msasim/sailfish.py CHANGED
@@ -218,6 +218,7 @@ class SimProtocol:
218
218
  insertion_rate: float = 0.0,
219
219
  deletion_dist: Distribution = ZipfDistribution(1.7, 50),
220
220
  insertion_dist: Distribution = ZipfDistribution(1.7, 50),
221
+ minimum_seq_size: int = 100,
221
222
  seed: int = 0,
222
223
  ):
223
224
  if isinstance(tree, Tree):
@@ -237,7 +238,8 @@ class SimProtocol:
237
238
  self.set_insertion_rates(insertion_rate=insertion_rate)
238
239
  self.set_deletion_length_distributions(deletion_dist=deletion_dist)
239
240
  self.set_insertion_length_distributions(insertion_dist=insertion_dist)
240
-
241
+ self.set_min_sequence_size(min_sequence_size=minimum_seq_size)
242
+
241
243
  def get_tree(self) -> Tree:
242
244
  return self._tree
243
245
 
@@ -264,6 +266,11 @@ class SimProtocol:
264
266
  def get_sequence_size(self) -> int:
265
267
  return self._root_seq_size
266
268
 
269
+ def set_min_sequence_size(self, min_sequence_size: int) -> None:
270
+ self._sim.set_minimum_sequence_size(min_sequence_size)
271
+ self._min_seq_size = min_sequence_size
272
+
273
+
267
274
  def set_insertion_rates(self, insertion_rate: Optional[float] = None, insertion_rates: Optional[List[float]] = None) -> None:
268
275
  if insertion_rate is not None:
269
276
  self.insertion_rates = [insertion_rate] * self._num_branches
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.2
2
2
  Name: msasim
3
- Version: 24.13.0
3
+ Version: 25.3.0
4
4
  Summary: A fast MSA simulator
5
5
  Home-page: https://github.com/elyawy/Sailfish-backend
6
6
  Author: Elya Wygoda
@@ -10,6 +10,14 @@ Description-Content-Type: text/markdown
10
10
  License-File: LICENSE
11
11
  Provides-Extra: test
12
12
  Requires-Dist: pytest; extra == "test"
13
+ Dynamic: author
14
+ Dynamic: author-email
15
+ Dynamic: description
16
+ Dynamic: description-content-type
17
+ Dynamic: home-page
18
+ Dynamic: provides-extra
19
+ Dynamic: requires-python
20
+ Dynamic: summary
13
21
 
14
22
  # Sailfish
15
23
 
@@ -0,0 +1,8 @@
1
+ _Sailfish.cp311-win_amd64.pyd,sha256=AH-V4vKZkfOuAoFCKZpKE0Su_qQ7kG9B3fnoosxwzGk,614912
2
+ msasim/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
+ msasim/sailfish.py,sha256=ex2EX4xSuxs6D8iBZk4ar8CjPcjWyJm2uewfk7jGJ-A,26772
4
+ msasim-25.3.0.dist-info/LICENSE,sha256=MgvumWWAhx44Y7XYvLMzqDUZv_Mn4nZLuC-EBl9E0l0,10483
5
+ msasim-25.3.0.dist-info/METADATA,sha256=f9ZwjTRLefwRvctDsHyoS0KrKvJJ7CBnRHAGEUzJIBQ,1706
6
+ msasim-25.3.0.dist-info/WHEEL,sha256=yNnHoQL2GZYIUXm9YvoaBpFjGlUoK9qq9oqYeudrWlE,101
7
+ msasim-25.3.0.dist-info/top_level.txt,sha256=NS1ILx5V94Yyh_M7yDrrqbBPu1TL_zJuxhsI90YEJVY,17
8
+ msasim-25.3.0.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.6.0)
2
+ Generator: setuptools (75.8.0)
3
3
  Root-Is-Purelib: false
4
4
  Tag: cp311-cp311-win_amd64
5
5
 
@@ -1,8 +0,0 @@
1
- _Sailfish.cp311-win_amd64.pyd,sha256=jZcchK80KW0ivnJgRlS6IfAokOh0YmML3ASVcwaHPiE,614912
2
- msasim/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
- msasim/sailfish.py,sha256=77kSpZ6ESwQhyePVcud_m5W3QlgrM5uqkp84YdxRyE4,26467
4
- msasim-24.13.0.dist-info/LICENSE,sha256=MgvumWWAhx44Y7XYvLMzqDUZv_Mn4nZLuC-EBl9E0l0,10483
5
- msasim-24.13.0.dist-info/METADATA,sha256=nTCxeSkv6lqMGR4VQJyENehgupdjKJCzZuDkymfEav4,1521
6
- msasim-24.13.0.dist-info/WHEEL,sha256=nkBcd8Ko0v5sEcSagm2-x_RVrb8gBSkTa8VFFZ0Mr1o,101
7
- msasim-24.13.0.dist-info/top_level.txt,sha256=NS1ILx5V94Yyh_M7yDrrqbBPu1TL_zJuxhsI90YEJVY,17
8
- msasim-24.13.0.dist-info/RECORD,,