helmkit 0.5.3__tar.gz → 0.6.0__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.5.3 → helmkit-0.6.0}/PKG-INFO +3 -3
- {helmkit-0.5.3 → helmkit-0.6.0}/README.md +2 -2
- {helmkit-0.5.3 → helmkit-0.6.0}/pyproject.toml +1 -1
- {helmkit-0.5.3 → helmkit-0.6.0}/src/helmkit/__init__.py +2 -2
- {helmkit-0.5.3 → helmkit-0.6.0}/src/helmkit/molecule.py +3 -3
- {helmkit-0.5.3 → helmkit-0.6.0}/uv.lock +1 -1
- {helmkit-0.5.3 → helmkit-0.6.0}/.gitignore +0 -0
- {helmkit-0.5.3 → helmkit-0.6.0}/.python-version +0 -0
- {helmkit-0.5.3 → helmkit-0.6.0}/LICENSE +0 -0
- {helmkit-0.5.3 → helmkit-0.6.0}/src/helmkit/data/monomers.sdf +0 -0
- {helmkit-0.5.3 → helmkit-0.6.0}/src/helmkit/py.typed +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: helmkit
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.6.0
|
|
4
4
|
Summary: Parse HELM strings into RDKit molecules
|
|
5
5
|
License-File: LICENSE
|
|
6
6
|
Requires-Python: >=3.11
|
|
@@ -151,7 +151,7 @@ For workflows involving a large number of peptides, `helmkit` provides a functio
|
|
|
151
151
|
|
|
152
152
|
```python
|
|
153
153
|
from helmkit import load_monomer_library
|
|
154
|
-
from helmkit import
|
|
154
|
+
from helmkit import load_in_parallel
|
|
155
155
|
|
|
156
156
|
# Load your custom monomer data (optional)
|
|
157
157
|
custom_sdf_path = "/path/to/your/custom_monomers.sdf"
|
|
@@ -161,7 +161,7 @@ monomer_db = load_monomer_library(custom_sdf_path)
|
|
|
161
161
|
helm_strings = ["PEPTIDE1{A.R.G}$$$$", "PEPTIDE1{S.G.T}$$$$"]
|
|
162
162
|
|
|
163
163
|
# Process peptides in parallel
|
|
164
|
-
molecules =
|
|
164
|
+
molecules = load_in_parallel(helm_strings, monomer_db)
|
|
165
165
|
```
|
|
166
166
|
|
|
167
167
|
## Development Setup
|
|
@@ -142,7 +142,7 @@ For workflows involving a large number of peptides, `helmkit` provides a functio
|
|
|
142
142
|
|
|
143
143
|
```python
|
|
144
144
|
from helmkit import load_monomer_library
|
|
145
|
-
from helmkit import
|
|
145
|
+
from helmkit import load_in_parallel
|
|
146
146
|
|
|
147
147
|
# Load your custom monomer data (optional)
|
|
148
148
|
custom_sdf_path = "/path/to/your/custom_monomers.sdf"
|
|
@@ -152,7 +152,7 @@ monomer_db = load_monomer_library(custom_sdf_path)
|
|
|
152
152
|
helm_strings = ["PEPTIDE1{A.R.G}$$$$", "PEPTIDE1{S.G.T}$$$$"]
|
|
153
153
|
|
|
154
154
|
# Process peptides in parallel
|
|
155
|
-
molecules =
|
|
155
|
+
molecules = load_in_parallel(helm_strings, monomer_db)
|
|
156
156
|
```
|
|
157
157
|
|
|
158
158
|
## Development Setup
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
+
from .molecule import load_in_parallel
|
|
1
2
|
from .molecule import load_monomer_library
|
|
2
|
-
from .molecule import load_peptides_in_parallel
|
|
3
3
|
from .molecule import Molecule
|
|
4
4
|
from .molecule import SequenceConstants
|
|
5
5
|
|
|
6
6
|
__all__ = [
|
|
7
7
|
"load_monomer_library",
|
|
8
|
-
"
|
|
8
|
+
"load_in_parallel",
|
|
9
9
|
"Molecule",
|
|
10
10
|
"SequenceConstants",
|
|
11
11
|
]
|
|
@@ -779,11 +779,11 @@ def _init_pool(monomer_df: MonomerLibrary):
|
|
|
779
779
|
_monomer_df = monomer_df
|
|
780
780
|
|
|
781
781
|
|
|
782
|
-
def
|
|
782
|
+
def _load_helm(helm: str) -> Molecule:
|
|
783
783
|
return Molecule(helm, _monomer_df)
|
|
784
784
|
|
|
785
785
|
|
|
786
|
-
def
|
|
786
|
+
def load_in_parallel(
|
|
787
787
|
helms: List[str],
|
|
788
788
|
monomer_df: Optional[MonomerLibrary] = None,
|
|
789
789
|
chunksize: Optional[int] = 256,
|
|
@@ -791,4 +791,4 @@ def load_peptides_in_parallel(
|
|
|
791
791
|
if monomer_df is None:
|
|
792
792
|
monomer_df = load_monomer_library()
|
|
793
793
|
with multiprocessing.Pool(initializer=_init_pool, initargs=(monomer_df,)) as pool:
|
|
794
|
-
return pool.map(
|
|
794
|
+
return pool.map(_load_helm, helms, chunksize=chunksize)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|