boltz-vsynthes 1.0.18__py3-none-any.whl → 1.0.20__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/data/parse/pdb.py CHANGED
@@ -48,14 +48,13 @@ def parse_pdb(
48
48
  for pp in ppb.build_peptides(chain):
49
49
  seq = str(pp.get_sequence())
50
50
  if seq: # Only add if sequence is not empty
51
- molecule = {
51
+ sequences.append({
52
52
  "protein": {
53
53
  "id": chain.id,
54
54
  "sequence": seq,
55
55
  "modifications": [],
56
- },
57
- }
58
- sequences.append(molecule)
56
+ }
57
+ })
59
58
 
60
59
  data = {
61
60
  "sequences": sequences,
@@ -91,14 +91,13 @@ def parse_pdb_id(
91
91
  for pp in ppb.build_peptides(chain):
92
92
  seq = str(pp.get_sequence())
93
93
  if seq: # Only add if sequence is not empty
94
- molecule = {
94
+ sequences.append({
95
95
  "protein": {
96
96
  "id": chain.id,
97
97
  "sequence": seq,
98
98
  "modifications": [],
99
- },
100
- }
101
- sequences.append(molecule)
99
+ }
100
+ })
102
101
 
103
102
  data = {
104
103
  "sequences": sequences,
@@ -1024,13 +1024,13 @@ def parse_boltz_schema( # noqa: C901, PLR0915, PLR0912
1024
1024
  # This is a PDB ID
1025
1025
  from boltz.data.parse.pdb_download import parse_pdb_id
1026
1026
  target = parse_pdb_id(pdb_path.stem, ccd, mol_dir, pdb_path.parent)
1027
- # Get sequence from the first chain
1027
+ print(target)
1028
1028
  seq = target.sequences[0]["protein"]["sequence"]
1029
1029
  else:
1030
1030
  # This is a PDB file
1031
1031
  from boltz.data.parse.pdb import parse_pdb
1032
1032
  target = parse_pdb(pdb_path, ccd, mol_dir)
1033
- # Get sequence from the first chain
1033
+ print(target)
1034
1034
  seq = target.sequences[0]["protein"]["sequence"]
1035
1035
  else:
1036
1036
  msg = f"Protein must have either 'sequence' or 'pdb' field: {item}"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: boltz-vsynthes
3
- Version: 1.0.18
3
+ Version: 1.0.20
4
4
  Summary: Boltz for VSYNTHES
5
5
  Requires-Python: <3.13,>=3.10
6
6
  Description-Content-Type: text/markdown
@@ -38,9 +38,9 @@ boltz/data/parse/csv.py,sha256=Hcq8rJW2njczahEr8jfd_o-zxLaNSgJ3YIoC9srIqpw,2518
38
38
  boltz/data/parse/fasta.py,sha256=taI4s_CqPtyF0XaLJAsVAJHCL0GXm2g1g8Qeccdxikk,3906
39
39
  boltz/data/parse/mmcif.py,sha256=25kEXCkx-OuaawAs7cdz0fxdRu5_CCO0AV00u84PrjQ,36822
40
40
  boltz/data/parse/mmcif_with_constraints.py,sha256=WHYZckSqUwu-Nb9vmVmxHmC7uxwVrF7AVUeVKsc5wGQ,51473
41
- boltz/data/parse/pdb.py,sha256=R6rDCh6AKLn7n9ELltF1wDORDtR1CFgFnjFdYXKJCNg,1697
42
- boltz/data/parse/pdb_download.py,sha256=RrrRzsJtc8a3eaOtIHc_yDq8TfFl-JgK6-vZHtKG3QI,2810
43
- boltz/data/parse/schema.py,sha256=pq9PRrm3pyaOH0kJEjtG-rVHEPpr_KmiykvxKsMWnn0,60979
41
+ boltz/data/parse/pdb.py,sha256=X4u1ZzSFk0Xy8LRbCCMVlbAzWeGddo2O4SQuk_WyS-k,1656
42
+ boltz/data/parse/pdb_download.py,sha256=YLxCidVkRLlvZ0uCCSnRTP7Yz1-AYv9hz_SO3_xecWk,2769
43
+ boltz/data/parse/schema.py,sha256=dytzJ8j6AyEJqXNt0_xVlLndLb5h_5b-87njuGetfTI,60935
44
44
  boltz/data/parse/sdf.py,sha256=z7XTH-a38Rq-grC8bEZUPxGmLyP-g17LCxYWzVkBS_0,2107
45
45
  boltz/data/parse/yaml.py,sha256=GRFRMtDD4PQ4PIpA_S1jj0vRaEu2LlZd_g4rN1zUrNo,1505
46
46
  boltz/data/sample/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -107,9 +107,9 @@ boltz/model/optim/scheduler.py,sha256=nB4jz0CZ4pR4n08LQngExL_pNycIdYI8AXVoHPnZWQ
107
107
  boltz/model/potentials/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
108
108
  boltz/model/potentials/potentials.py,sha256=vev8Vjfs-ML1hyrdv_R8DynG4wSFahJ6nzPWp7CYQqw,17507
109
109
  boltz/model/potentials/schedules.py,sha256=m7XJjfuF9uTX3bR9VisXv1rvzJjxiD8PobXRpcBBu1c,968
110
- boltz_vsynthes-1.0.18.dist-info/licenses/LICENSE,sha256=8GZ_1eZsUeG6jdqgJJxtciWzADfgLEV4LY8sKUOsJhc,1102
111
- boltz_vsynthes-1.0.18.dist-info/METADATA,sha256=ocZW85OesAZkAavTbjd3wUKC44LP3UPTHKtoYfjwdic,7171
112
- boltz_vsynthes-1.0.18.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
113
- boltz_vsynthes-1.0.18.dist-info/entry_points.txt,sha256=n5a5I35ntu9lmyr16oZgHPFY0b0YxjiixY7m7nbMTLc,41
114
- boltz_vsynthes-1.0.18.dist-info/top_level.txt,sha256=MgU3Jfb-ctWm07YGMts68PMjSh9v26D0gfG3dFRmVFA,6
115
- boltz_vsynthes-1.0.18.dist-info/RECORD,,
110
+ boltz_vsynthes-1.0.20.dist-info/licenses/LICENSE,sha256=8GZ_1eZsUeG6jdqgJJxtciWzADfgLEV4LY8sKUOsJhc,1102
111
+ boltz_vsynthes-1.0.20.dist-info/METADATA,sha256=4way_pz2YRQBhx1oBJaW0PoiPRbVV8asO3x9Zo28IiE,7171
112
+ boltz_vsynthes-1.0.20.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
113
+ boltz_vsynthes-1.0.20.dist-info/entry_points.txt,sha256=n5a5I35ntu9lmyr16oZgHPFY0b0YxjiixY7m7nbMTLc,41
114
+ boltz_vsynthes-1.0.20.dist-info/top_level.txt,sha256=MgU3Jfb-ctWm07YGMts68PMjSh9v26D0gfG3dFRmVFA,6
115
+ boltz_vsynthes-1.0.20.dist-info/RECORD,,