msasim 25.10.15__cp38-cp38-win_amd64.whl → 25.11.2__cp38-cp38-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.
- _Sailfish/__init__.pyi +2 -0
- _Sailfish.cp38-win_amd64.pyd +0 -0
- msasim/sailfish.py +16 -12
- {msasim-25.10.15.dist-info → msasim-25.11.2.dist-info}/METADATA +1 -1
- msasim-25.11.2.dist-info/RECORD +10 -0
- msasim-25.10.15.dist-info/RECORD +0 -10
- {msasim-25.10.15.dist-info → msasim-25.11.2.dist-info}/LICENSE +0 -0
- {msasim-25.10.15.dist-info → msasim-25.11.2.dist-info}/WHEEL +0 -0
- {msasim-25.10.15.dist-info → msasim-25.11.2.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.cp38-win_amd64.pyd
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
|
|
@@ -415,7 +415,10 @@ class Simulator:
|
|
|
415
415
|
# verify sim_protocol
|
|
416
416
|
if self._verify_sim_protocol(simProtocol):
|
|
417
417
|
self._simProtocol = simProtocol
|
|
418
|
-
|
|
418
|
+
if simulation_type == SIMULATION_TYPE.PROTEIN:
|
|
419
|
+
self._simulator = _Sailfish.AminoSimulator(self._simProtocol._sim)
|
|
420
|
+
else:
|
|
421
|
+
self._simulator = _Sailfish.NucleotideSimulator(self._simProtocol._sim)
|
|
419
422
|
else:
|
|
420
423
|
raise ValueError(f"failed to verify simProtocol")
|
|
421
424
|
|
|
@@ -475,7 +478,8 @@ class Simulator:
|
|
|
475
478
|
model_parameters: List = None,
|
|
476
479
|
gamma_parameters_alpha : float = 1.0,
|
|
477
480
|
gamma_parameters_categories: int = 1,
|
|
478
|
-
invariant_sites_proportion: float = 0.0
|
|
481
|
+
invariant_sites_proportion: float = 0.0,
|
|
482
|
+
site_rate_correlation: float = 0.0,
|
|
479
483
|
) -> None:
|
|
480
484
|
if not model:
|
|
481
485
|
raise ValueError(f"please provide a substitution model from the the following list: {_Sailfish.modelCode}")
|
|
@@ -503,6 +507,8 @@ class Simulator:
|
|
|
503
507
|
|
|
504
508
|
self._model_factory.set_gamma_parameters(gamma_parameters_alpha, gamma_parameters_categories)
|
|
505
509
|
self._model_factory.set_invariant_sites_proportion(invariant_sites_proportion)
|
|
510
|
+
self._model_factory.set_site_rate_correlation(site_rate_correlation)
|
|
511
|
+
|
|
506
512
|
self._simulator.init_substitution_sim(self._model_factory)
|
|
507
513
|
|
|
508
514
|
self._is_sub_model_init = True
|
|
@@ -556,13 +562,11 @@ class Simulator:
|
|
|
556
562
|
msa = Msa(blocktree._get_Sailfish_blocks(),
|
|
557
563
|
self._simProtocol._get_root(),
|
|
558
564
|
self.get_sequences_to_save())
|
|
565
|
+
self._simulator.set_aligned_sequence_map(msa._msa)
|
|
559
566
|
|
|
560
567
|
# sim.init_substitution_sim(mFac)
|
|
561
568
|
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))
|
|
569
|
+
self._simulator.gen_substitutions_to_file(msa.get_length(), str(output_file_path))
|
|
566
570
|
|
|
567
571
|
|
|
568
572
|
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
_Sailfish.cp38-win_amd64.pyd,sha256=WcpVIpdRHNss-XoXUFANJxW9lll8kOioRnWADw0XSVY,604672
|
|
2
|
+
_Sailfish/__init__.pyi,sha256=kic4k1SjpXin4g8Ztzk8cDkMZpE8Hi-yIfkjp5g6RRI,15688
|
|
3
|
+
_Sailfish/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
+
msasim/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
|
+
msasim/sailfish.py,sha256=KA-DpYKS8KpgLKrjUEOD6jPizw_P0F9LknfuzMJ8ZEM,27021
|
|
6
|
+
msasim-25.11.2.dist-info/LICENSE,sha256=MgvumWWAhx44Y7XYvLMzqDUZv_Mn4nZLuC-EBl9E0l0,10483
|
|
7
|
+
msasim-25.11.2.dist-info/METADATA,sha256=5saCaMWaITboWGxP-0E5chsp8Nd49reIfocd915Xuek,1522
|
|
8
|
+
msasim-25.11.2.dist-info/WHEEL,sha256=2M046GvC9RLU1f1TWyM-2sB7cRKLhAC7ucAFK8l8f24,99
|
|
9
|
+
msasim-25.11.2.dist-info/top_level.txt,sha256=NS1ILx5V94Yyh_M7yDrrqbBPu1TL_zJuxhsI90YEJVY,17
|
|
10
|
+
msasim-25.11.2.dist-info/RECORD,,
|
msasim-25.10.15.dist-info/RECORD
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
_Sailfish.cp38-win_amd64.pyd,sha256=0g8IfujG2LkDjLJvsyVwcT17_be93W0x33uinaNrHsI,623616
|
|
2
|
-
_Sailfish/__init__.pyi,sha256=bzuzodmX3gI7TdqWMl6UQYuIZKgY5Nnzv52xOwv4fpg,15612
|
|
3
|
-
_Sailfish/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
-
msasim/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
|
-
msasim/sailfish.py,sha256=TNaryXqg5lUz7SqZdPTyY0s1fqHpvspD95yFqN7IL48,26824
|
|
6
|
-
msasim-25.10.15.dist-info/LICENSE,sha256=MgvumWWAhx44Y7XYvLMzqDUZv_Mn4nZLuC-EBl9E0l0,10483
|
|
7
|
-
msasim-25.10.15.dist-info/METADATA,sha256=lPx8kSA-9zpFAhkdbLPkgujekk_yFEq26i89B4t8INQ,1523
|
|
8
|
-
msasim-25.10.15.dist-info/WHEEL,sha256=2M046GvC9RLU1f1TWyM-2sB7cRKLhAC7ucAFK8l8f24,99
|
|
9
|
-
msasim-25.10.15.dist-info/top_level.txt,sha256=NS1ILx5V94Yyh_M7yDrrqbBPu1TL_zJuxhsI90YEJVY,17
|
|
10
|
-
msasim-25.10.15.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|