msasim 24.8.1__cp37-cp37m-win_amd64.whl → 24.9.0__cp37-cp37m-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
@@ -10,6 +10,7 @@ from enum import Enum
10
10
  MODEL_CODES = _Sailfish.modelCode
11
11
 
12
12
  class SIMULATION_TYPE(Enum):
13
+ NOSUBS = 0
13
14
  DNA = 1
14
15
  PROTEIN = 2
15
16
 
@@ -413,13 +414,15 @@ class Simulator:
413
414
  raise ValueError(f"failed to verify simProtocol")
414
415
 
415
416
  if not simulation_type:
416
- warnings.warn(f"simulation type not provided -> running protein simulation")
417
- simulation_type = SIMULATION_TYPE.PROTEIN
417
+ warnings.warn(f"simulation type not provided -> running indel only simulation")
418
+ simulation_type = SIMULATION_TYPE.NOSUBS
418
419
 
419
420
  if simulation_type == SIMULATION_TYPE.PROTEIN:
420
421
  self._alphabet = _Sailfish.alphabetCode.AMINOACID
421
422
  elif simulation_type == SIMULATION_TYPE.DNA:
422
423
  self._alphabet = _Sailfish.alphabetCode.NUCLEOTIDE
424
+ elif simulation_type == SIMULATION_TYPE.NOSUBS:
425
+ self._alphabet = _Sailfish.alphabetCode.NULLCODE
423
426
  else:
424
427
  raise ValueError(f"unknown simulation type, please provde one of the following: {[e.name for e in SIMULATION_TYPE]}")
425
428
 
@@ -525,8 +528,9 @@ class Simulator:
525
528
  self.get_sequences_to_save())
526
529
 
527
530
  # sim.init_substitution_sim(mFac)
528
- substitutions = self.gen_substitutions(msa.get_length())
529
- msa.fill_substitutions(substitutions)
531
+ if self._simulation_type != SIMULATION_TYPE.NOSUBS:
532
+ substitutions = self.gen_substitutions(msa.get_length())
533
+ msa.fill_substitutions(substitutions)
530
534
 
531
535
  Msas.append(msa)
532
536
  return Msas
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: msasim
3
- Version: 24.8.1
3
+ Version: 24.9.0
4
4
  Summary: A fast MSA simulator
5
5
  Home-page: https://github.com/elyawy/Sailfish-backend
6
6
  Author: Elya Wygoda
@@ -0,0 +1,8 @@
1
+ _Sailfish.cp37-win_amd64.pyd,sha256=dsOhQnSL8xwJORP9QA5k5oG-VApU0oc1W79qn-P9H8o,572928
2
+ msasim/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
+ msasim/sailfish.py,sha256=Q6vzPz3Q33eQ0I7QDmIUVBY21OpU09MYJhSk5vPGiPk,25308
4
+ msasim-24.9.0.dist-info/LICENSE,sha256=MgvumWWAhx44Y7XYvLMzqDUZv_Mn4nZLuC-EBl9E0l0,10483
5
+ msasim-24.9.0.dist-info/METADATA,sha256=dc_8wHIi1FKdqdbNyQjcDzCq92-sbzRnKu8HMpusk64,1521
6
+ msasim-24.9.0.dist-info/WHEEL,sha256=slqBGdqRnxanDn00BSYHhryEsWH_8CUurgRUvoMtK_Y,101
7
+ msasim-24.9.0.dist-info/top_level.txt,sha256=NS1ILx5V94Yyh_M7yDrrqbBPu1TL_zJuxhsI90YEJVY,17
8
+ msasim-24.9.0.dist-info/RECORD,,
@@ -1,8 +0,0 @@
1
- _Sailfish.cp37-win_amd64.pyd,sha256=SU2-izuIUSuv6fL1WUZXJTidat2jO6paoX9BfijKjxQ,565760
2
- msasim/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
- msasim/sailfish.py,sha256=Y6gxd2ITO8x_wwz5fmP42B9OoYUNEXap_rWXzdF1HlE,25098
4
- msasim-24.8.1.dist-info/LICENSE,sha256=MgvumWWAhx44Y7XYvLMzqDUZv_Mn4nZLuC-EBl9E0l0,10483
5
- msasim-24.8.1.dist-info/METADATA,sha256=LnqArh5lK1N40yoVQtrKKSYkMdt19kii6R_mlULTdZA,1521
6
- msasim-24.8.1.dist-info/WHEEL,sha256=slqBGdqRnxanDn00BSYHhryEsWH_8CUurgRUvoMtK_Y,101
7
- msasim-24.8.1.dist-info/top_level.txt,sha256=NS1ILx5V94Yyh_M7yDrrqbBPu1TL_zJuxhsI90YEJVY,17
8
- msasim-24.8.1.dist-info/RECORD,,