msasim 25.10.15__cp38-cp38-macosx_11_0_arm64.whl → 25.11.1__cp38-cp38-macosx_11_0_arm64.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.
- _Sailfish/__init__.pyi +2 -0
- _Sailfish.cpython-38-darwin.so +0 -0
- msasim/sailfish.py +12 -11
- {msasim-25.10.15.dist-info → msasim-25.11.1.dist-info}/METADATA +1 -1
- msasim-25.11.1.dist-info/RECORD +10 -0
- msasim-25.10.15.dist-info/RECORD +0 -10
- {msasim-25.10.15.dist-info → msasim-25.11.1.dist-info}/LICENSE +0 -0
- {msasim-25.10.15.dist-info → msasim-25.11.1.dist-info}/WHEEL +0 -0
- {msasim-25.10.15.dist-info → msasim-25.11.1.dist-info}/top_level.txt +0 -0
_Sailfish/__init__.pyi
CHANGED
|
@@ -376,6 +376,8 @@ class modelFactory:
|
|
|
376
376
|
...
|
|
377
377
|
def set_invariant_sites_proportion(self, arg0: float) -> None:
|
|
378
378
|
...
|
|
379
|
+
def set_site_rate_correlation(self, arg0: float) -> None:
|
|
380
|
+
...
|
|
379
381
|
def set_model_parameters(self, arg0: list[float]) -> None:
|
|
380
382
|
...
|
|
381
383
|
def set_replacement_model(self, arg0: modelCode) -> None:
|
_Sailfish.cpython-38-darwin.so
CHANGED
|
Binary file
|
msasim/sailfish.py
CHANGED
|
@@ -25,14 +25,14 @@ class Distribution:
|
|
|
25
25
|
raise ValueError(f"Each value of the probabilities should be between 0 to 1. Received a value of {x}")
|
|
26
26
|
self._dist = _Sailfish.DiscreteDistribution(dist)
|
|
27
27
|
|
|
28
|
-
def draw_sample(self) -> int:
|
|
29
|
-
|
|
28
|
+
# def draw_sample(self) -> int:
|
|
29
|
+
# return self._dist.draw_sample()
|
|
30
30
|
|
|
31
|
-
def set_seed(self, seed: int) -> None:
|
|
32
|
-
|
|
31
|
+
# def set_seed(self, seed: int) -> None:
|
|
32
|
+
# return self._dist.set_seed(seed)
|
|
33
33
|
|
|
34
|
-
def get_table(self) -> List:
|
|
35
|
-
|
|
34
|
+
# def get_table(self) -> List:
|
|
35
|
+
# return self._dist.get_table()
|
|
36
36
|
|
|
37
37
|
def _get_Sailfish_dist(self) -> _Sailfish.DiscreteDistribution:
|
|
38
38
|
return self._dist
|
|
@@ -475,7 +475,8 @@ class Simulator:
|
|
|
475
475
|
model_parameters: List = None,
|
|
476
476
|
gamma_parameters_alpha : float = 1.0,
|
|
477
477
|
gamma_parameters_categories: int = 1,
|
|
478
|
-
invariant_sites_proportion: float = 0.0
|
|
478
|
+
invariant_sites_proportion: float = 0.0,
|
|
479
|
+
site_rate_correlation: float = 0.0,
|
|
479
480
|
) -> None:
|
|
480
481
|
if not model:
|
|
481
482
|
raise ValueError(f"please provide a substitution model from the the following list: {_Sailfish.modelCode}")
|
|
@@ -503,6 +504,8 @@ class Simulator:
|
|
|
503
504
|
|
|
504
505
|
self._model_factory.set_gamma_parameters(gamma_parameters_alpha, gamma_parameters_categories)
|
|
505
506
|
self._model_factory.set_invariant_sites_proportion(invariant_sites_proportion)
|
|
507
|
+
self._model_factory.set_site_rate_correlation(site_rate_correlation)
|
|
508
|
+
|
|
506
509
|
self._simulator.init_substitution_sim(self._model_factory)
|
|
507
510
|
|
|
508
511
|
self._is_sub_model_init = True
|
|
@@ -556,13 +559,11 @@ class Simulator:
|
|
|
556
559
|
msa = Msa(blocktree._get_Sailfish_blocks(),
|
|
557
560
|
self._simProtocol._get_root(),
|
|
558
561
|
self.get_sequences_to_save())
|
|
562
|
+
self._simulator.set_aligned_sequence_map(msa._msa)
|
|
559
563
|
|
|
560
564
|
# sim.init_substitution_sim(mFac)
|
|
561
565
|
if self._simulation_type != SIMULATION_TYPE.NOSUBS:
|
|
562
|
-
|
|
563
|
-
self._simulator.gen_substitutions_to_dir(msa.get_length(), tmpdirname)
|
|
564
|
-
msa._msa.set_substitutions_folder(tmpdirname)
|
|
565
|
-
msa._msa.write_msa_from_dir(str(output_file_path))
|
|
566
|
+
self._simulator.gen_substitutions_to_file(msa.get_length(), str(output_file_path))
|
|
566
567
|
|
|
567
568
|
|
|
568
569
|
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
_Sailfish.cpython-38-darwin.so,sha256=4hgG4w5rHrfAcgFQzYQO3ISE_GmAYkgYOWt2WNG0d8g,1112000
|
|
2
|
+
msasim-25.11.1.dist-info/RECORD,,
|
|
3
|
+
msasim-25.11.1.dist-info/LICENSE,sha256=p1Aa_mM2Nu6dG3XqMVU62Jhf04lNOwtXUrhhvhcDips,10312
|
|
4
|
+
msasim-25.11.1.dist-info/WHEEL,sha256=9FabR3Kab7Nb3lO5nBQWtZc544XJ0hYCmiQC2RH2bHM,107
|
|
5
|
+
msasim-25.11.1.dist-info/top_level.txt,sha256=NS1ILx5V94Yyh_M7yDrrqbBPu1TL_zJuxhsI90YEJVY,17
|
|
6
|
+
msasim-25.11.1.dist-info/METADATA,sha256=NpCaDLWcBAhXrpD4lrjdlbOYLKbFcng3Bc4kMYk0erg,1468
|
|
7
|
+
msasim/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
8
|
+
msasim/sailfish.py,sha256=hNlCvoK4_MqEg128Ys2wBmzQ0AUBP_RRMJCCe8QINlU,26268
|
|
9
|
+
_Sailfish/__init__.pyi,sha256=DX4v5D6hPmsW7hvmL9lk2eK2LprIP_nEY88nzZTM3eI,15252
|
|
10
|
+
_Sailfish/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
msasim-25.10.15.dist-info/RECORD
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
_Sailfish.cpython-38-darwin.so,sha256=EBhJOfv8Yr04Lo6hN9Izymhnbu3nQKDFB6QsDII36vk,1150832
|
|
2
|
-
msasim-25.10.15.dist-info/RECORD,,
|
|
3
|
-
msasim-25.10.15.dist-info/LICENSE,sha256=p1Aa_mM2Nu6dG3XqMVU62Jhf04lNOwtXUrhhvhcDips,10312
|
|
4
|
-
msasim-25.10.15.dist-info/WHEEL,sha256=9FabR3Kab7Nb3lO5nBQWtZc544XJ0hYCmiQC2RH2bHM,107
|
|
5
|
-
msasim-25.10.15.dist-info/top_level.txt,sha256=NS1ILx5V94Yyh_M7yDrrqbBPu1TL_zJuxhsI90YEJVY,17
|
|
6
|
-
msasim-25.10.15.dist-info/METADATA,sha256=m9oLsDUnseW0JmsMR2CXeHNDmjpsiWoMtpqcpVq3AQo,1469
|
|
7
|
-
msasim/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
8
|
-
msasim/sailfish.py,sha256=smYUY3vr5LomFQgACskkVy8lZkedGwahz6PEBbvpeSU,26249
|
|
9
|
-
_Sailfish/__init__.pyi,sha256=g1apAVKIwxit-nAJ1B9WXADEkpFqRTR8wmLvFN39ZME,15178
|
|
10
|
-
_Sailfish/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
File without changes
|
|
File without changes
|
|
File without changes
|