msasim 25.10.21__cp311-cp311-win_amd64.whl → 25.11.2__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.
Binary file
msasim/sailfish.py CHANGED
@@ -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
- self._simulator = _Sailfish.Simulator(self._simProtocol._sim)
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
 
@@ -559,13 +562,11 @@ class Simulator:
559
562
  msa = Msa(blocktree._get_Sailfish_blocks(),
560
563
  self._simProtocol._get_root(),
561
564
  self.get_sequences_to_save())
565
+ self._simulator.set_aligned_sequence_map(msa._msa)
562
566
 
563
567
  # sim.init_substitution_sim(mFac)
564
568
  if self._simulation_type != SIMULATION_TYPE.NOSUBS:
565
- with tempfile.TemporaryDirectory() as tmpdirname:
566
- self._simulator.gen_substitutions_to_dir(msa.get_length(), tmpdirname)
567
- msa._msa.set_substitutions_folder(tmpdirname)
568
- msa._msa.write_msa_from_dir(str(output_file_path))
569
+ self._simulator.gen_substitutions_to_file(msa.get_length(), str(output_file_path))
569
570
 
570
571
 
571
572
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: msasim
3
- Version: 25.10.21
3
+ Version: 25.11.2
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,10 @@
1
+ _Sailfish.cp311-win_amd64.pyd,sha256=W0DdYWa0ahooaNZ-NAOxEqQvRli2wrpHMWWPv4aJXG0,607232
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/licenses/LICENSE,sha256=MgvumWWAhx44Y7XYvLMzqDUZv_Mn4nZLuC-EBl9E0l0,10483
7
+ msasim-25.11.2.dist-info/METADATA,sha256=jdn8JdjM7CPMLwm6-Ba2QIkYz-NDSWlOSMtUW75Qg-E,1730
8
+ msasim-25.11.2.dist-info/WHEEL,sha256=JLOMsP7F5qtkAkINx5UnzbFguf8CqZeraV8o04b0I8I,101
9
+ msasim-25.11.2.dist-info/top_level.txt,sha256=NS1ILx5V94Yyh_M7yDrrqbBPu1TL_zJuxhsI90YEJVY,17
10
+ msasim-25.11.2.dist-info/RECORD,,
@@ -1,10 +0,0 @@
1
- _Sailfish.cp311-win_amd64.pyd,sha256=Sjf1586a6vlujFQdXmzSZxRGvsE_N3kUCP5MhXYrSzU,625152
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=73JwceDHShxQOQ3c5QxsLsvWvOf_A5FWeCKOKRpqIaQ,26966
6
- msasim-25.10.21.dist-info/licenses/LICENSE,sha256=MgvumWWAhx44Y7XYvLMzqDUZv_Mn4nZLuC-EBl9E0l0,10483
7
- msasim-25.10.21.dist-info/METADATA,sha256=SvxG2VwLQ0C_jUi1BdVoU3Zkk4Ktwultzz7Va7h8PWc,1731
8
- msasim-25.10.21.dist-info/WHEEL,sha256=JLOMsP7F5qtkAkINx5UnzbFguf8CqZeraV8o04b0I8I,101
9
- msasim-25.10.21.dist-info/top_level.txt,sha256=NS1ILx5V94Yyh_M7yDrrqbBPu1TL_zJuxhsI90YEJVY,17
10
- msasim-25.10.21.dist-info/RECORD,,