msasim 24.12.0__cp37-cp37m-musllinux_1_2_x86_64.whl → 24.13.0__cp37-cp37m-musllinux_1_2_x86_64.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.
- _Sailfish.cpython-37m-x86_64-linux-gnu.so +0 -0
- msasim/sailfish.py +7 -4
- {msasim-24.12.0.dist-info → msasim-24.13.0.dist-info}/METADATA +1 -1
- msasim-24.13.0.dist-info/RECORD +10 -0
- msasim-24.12.0.dist-info/RECORD +0 -10
- {msasim-24.12.0.dist-info → msasim-24.13.0.dist-info}/LICENSE +0 -0
- {msasim-24.12.0.dist-info → msasim-24.13.0.dist-info}/WHEEL +0 -0
- {msasim-24.12.0.dist-info → msasim-24.13.0.dist-info}/top_level.txt +0 -0
|
Binary file
|
msasim/sailfish.py
CHANGED
|
@@ -462,15 +462,16 @@ class Simulator:
|
|
|
462
462
|
def set_replacement_model(
|
|
463
463
|
self,
|
|
464
464
|
model: _Sailfish.modelCode,
|
|
465
|
+
amino_model_file: pathlib.Path = None,
|
|
465
466
|
model_parameters: List = None,
|
|
466
467
|
gamma_parameters_alpha : float = 1.0,
|
|
467
|
-
|
|
468
|
+
gamma_parameters_categories: int = 1,
|
|
468
469
|
invariant_sites_proportion: float = 0.0
|
|
469
470
|
) -> None:
|
|
470
471
|
if not model:
|
|
471
472
|
raise ValueError(f"please provide a substitution model from the the following list: {_Sailfish.modelCode}")
|
|
472
|
-
if int(
|
|
473
|
-
raise ValueError(f"gamma_parameters_catergories has to be a positive int value: received value of {
|
|
473
|
+
if int(gamma_parameters_categories) != gamma_parameters_categories:
|
|
474
|
+
raise ValueError(f"gamma_parameters_catergories has to be a positive int value: received value of {gamma_parameters_categories}")
|
|
474
475
|
self._model_factory = _Sailfish.modelFactory(self._simProtocol._get_Sailfish_tree())
|
|
475
476
|
|
|
476
477
|
self._model_factory.set_alphabet(self._alphabet)
|
|
@@ -478,6 +479,8 @@ class Simulator:
|
|
|
478
479
|
if model_parameters:
|
|
479
480
|
raise ValueError(f"no model parameters are used in protein, recevied value of: {model_parameters}")
|
|
480
481
|
self._model_factory.set_replacement_model(model)
|
|
482
|
+
if model == MODEL_CODES.CUSTOM and amino_model_file:
|
|
483
|
+
self._model_factory.set_amino_replacement_model_file(str(amino_model_file))
|
|
481
484
|
else:
|
|
482
485
|
if model == MODEL_CODES.NUCJC and model_parameters:
|
|
483
486
|
raise ValueError(f"no model parameters in JC model, recevied value of: {model_parameters}")
|
|
@@ -489,7 +492,7 @@ class Simulator:
|
|
|
489
492
|
else:
|
|
490
493
|
self._model_factory.set_model_parameters(model_parameters)
|
|
491
494
|
|
|
492
|
-
self._model_factory.set_gamma_parameters(gamma_parameters_alpha,
|
|
495
|
+
self._model_factory.set_gamma_parameters(gamma_parameters_alpha, gamma_parameters_categories)
|
|
493
496
|
self._model_factory.set_invariant_sites_proportion(invariant_sites_proportion)
|
|
494
497
|
self._simulator.init_substitution_sim(self._model_factory)
|
|
495
498
|
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
_Sailfish.cpython-37m-x86_64-linux-gnu.so,sha256=pQ8CIAnuGyaRWK4Se192LSpmDcQK_pfgxSDwPJCwX2c,1381761
|
|
2
|
+
msasim.libs/libstdc++-496613c0.so.6.0.32,sha256=AwZhL5WFT99I2Q6vIxXOhW7qddfuOZ1xecxiP9QTVY4,3494361
|
|
3
|
+
msasim.libs/libgcc_s-a3a07607.so.1,sha256=5ptIUeAzZweNZrFehN0_Bb5B0FcJgux7NbAFoU8vwwo,148041
|
|
4
|
+
msasim/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
|
+
msasim/sailfish.py,sha256=o_6N1f1rFXgG0z_b17CJRC3wUzIcoKy__c6s1FroHgI,25901
|
|
6
|
+
msasim-24.13.0.dist-info/top_level.txt,sha256=NS1ILx5V94Yyh_M7yDrrqbBPu1TL_zJuxhsI90YEJVY,17
|
|
7
|
+
msasim-24.13.0.dist-info/RECORD,,
|
|
8
|
+
msasim-24.13.0.dist-info/LICENSE,sha256=p1Aa_mM2Nu6dG3XqMVU62Jhf04lNOwtXUrhhvhcDips,10312
|
|
9
|
+
msasim-24.13.0.dist-info/METADATA,sha256=mIMhgdJG3uQw8b9JZZIIc84JVcOtnrMFK_WiHo9zwIo,1468
|
|
10
|
+
msasim-24.13.0.dist-info/WHEEL,sha256=q5rUVfD8JDL5S3yQAj8GHnejX-TLAuJehhTULM4SQNo,112
|
msasim-24.12.0.dist-info/RECORD
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
_Sailfish.cpython-37m-x86_64-linux-gnu.so,sha256=ZChaJO6q20jJQPvPhRaTP_YVt2h_hn1otOKU17wOhwk,1373513
|
|
2
|
-
msasim-24.12.0.dist-info/top_level.txt,sha256=NS1ILx5V94Yyh_M7yDrrqbBPu1TL_zJuxhsI90YEJVY,17
|
|
3
|
-
msasim-24.12.0.dist-info/RECORD,,
|
|
4
|
-
msasim-24.12.0.dist-info/LICENSE,sha256=p1Aa_mM2Nu6dG3XqMVU62Jhf04lNOwtXUrhhvhcDips,10312
|
|
5
|
-
msasim-24.12.0.dist-info/METADATA,sha256=jVxAKL5akbzugkbsmgzPnFcQ2_kc84Pu18k0V4d1_bE,1468
|
|
6
|
-
msasim-24.12.0.dist-info/WHEEL,sha256=q5rUVfD8JDL5S3yQAj8GHnejX-TLAuJehhTULM4SQNo,112
|
|
7
|
-
msasim.libs/libstdc++-496613c0.so.6.0.32,sha256=AwZhL5WFT99I2Q6vIxXOhW7qddfuOZ1xecxiP9QTVY4,3494361
|
|
8
|
-
msasim.libs/libgcc_s-a3a07607.so.1,sha256=5ptIUeAzZweNZrFehN0_Bb5B0FcJgux7NbAFoU8vwwo,148041
|
|
9
|
-
msasim/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
10
|
-
msasim/sailfish.py,sha256=I45ufK0owZIsu7zOBN427rQ07RGl3Jll8mnGiCS0Ufo,25698
|
|
File without changes
|
|
File without changes
|
|
File without changes
|