boltz-vsynthes 1.0.6__tar.gz → 1.0.7__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.
- {boltz_vsynthes-1.0.6/src/boltz_vsynthes.egg-info → boltz_vsynthes-1.0.7}/PKG-INFO +1 -1
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/pyproject.toml +1 -1
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/data/parse/schema.py +43 -4
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7/src/boltz_vsynthes.egg-info}/PKG-INFO +1 -1
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/LICENSE +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/README.md +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/setup.cfg +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/__init__.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/data/__init__.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/data/const.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/data/crop/__init__.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/data/crop/affinity.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/data/crop/boltz.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/data/crop/cropper.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/data/feature/__init__.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/data/feature/featurizer.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/data/feature/featurizerv2.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/data/feature/symmetry.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/data/filter/__init__.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/data/filter/dynamic/__init__.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/data/filter/dynamic/date.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/data/filter/dynamic/filter.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/data/filter/dynamic/max_residues.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/data/filter/dynamic/resolution.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/data/filter/dynamic/size.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/data/filter/dynamic/subset.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/data/filter/static/__init__.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/data/filter/static/filter.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/data/filter/static/ligand.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/data/filter/static/polymer.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/data/module/__init__.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/data/module/inference.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/data/module/inferencev2.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/data/module/training.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/data/module/trainingv2.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/data/mol.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/data/msa/__init__.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/data/msa/mmseqs2.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/data/pad.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/data/parse/__init__.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/data/parse/a3m.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/data/parse/csv.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/data/parse/fasta.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/data/parse/mmcif.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/data/parse/mmcif_with_constraints.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/data/parse/yaml.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/data/sample/__init__.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/data/sample/cluster.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/data/sample/distillation.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/data/sample/random.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/data/sample/sampler.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/data/tokenize/__init__.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/data/tokenize/boltz.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/data/tokenize/boltz2.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/data/tokenize/tokenizer.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/data/types.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/data/write/__init__.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/data/write/mmcif.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/data/write/pdb.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/data/write/utils.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/data/write/writer.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/main.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/model/__init__.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/model/layers/__init__.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/model/layers/attention.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/model/layers/attentionv2.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/model/layers/confidence_utils.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/model/layers/dropout.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/model/layers/initialize.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/model/layers/outer_product_mean.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/model/layers/pair_averaging.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/model/layers/pairformer.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/model/layers/relative.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/model/layers/transition.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/model/layers/triangular_attention/__init__.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/model/layers/triangular_attention/attention.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/model/layers/triangular_attention/primitives.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/model/layers/triangular_attention/utils.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/model/layers/triangular_mult.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/model/loss/__init__.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/model/loss/bfactor.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/model/loss/confidence.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/model/loss/confidencev2.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/model/loss/diffusion.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/model/loss/diffusionv2.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/model/loss/distogram.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/model/loss/distogramv2.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/model/loss/validation.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/model/models/__init__.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/model/models/boltz1.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/model/models/boltz2.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/model/modules/__init__.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/model/modules/affinity.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/model/modules/confidence.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/model/modules/confidence_utils.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/model/modules/confidencev2.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/model/modules/diffusion.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/model/modules/diffusion_conditioning.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/model/modules/diffusionv2.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/model/modules/encoders.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/model/modules/encodersv2.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/model/modules/transformers.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/model/modules/transformersv2.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/model/modules/trunk.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/model/modules/trunkv2.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/model/modules/utils.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/model/optim/__init__.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/model/optim/ema.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/model/optim/scheduler.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/model/potentials/__init__.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/model/potentials/potentials.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/model/potentials/schedules.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz_vsynthes.egg-info/SOURCES.txt +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz_vsynthes.egg-info/dependency_links.txt +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz_vsynthes.egg-info/entry_points.txt +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz_vsynthes.egg-info/requires.txt +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz_vsynthes.egg-info/top_level.txt +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/tests/test_kernels.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/tests/test_regression.py +0 -0
- {boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/tests/test_utils.py +0 -0
@@ -1008,7 +1008,7 @@ def parse_boltz_schema( # noqa: C901, PLR0915, PLR0912
|
|
1008
1008
|
|
1009
1009
|
# Keep track of ligand IDs
|
1010
1010
|
ligand_id = 1
|
1011
|
-
ligand_id_map = {}
|
1011
|
+
ligand_id_map = {}
|
1012
1012
|
|
1013
1013
|
# Parse sequences
|
1014
1014
|
for item in schema["sequences"]:
|
@@ -1067,6 +1067,9 @@ def parse_boltz_schema( # noqa: C901, PLR0915, PLR0912
|
|
1067
1067
|
ligand_id += 1
|
1068
1068
|
else:
|
1069
1069
|
seq = str(item[entity_type]["ccd"])
|
1070
|
+
# For CCD ligands, use the CCD code as the internal ID
|
1071
|
+
for id in entity_id:
|
1072
|
+
ligand_id_map[id] = seq
|
1070
1073
|
|
1071
1074
|
# Group items by entity
|
1072
1075
|
items_to_group.setdefault((entity_type, seq), []).append(item)
|
@@ -1080,12 +1083,48 @@ def parse_boltz_schema( # noqa: C901, PLR0915, PLR0912
|
|
1080
1083
|
# Check if any affinity ligand is present
|
1081
1084
|
affinity_ligands = set()
|
1082
1085
|
properties = schema.get("properties", [])
|
1086
|
+
|
1087
|
+
# Get all ligands
|
1088
|
+
ligands = []
|
1089
|
+
for item in schema["sequences"]:
|
1090
|
+
entity_type = list(item.keys())[0]
|
1091
|
+
if entity_type == "ligand":
|
1092
|
+
entity_id = item[entity_type]["id"]
|
1093
|
+
entity_id = [entity_id] if isinstance(entity_id, str) else entity_id
|
1094
|
+
ligands.extend(entity_id)
|
1095
|
+
|
1096
|
+
# Get user-specified binders
|
1097
|
+
specified_binders = set()
|
1083
1098
|
for prop in properties:
|
1084
1099
|
if "affinity" in prop:
|
1085
1100
|
binder = prop["affinity"]["binder"]
|
1086
|
-
|
1087
|
-
|
1088
|
-
|
1101
|
+
specified_binders.add(binder)
|
1102
|
+
|
1103
|
+
# If no binders specified, use all proteins
|
1104
|
+
if not specified_binders:
|
1105
|
+
for item in schema["sequences"]:
|
1106
|
+
entity_type = list(item.keys())[0]
|
1107
|
+
if entity_type == "protein":
|
1108
|
+
entity_id = item[entity_type]["id"]
|
1109
|
+
entity_id = [entity_id] if isinstance(entity_id, str) else entity_id
|
1110
|
+
specified_binders.update(entity_id)
|
1111
|
+
|
1112
|
+
# Generate protein-ligand pairs for specified binders
|
1113
|
+
new_properties = []
|
1114
|
+
for binder in specified_binders:
|
1115
|
+
for ligand in ligands:
|
1116
|
+
if ligand in ligand_id_map:
|
1117
|
+
ligand = ligand_id_map[ligand] # Convert to internal LIG1, LIG2, etc.
|
1118
|
+
affinity_ligands.add(ligand)
|
1119
|
+
new_properties.append({
|
1120
|
+
"affinity": {
|
1121
|
+
"binder": binder,
|
1122
|
+
"ligand": ligand
|
1123
|
+
}
|
1124
|
+
})
|
1125
|
+
|
1126
|
+
# Update schema with generated properties
|
1127
|
+
schema["properties"] = new_properties
|
1089
1128
|
|
1090
1129
|
# Parse each group
|
1091
1130
|
chains = []
|
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
|
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
|
{boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/data/parse/mmcif_with_constraints.py
RENAMED
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
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/model/layers/triangular_attention/utils.py
RENAMED
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
|
{boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz/model/modules/diffusion_conditioning.py
RENAMED
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
|
{boltz_vsynthes-1.0.6 → boltz_vsynthes-1.0.7}/src/boltz_vsynthes.egg-info/dependency_links.txt
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|