helmkit 0.3.2__tar.gz → 0.3.3__tar.gz
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.
- {helmkit-0.3.2 → helmkit-0.3.3}/PKG-INFO +1 -1
- {helmkit-0.3.2 → helmkit-0.3.3}/benchmarks/README.md +4 -4
- {helmkit-0.3.2 → helmkit-0.3.3}/pyproject.toml +1 -1
- {helmkit-0.3.2 → helmkit-0.3.3}/src/helmkit/molecule.py +4 -4
- {helmkit-0.3.2 → helmkit-0.3.3}/uv.lock +1 -1
- {helmkit-0.3.2 → helmkit-0.3.3}/.github/dependabot.yml +0 -0
- {helmkit-0.3.2 → helmkit-0.3.3}/.github/workflows/main.yml +0 -0
- {helmkit-0.3.2 → helmkit-0.3.3}/.gitignore +0 -0
- {helmkit-0.3.2 → helmkit-0.3.3}/.pre-commit-config.yaml +0 -0
- {helmkit-0.3.2 → helmkit-0.3.3}/.python-version +0 -0
- {helmkit-0.3.2 → helmkit-0.3.3}/LICENSE +0 -0
- {helmkit-0.3.2 → helmkit-0.3.3}/README.md +0 -0
- {helmkit-0.3.2 → helmkit-0.3.3}/benchmarks/benchmark-import.py +0 -0
- {helmkit-0.3.2 → helmkit-0.3.3}/benchmarks/data/monomers.sdf +0 -0
- {helmkit-0.3.2 → helmkit-0.3.3}/benchmarks/data/peptides.csv +0 -0
- {helmkit-0.3.2 → helmkit-0.3.3}/benchmarks/helmkit-benchmark.py +0 -0
- {helmkit-0.3.2 → helmkit-0.3.3}/benchmarks/helmkit-parallel-benchmark.py +0 -0
- {helmkit-0.3.2 → helmkit-0.3.3}/benchmarks/helmkit-profile.py +0 -0
- {helmkit-0.3.2 → helmkit-0.3.3}/benchmarks/helmkit-with-reload-benchmark.py +0 -0
- {helmkit-0.3.2 → helmkit-0.3.3}/benchmarks/pypept-benchmark.py +0 -0
- {helmkit-0.3.2 → helmkit-0.3.3}/src/helmkit/__init__.py +0 -0
- {helmkit-0.3.2 → helmkit-0.3.3}/src/helmkit/data/monomers.sdf +0 -0
- {helmkit-0.3.2 → helmkit-0.3.3}/src/helmkit/py.typed +0 -0
- {helmkit-0.3.2 → helmkit-0.3.3}/tests/data/generate_sdf.py +0 -0
- {helmkit-0.3.2 → helmkit-0.3.3}/tests/data/monomers.csv +0 -0
- {helmkit-0.3.2 → helmkit-0.3.3}/tests/data/monomers.sdf +0 -0
- {helmkit-0.3.2 → helmkit-0.3.3}/tests/data/peptides.csv +0 -0
- {helmkit-0.3.2 → helmkit-0.3.3}/tests/test_cycpeptmpdb.py +0 -0
- {helmkit-0.3.2 → helmkit-0.3.3}/tests/test_parallel_load.py +0 -0
- {helmkit-0.3.2 → helmkit-0.3.3}/tests/test_random_peptides.py +0 -0
|
@@ -37,13 +37,13 @@ and average parsing time:
|
|
|
37
37
|
|-------------------------------------|---------------:|-------------------------:|--------------------:|
|
|
38
38
|
| `pyPept` | 676.65 | 0.14400 | 6.94 |
|
|
39
39
|
| `helmkit` (DB reload every peptide) | 252.67 | 0.05383 | 18.58 |
|
|
40
|
-
| `helmkit` | 2.
|
|
41
|
-
| `helmkit` (parallel loading) | 1.
|
|
40
|
+
| `helmkit` | 2.07 | 0.00044 | 2267.63 |
|
|
41
|
+
| `helmkit` (parallel loading) | 1.40 | 0.00030 | 3352.86 |
|
|
42
42
|
|
|
43
|
-
`helmkit` outperforms `pyPept` by approximately
|
|
43
|
+
`helmkit` outperforms `pyPept` by approximately 327x when loading the monomer library
|
|
44
44
|
once per session. When forced to reload the library for every peptide, `helmkit` is
|
|
45
45
|
still about 3× faster. If we use parallelized loading in `helmkit`, we achieve an
|
|
46
|
-
additional
|
|
46
|
+
additional 1.5× speedup, resulting in a total speedup of approximately 477× over
|
|
47
47
|
`pyPept`.
|
|
48
48
|
|
|
49
49
|
## Environment
|
|
@@ -2,7 +2,6 @@ import multiprocessing
|
|
|
2
2
|
import re
|
|
3
3
|
import warnings
|
|
4
4
|
from functools import lru_cache
|
|
5
|
-
from functools import reduce
|
|
6
5
|
from importlib.resources import files
|
|
7
6
|
from typing import Dict
|
|
8
7
|
from typing import List
|
|
@@ -409,9 +408,10 @@ class Molecule:
|
|
|
409
408
|
self.mol = Chem.RWMol()
|
|
410
409
|
return
|
|
411
410
|
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
411
|
+
combined = Chem.RWMol(self.monomers[0]["m_romol"])
|
|
412
|
+
for monomer in self.monomers[1:]:
|
|
413
|
+
combined.InsertMol(monomer["m_romol"])
|
|
414
|
+
self.mol = combined
|
|
415
415
|
|
|
416
416
|
def _add_bonds(self) -> None:
|
|
417
417
|
"""Add bonds between monomers based on bond list."""
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|