Skip to content

Commit 7e35fcf

Browse files
committed
follow Elanas illustrated guide and set the representative atom indices for distogram loss for nucleotides
1 parent ce95c87 commit 7e35fcf

File tree

2 files changed

+16
-8
lines changed

2 files changed

+16
-8
lines changed

alphafold3_pytorch/life.py

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -169,27 +169,31 @@ def is_unique(arr):
169169
first_atom_idx = 20,
170170
last_atom_idx = 1,
171171
hydroxyl_idx = 21,
172+
distogram_atom_idx = 4
172173
),
173174
C = dict(
174175
smile = 'C1C(C(OC1N2C=CC(=NC2=O)N)COP(=O)(O)O)O',
175176
complement = 'G',
176177
first_atom_idx = 17,
177178
last_atom_idx = 1,
178-
hydroxyl_idx = 19
179+
hydroxyl_idx = 19,
180+
distogram_atom_idx = 4
179181
),
180182
G = dict(
181183
smile = 'C1C(C(OC1N2C=NC3=C2N=C(NC3=O)N)COP(=O)(O)O)O',
182184
complement = 'C',
183185
first_atom_idx = 21,
184186
last_atom_idx = 1,
185-
hydroxyl_idx = 22
187+
hydroxyl_idx = 22,
188+
distogram_atom_idx = 4
186189
),
187190
T = dict(
188191
smile = 'CC1=CN(C(=O)NC1=O)C2CC(C(O2)COP(=O)(O)O)O',
189192
complement = 'A',
190193
first_atom_idx = 19,
191194
last_atom_idx = 11,
192-
hydroxyl_idx = 20
195+
hydroxyl_idx = 20,
196+
distogram_atom_idx = 9
193197
)
194198
)
195199

@@ -199,28 +203,32 @@ def is_unique(arr):
199203
complement = 'U',
200204
first_atom_idx = 19,
201205
last_atom_idx = 11,
202-
hydroxyl_idx = 20
206+
hydroxyl_idx = 20,
207+
distogram_atom_idx = 9
203208
),
204209
C = dict(
205210
smile = 'C1=CN(C(=O)N=C1N)C2C(C(C(O2)COP(=O)([O-])[O-])O)O',
206211
complement = 'G',
207212
first_atom_idx = 17,
208213
last_atom_idx = 10,
209-
hydroxyl_idx = 19
214+
hydroxyl_idx = 19,
215+
distogram_atom_idx = 8
210216
),
211217
G = dict(
212218
smile = 'C1=NC2=C(N1C3C(C(C(O3)COP(=O)(O)O)O)O)N=C(NC2=O)N',
213219
complement = 'C',
214220
first_atom_idx = 14,
215221
last_atom_idx = 7,
216-
hydroxyl_idx = 16
222+
hydroxyl_idx = 16,
223+
distogram_atom_idx = 5
217224
),
218225
U = dict(
219226
smile = 'C1=CN(C(=O)NC1=O)C2C(C(C(O2)COP(=O)(O)O)O)O',
220227
complement = 'A',
221228
first_atom_idx = 18,
222229
last_atom_idx = 10,
223-
hydroxyl_idx = 19
230+
hydroxyl_idx = 19,
231+
distogram_atom_idx = 8
224232
)
225233
)
226234

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "alphafold3-pytorch"
3-
version = "0.1.112"
3+
version = "0.1.114"
44
description = "Alphafold 3 - Pytorch"
55
authors = [
66
{ name = "Phil Wang", email = "[email protected]" }

0 commit comments

Comments
 (0)