boltz-vsynthes 0.0.11__py3-none-any.whl → 0.0.12__py3-none-any.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.
- boltz/utils/sdf_to_pre_affinity_npz.py +35 -0
- {boltz_vsynthes-0.0.11.dist-info → boltz_vsynthes-0.0.12.dist-info}/METADATA +1 -1
- {boltz_vsynthes-0.0.11.dist-info → boltz_vsynthes-0.0.12.dist-info}/RECORD +7 -6
- {boltz_vsynthes-0.0.11.dist-info → boltz_vsynthes-0.0.12.dist-info}/entry_points.txt +1 -0
- {boltz_vsynthes-0.0.11.dist-info → boltz_vsynthes-0.0.12.dist-info}/WHEEL +0 -0
- {boltz_vsynthes-0.0.11.dist-info → boltz_vsynthes-0.0.12.dist-info}/licenses/LICENSE +0 -0
- {boltz_vsynthes-0.0.11.dist-info → boltz_vsynthes-0.0.12.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,35 @@
|
|
1
|
+
#!/usr/bin/env python3
|
2
|
+
"""
|
3
|
+
boltz-sdf-to-pre-affinity: Convert a docked SDF file (protein-ligand complex) to Boltz pre_affinity_[ligand_id].npz format.
|
4
|
+
|
5
|
+
Usage:
|
6
|
+
boltz-sdf-to-pre-affinity --sdf docked_pose.sdf --ligand_id ligand1 --output pre_affinity_ligand1.npz
|
7
|
+
|
8
|
+
This command is available after installing boltz with pip.
|
9
|
+
"""
|
10
|
+
import argparse
|
11
|
+
from pathlib import Path
|
12
|
+
|
13
|
+
from boltz.data.parse.sdf import parse_sdf
|
14
|
+
from boltz.data.types import StructureV2
|
15
|
+
|
16
|
+
|
17
|
+
def main():
|
18
|
+
parser = argparse.ArgumentParser(description="Convert SDF to Boltz pre_affinity_*.npz format.")
|
19
|
+
parser.add_argument('--sdf', type=str, required=True, help='Input SDF file (protein-ligand complex)')
|
20
|
+
parser.add_argument('--ligand_id', type=str, required=True, help='Ligand ID (used in output filename)')
|
21
|
+
parser.add_argument('--output', type=str, required=True, help='Output .npz file path')
|
22
|
+
args = parser.parse_args()
|
23
|
+
|
24
|
+
sdf_path = Path(args.sdf)
|
25
|
+
output_path = Path(args.output)
|
26
|
+
|
27
|
+
# Parse the SDF file to StructureV2
|
28
|
+
structure: StructureV2 = parse_sdf(sdf_path)
|
29
|
+
|
30
|
+
# Save as pre_affinity_[ligand_id].npz
|
31
|
+
structure.dump(output_path)
|
32
|
+
print(f"Saved: {output_path}")
|
33
|
+
|
34
|
+
if __name__ == "__main__":
|
35
|
+
main()
|
@@ -108,10 +108,11 @@ boltz/model/potentials/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3
|
|
108
108
|
boltz/model/potentials/potentials.py,sha256=vev8Vjfs-ML1hyrdv_R8DynG4wSFahJ6nzPWp7CYQqw,17507
|
109
109
|
boltz/model/potentials/schedules.py,sha256=m7XJjfuF9uTX3bR9VisXv1rvzJjxiD8PobXRpcBBu1c,968
|
110
110
|
boltz/utils/sdf_splitter.py,sha256=ZHn_syOcmm-fDnJ3YEGyGv_vYz2IRzUW7vbbMSU2JBY,2108
|
111
|
+
boltz/utils/sdf_to_pre_affinity_npz.py,sha256=ev0s2pS8NoB-_3BkSjRKk3GMnqjOxTRCH-r9avKYGOg,1212
|
111
112
|
boltz/utils/yaml_generator.py,sha256=ermWIG-BE6nNWHFvpEwpk92N9J-YATpGXZGLvD1I2oQ,4012
|
112
|
-
boltz_vsynthes-0.0.
|
113
|
-
boltz_vsynthes-0.0.
|
114
|
-
boltz_vsynthes-0.0.
|
115
|
-
boltz_vsynthes-0.0.
|
116
|
-
boltz_vsynthes-0.0.
|
117
|
-
boltz_vsynthes-0.0.
|
113
|
+
boltz_vsynthes-0.0.12.dist-info/licenses/LICENSE,sha256=8GZ_1eZsUeG6jdqgJJxtciWzADfgLEV4LY8sKUOsJhc,1102
|
114
|
+
boltz_vsynthes-0.0.12.dist-info/METADATA,sha256=XPcHZExavOK9oz8BaZnp31f-acFOXbCKwmDORbDxaP8,7235
|
115
|
+
boltz_vsynthes-0.0.12.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
116
|
+
boltz_vsynthes-0.0.12.dist-info/entry_points.txt,sha256=WlXNdHTJF1ahGN-H1QpgMbZm_5SobXY05eiuT8buycw,212
|
117
|
+
boltz_vsynthes-0.0.12.dist-info/top_level.txt,sha256=MgU3Jfb-ctWm07YGMts68PMjSh9v26D0gfG3dFRmVFA,6
|
118
|
+
boltz_vsynthes-0.0.12.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|