Replies: 2 comments
-
Thanks for flagging these issues! We'll fix the lddt head in future versions of esmfold. |
Beta Was this translation helpful? Give feedback.
-
I was going to post a similar question regarding pLDDT differences with AF2. While I generally don't see a large range of pLDDT variation for ATOMS in any given reside, instances exist Here's a random example from an ESMfold prediction I just ran:
How should I best compare the ESMfold model to an AF model here?--average over all the atoms? Consider only the alpha carbon? Seems like a highly confident backbone prediction should be more meaningful that a much lower confident side chain prediction (since that position will probalby change upon any post-modeling relaxation) |
Beta Was this translation helpful? Give feedback.
-
Hi,
Thanks for sharing this wonderful work!
I was looking at the code, and I found that you are not using relu or any activation function between linear layers in some parts of the code. That doesn't match AlphaFold2 architecture in the absence of relu and the number of linear layers as well:
self.lddt_head = nn.Sequential( nn.LayerNorm(cfg.trunk.structure_module.c_s), nn.Linear(cfg.trunk.structure_module.c_s, cfg.lddt_head_hid_dim), nn.Linear(cfg.lddt_head_hid_dim, cfg.lddt_head_hid_dim), nn.Linear(cfg.lddt_head_hid_dim, 37 * self.lddt_bins), )
As I know, chaining multiple linear layers without adding any non-linear components will make the chain worthless and can be replaced with a single linear layer.
Also, you compute the expected value of pLDDT based on all the atoms, while AlphaFold2 does the calculations based on alpha carbon atoms and masks the rest of the atoms, as I understood.
output["mean_plddt"] = (output["plddt"] * output["atom37_atom_exists"]).sum( dim=(1, 2) ) / output["atom37_atom_exists"].sum(dim=(1, 2))
Did I understand what you're doing correctly? And if so, are you doing that on purpose? (omitting relu functions, changing number of layers, and calculating pLDDT based on all atoms)
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions