helmkit 0.5.2__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: helmkit
3
- Version: 0.5.2
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 load_peptides_in_parallel
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 = load_peptides_in_parallel(helm_strings, monomer_db)
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 load_peptides_in_parallel
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 = load_peptides_in_parallel(helm_strings, monomer_db)
155
+ molecules = load_in_parallel(helm_strings, monomer_db)
156
156
  ```
157
157
 
158
158
  ## Development Setup
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "helmkit"
3
- version = "0.5.2"
3
+ version = "0.6.0"
4
4
  description = "Parse HELM strings into RDKit molecules"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.11"
@@ -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
- "load_peptides_in_parallel",
8
+ "load_in_parallel",
9
9
  "Molecule",
10
10
  "SequenceConstants",
11
11
  ]
@@ -32960,8 +32960,8 @@ MolEngine07221613482D
32960
32960
  4 5 1 0 0 0 0
32961
32961
  5 1 1 0 0 0 0
32962
32962
  2 6 1 6 0 0 0
32963
- 1 7 1 1 0 0 0
32964
- 4 8 1 1 0 0 0
32963
+ 1 7 1 0 0 0 0
32964
+ 4 8 1 0 0 0 0
32965
32965
  7 9 1 0 0 0 0
32966
32966
  9 10 1 0 0 0 0
32967
32967
  6 11 1 0 0 0 0
@@ -37330,8 +37330,8 @@ MolEngine07221613482D
37330
37330
  4 5 1 0 0 0 0
37331
37331
  5 1 1 0 0 0 0
37332
37332
  2 6 1 6 0 0 0
37333
- 1 7 1 1 0 0 0
37334
- 4 8 1 1 0 0 0
37333
+ 1 7 1 0 0 0 0
37334
+ 4 8 1 0 0 0 0
37335
37335
  7 9 1 0 0 0 0
37336
37336
  9 10 1 0 0 0 0
37337
37337
  6 11 1 0 0 0 0
@@ -37960,8 +37960,8 @@ MolEngine07221613482D
37960
37960
  4 5 1 0 0 0 0
37961
37961
  5 1 1 0 0 0 0
37962
37962
  2 6 1 6 0 0 0
37963
- 1 7 1 1 0 0 0
37964
- 4 8 1 1 0 0 0
37963
+ 1 7 1 0 0 0 0
37964
+ 4 8 1 0 0 0 0
37965
37965
  7 9 1 0 0 0 0
37966
37966
  9 10 1 0 0 0 0
37967
37967
  6 11 1 0 0 0 0
@@ -779,11 +779,11 @@ def _init_pool(monomer_df: MonomerLibrary):
779
779
  _monomer_df = monomer_df
780
780
 
781
781
 
782
- def _load_peptide(helm: str) -> Molecule:
782
+ def _load_helm(helm: str) -> Molecule:
783
783
  return Molecule(helm, _monomer_df)
784
784
 
785
785
 
786
- def load_peptides_in_parallel(
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(_load_peptide, helms, chunksize=chunksize)
794
+ return pool.map(_load_helm, helms, chunksize=chunksize)
@@ -196,7 +196,7 @@ wheels = [
196
196
 
197
197
  [[package]]
198
198
  name = "helmkit"
199
- version = "0.5.2"
199
+ version = "0.6.0"
200
200
  source = { editable = "." }
201
201
  dependencies = [
202
202
  { name = "rdkit" },
File without changes
File without changes
File without changes
File without changes