helmkit 0.7.2__tar.gz → 0.7.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.7.2 → helmkit-0.7.3}/PKG-INFO +1 -1
- {helmkit-0.7.2 → helmkit-0.7.3}/pyproject.toml +1 -1
- {helmkit-0.7.2 → helmkit-0.7.3}/src/helmkit/molecule.py +11 -17
- {helmkit-0.7.2 → helmkit-0.7.3}/uv.lock +17 -17
- {helmkit-0.7.2 → helmkit-0.7.3}/.gitignore +0 -0
- {helmkit-0.7.2 → helmkit-0.7.3}/.python-version +0 -0
- {helmkit-0.7.2 → helmkit-0.7.3}/LICENSE +0 -0
- {helmkit-0.7.2 → helmkit-0.7.3}/README.md +0 -0
- {helmkit-0.7.2 → helmkit-0.7.3}/src/helmkit/__init__.py +0 -0
- {helmkit-0.7.2 → helmkit-0.7.3}/src/helmkit/data/monomers.sdf +0 -0
- {helmkit-0.7.2 → helmkit-0.7.3}/src/helmkit/py.typed +0 -0
|
@@ -89,7 +89,6 @@ class MonomerData(TypedDict):
|
|
|
89
89
|
m_RgroupIdx: list[int | None]
|
|
90
90
|
m_attachmentPointIdx: list[int | None]
|
|
91
91
|
m_type: str
|
|
92
|
-
m_subtype: str
|
|
93
92
|
m_abbr: str
|
|
94
93
|
|
|
95
94
|
|
|
@@ -123,14 +122,17 @@ def load_monomer_library(library_path: str | None = None) -> MonomerLibrary:
|
|
|
123
122
|
rgroup_idx = parse_comma_separated_property(mol, "m_RgroupIdx", int)
|
|
124
123
|
attachment_point_idx = infer_attachment_points(mol, rgroup_idx)
|
|
125
124
|
|
|
125
|
+
abbr = get_molecule_property(mol, "m_abbr", "")
|
|
126
|
+
if not abbr:
|
|
127
|
+
continue
|
|
128
|
+
|
|
126
129
|
monomers_dict[m_type][symbol] = {
|
|
127
130
|
"m_romol": mol,
|
|
128
131
|
"m_Rgroups": rgroups,
|
|
129
132
|
"m_RgroupIdx": rgroup_idx,
|
|
130
133
|
"m_attachmentPointIdx": attachment_point_idx,
|
|
131
134
|
"m_type": m_type,
|
|
132
|
-
"
|
|
133
|
-
"m_abbr": get_molecule_property(mol, "m_abbr", ""),
|
|
135
|
+
"m_abbr": abbr,
|
|
134
136
|
}
|
|
135
137
|
|
|
136
138
|
return monomers_dict
|
|
@@ -224,12 +226,9 @@ def _create_missing_monomer(monomer_name: str, m_type: str = "aa") -> MonomerDat
|
|
|
224
226
|
rgroup_idx_full[1] = new_idx
|
|
225
227
|
attachment_points[1] = attachment_id
|
|
226
228
|
|
|
227
|
-
mol.SetProp("m_name", monomer_name)
|
|
228
|
-
|
|
229
229
|
mol.SetProp("symbol", monomer_name)
|
|
230
230
|
mol.SetProp("m_abbr", monomer_name)
|
|
231
231
|
mol.SetProp("m_type", m_type)
|
|
232
|
-
mol.SetProp("m_subtype", "non-natural" if m_type == "aa" else "")
|
|
233
232
|
mol.SetProp("m_RgroupIdx", ",".join(map(str, rgroup_idx_full)))
|
|
234
233
|
mol.SetProp("m_Rgroups", ",".join(map(str, rgroup_vals)))
|
|
235
234
|
mol.SetProp("m_attachmentPointIdx", ",".join(map(str, attachment_points)))
|
|
@@ -241,7 +240,6 @@ def _create_missing_monomer(monomer_name: str, m_type: str = "aa") -> MonomerDat
|
|
|
241
240
|
"m_RgroupIdx": rgroup_idx_full,
|
|
242
241
|
"m_attachmentPointIdx": attachment_points,
|
|
243
242
|
"m_type": m_type,
|
|
244
|
-
"m_subtype": "non-natural" if m_type == "aa" else "",
|
|
245
243
|
"m_abbr": monomer_name,
|
|
246
244
|
}
|
|
247
245
|
|
|
@@ -385,15 +383,11 @@ class Molecule:
|
|
|
385
383
|
return None
|
|
386
384
|
|
|
387
385
|
return {
|
|
388
|
-
"m_name": monomer_name,
|
|
389
|
-
"m_chainID": chain_id,
|
|
390
|
-
"m_resID": residue_idx,
|
|
391
386
|
"m_romol": monomer_info["m_romol"],
|
|
392
387
|
"m_Rgroups": monomer_info["m_Rgroups"][:],
|
|
393
388
|
"m_RgroupIdx": monomer_info["m_RgroupIdx"],
|
|
394
389
|
"m_attachmentPointIdx": monomer_info["m_attachmentPointIdx"],
|
|
395
390
|
"m_type": monomer_info["m_type"],
|
|
396
|
-
"m_subtype": monomer_info["m_subtype"],
|
|
397
391
|
"m_abbr": monomer_info["m_abbr"],
|
|
398
392
|
}
|
|
399
393
|
|
|
@@ -464,12 +458,12 @@ class Molecule:
|
|
|
464
458
|
attachment_point1 = monomer1["m_attachmentPointIdx"][1]
|
|
465
459
|
if attachment_point1 is None:
|
|
466
460
|
raise ValueError(
|
|
467
|
-
f"R-group 2 is not present in monomer {monomer_idx} ({monomer1['
|
|
461
|
+
f"R-group 2 is not present in monomer {monomer_idx} ({monomer1['m_abbr']}). Check monomers."
|
|
468
462
|
)
|
|
469
463
|
attachment_point2 = monomer2["m_attachmentPointIdx"][0]
|
|
470
464
|
if attachment_point2 is None:
|
|
471
465
|
raise ValueError(
|
|
472
|
-
f"R-group 1 is not present in monomer {monomer_idx + 1} ({monomer2['
|
|
466
|
+
f"R-group 1 is not present in monomer {monomer_idx + 1} ({monomer2['m_abbr']}). Check monomers."
|
|
473
467
|
)
|
|
474
468
|
|
|
475
469
|
self.bondlist.append([
|
|
@@ -518,12 +512,12 @@ class Molecule:
|
|
|
518
512
|
attachment_point1 = None
|
|
519
513
|
if attachment_point1 is None:
|
|
520
514
|
raise ValueError(
|
|
521
|
-
f"R-group {r_index + 1} is not present in monomer {prev_monomer} ({monomer1['
|
|
515
|
+
f"R-group {r_index + 1} is not present in monomer {prev_monomer} ({monomer1['m_abbr']}). Check monomers."
|
|
522
516
|
)
|
|
523
517
|
attachment_point2 = monomer2["m_attachmentPointIdx"][0]
|
|
524
518
|
if attachment_point2 is None:
|
|
525
519
|
raise ValueError(
|
|
526
|
-
f"R-group 1 is not present in monomer {monomer_idx} ({monomer2['
|
|
520
|
+
f"R-group 1 is not present in monomer {monomer_idx} ({monomer2['m_abbr']}). Check monomers."
|
|
527
521
|
)
|
|
528
522
|
|
|
529
523
|
self.bondlist.append([
|
|
@@ -609,12 +603,12 @@ class Molecule:
|
|
|
609
603
|
attachment_idx1 = monomer1["m_attachmentPointIdx"][rgroup1]
|
|
610
604
|
if attachment_idx1 is None:
|
|
611
605
|
raise ValueError(
|
|
612
|
-
f"R-group {rgroup1} is not present in monomer {monomer_idx1 + 1} ({monomer1['
|
|
606
|
+
f"R-group {rgroup1} is not present in monomer {monomer_idx1 + 1} ({monomer1['m_abbr']}). Check connections."
|
|
613
607
|
)
|
|
614
608
|
attachment_idx2 = monomer2["m_attachmentPointIdx"][rgroup2]
|
|
615
609
|
if attachment_idx2 is None:
|
|
616
610
|
raise ValueError(
|
|
617
|
-
f"R-group {rgroup2} is not present in monomer {monomer_idx2 + 1} ({monomer2['
|
|
611
|
+
f"R-group {rgroup2} is not present in monomer {monomer_idx2 + 1} ({monomer2['m_abbr']}). Check connections."
|
|
618
612
|
)
|
|
619
613
|
|
|
620
614
|
self.bondlist.append([
|
|
@@ -165,7 +165,7 @@ wheels = [
|
|
|
165
165
|
|
|
166
166
|
[[package]]
|
|
167
167
|
name = "helmkit"
|
|
168
|
-
version = "0.7.
|
|
168
|
+
version = "0.7.3"
|
|
169
169
|
source = { editable = "." }
|
|
170
170
|
dependencies = [
|
|
171
171
|
{ name = "rdkit" },
|
|
@@ -553,30 +553,30 @@ wheels = [
|
|
|
553
553
|
|
|
554
554
|
[[package]]
|
|
555
555
|
name = "polars"
|
|
556
|
-
version = "1.43.
|
|
556
|
+
version = "1.43.1"
|
|
557
557
|
source = { registry = "https://pypi.org/simple" }
|
|
558
558
|
dependencies = [
|
|
559
559
|
{ name = "polars-runtime-32" },
|
|
560
560
|
]
|
|
561
|
-
sdist = { url = "https://files.pythonhosted.org/packages/
|
|
561
|
+
sdist = { url = "https://files.pythonhosted.org/packages/32/79/720f4901230992f359653717e7cc3596731ed36e1a27be351d128ee0c3b7/polars-1.43.1.tar.gz", hash = "sha256:cb07ff3ad61c7b28043e6176e5fdb04a294346920b7f033deeb84116b4911883", size = 750058, upload-time = "2026-07-27T12:07:58.288Z" }
|
|
562
562
|
wheels = [
|
|
563
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
563
|
+
{ url = "https://files.pythonhosted.org/packages/f3/7c/d74a56d5afae8e91924aad91cba621b286a05307e88569ecab666b3055b3/polars-1.43.1-py3-none-any.whl", hash = "sha256:f6ecd9184956f46442ddfcf6185423401475bbeffea59e238de8b9ecedacf16c", size = 846844, upload-time = "2026-07-27T12:06:33.913Z" },
|
|
564
564
|
]
|
|
565
565
|
|
|
566
566
|
[[package]]
|
|
567
567
|
name = "polars-runtime-32"
|
|
568
|
-
version = "1.43.
|
|
568
|
+
version = "1.43.1"
|
|
569
569
|
source = { registry = "https://pypi.org/simple" }
|
|
570
|
-
sdist = { url = "https://files.pythonhosted.org/packages/
|
|
570
|
+
sdist = { url = "https://files.pythonhosted.org/packages/60/44/390c9e9eef393991d907b7067264ddaa685b550a5bab94991765459a5e64/polars_runtime_32-1.43.1.tar.gz", hash = "sha256:2931c71fce2080ade2fc743207b3d70ea659f694e0273b6bacfe551ad6ce43e0", size = 3093618, upload-time = "2026-07-27T12:07:59.492Z" }
|
|
571
571
|
wheels = [
|
|
572
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
573
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
574
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
575
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
576
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
577
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
578
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
579
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
572
|
+
{ url = "https://files.pythonhosted.org/packages/72/a5/72c075ff95b31807c3cf497757bdd87f81b5b8869e60a22ec532238bac99/polars_runtime_32-1.43.1-cp310-abi3-macosx_10_12_x86_64.whl", hash = "sha256:ddc7bca81e3616b74eba597bff09acbe3567e5b66798cc5305adc2e91a36e31e", size = 53084414, upload-time = "2026-07-27T12:06:36.283Z" },
|
|
573
|
+
{ url = "https://files.pythonhosted.org/packages/b3/8f/a34347323459116becbc3b6223bc55b25a1be705d6064decac6b7aa0c769/polars_runtime_32-1.43.1-cp310-abi3-macosx_11_0_arm64.whl", hash = "sha256:3bdaeb8b017be11d7d2f8a938ae98cb4135f90de451771c2bac4d21dca2f7cf4", size = 47514709, upload-time = "2026-07-27T12:06:39.63Z" },
|
|
574
|
+
{ url = "https://files.pythonhosted.org/packages/83/7e/a0a22740388facc22f2faa81787b4150231a22dad42ad02b2c6efdba0d0a/polars_runtime_32-1.43.1-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:def1c19a339903ab39f1d134a69a9e8b02feb4f800f547809fbfed458ccb135e", size = 51351657, upload-time = "2026-07-27T12:06:44.701Z" },
|
|
575
|
+
{ url = "https://files.pythonhosted.org/packages/34/f1/4a07318711eeb3a27c62c916751ca45f18df6b0891d18aba68ffd9c18a76/polars_runtime_32-1.43.1-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:4f323e5c4aa0f068c2c911bd01f1ecdc25c1f3a501879b29550a41ab95490965", size = 57289250, upload-time = "2026-07-27T12:06:48.173Z" },
|
|
576
|
+
{ url = "https://files.pythonhosted.org/packages/26/74/c6b55dbb4db2574a9478bf1c2aa04624ea924fc44dc14b64050be462db7e/polars_runtime_32-1.43.1-cp310-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:b93d4bf59dcb0bac68ab2458890f1e8431d17369e59efc88625f0d92b22cad92", size = 51505657, upload-time = "2026-07-27T12:06:51.557Z" },
|
|
577
|
+
{ url = "https://files.pythonhosted.org/packages/43/2e/12e987b0f311f20e41f904acc452824af3009579d60c878a5435ae1e9f0a/polars_runtime_32-1.43.1-cp310-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:977b4620d837f3ca0d131f858ac1bd72e2ae10a5e85a6cc27fddc71fbdb5005d", size = 55189721, upload-time = "2026-07-27T12:06:54.68Z" },
|
|
578
|
+
{ url = "https://files.pythonhosted.org/packages/3a/f6/5bfba6f40a08b2b1bbe0507e9cc638ebada2dceaece45f9d87a905c57de5/polars_runtime_32-1.43.1-cp310-abi3-win_amd64.whl", hash = "sha256:fa557938e9113c12d59c56df8d7f7e1a411cc1954df0dafbb05900136c6329e7", size = 52566672, upload-time = "2026-07-27T12:06:57.725Z" },
|
|
579
|
+
{ url = "https://files.pythonhosted.org/packages/f9/5e/41df901e2684e8857bdffd458c8157d237c701df9f3f922d101075f97724/polars_runtime_32-1.43.1-cp310-abi3-win_arm64.whl", hash = "sha256:cc186bad9f33b71f66ee6cc3ba2146d64315a120b0e988814d6fb1a37f0cc9e9", size = 46575356, upload-time = "2026-07-27T12:07:00.856Z" },
|
|
580
580
|
]
|
|
581
581
|
|
|
582
582
|
[[package]]
|
|
@@ -750,14 +750,14 @@ wheels = [
|
|
|
750
750
|
|
|
751
751
|
[[package]]
|
|
752
752
|
name = "tqdm"
|
|
753
|
-
version = "4.
|
|
753
|
+
version = "4.70.0"
|
|
754
754
|
source = { registry = "https://pypi.org/simple" }
|
|
755
755
|
dependencies = [
|
|
756
756
|
{ name = "colorama", marker = "sys_platform == 'win32'" },
|
|
757
757
|
]
|
|
758
|
-
sdist = { url = "https://files.pythonhosted.org/packages/
|
|
758
|
+
sdist = { url = "https://files.pythonhosted.org/packages/21/3b/6c24bec5be5e743ffd99576daa5cc077722fc7d5bbc00bd133fa0c698dc6/tqdm-4.70.0.tar.gz", hash = "sha256:55b0b0dbd97462d06ebee91e4dac24ed4d4702be82b24f07e6c1d27e08cea220", size = 795438, upload-time = "2026-07-27T11:33:15.271Z" }
|
|
759
759
|
wheels = [
|
|
760
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
760
|
+
{ url = "https://files.pythonhosted.org/packages/f9/1c/01bfd571a64e7f270e6bab5e33777debe0edc56759233ce84f27dec92d14/tqdm-4.70.0-py3-none-any.whl", hash = "sha256:7f585706bfddbdebf89daac705b2dfcc16890130727d3197ca62c732b4310953", size = 80184, upload-time = "2026-07-27T11:33:13.167Z" },
|
|
761
761
|
]
|
|
762
762
|
|
|
763
763
|
[[package]]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|