Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide predicted aligned error (PAE) for locally folded proteins #582

Open
jolakopec opened this issue Jul 6, 2023 · 1 comment
Open

Comments

@jolakopec
Copy link

Would it be possible to output PAE for locally folded proteins?
I know, that it is possible to get PAE from the ATLAS, but how can I get pae for proteins folded on my computer?

@naailkhan28
Copy link
Contributor

You can get the PAE using this code snippet (adapted from the ESMFold ColabFold notebook):

with torch.no_grad():
        output = model.infer(sequence)

#Retrieve PAE values from the model outputs
pae = (output["aligned_confidence_probs"][0].cpu().numpy() * np.arange(64)).mean(-1) * 31
mask = output["atom37_atom_exists"][0,:,1] == 1
mask = mask.cpu()
pae = pae[mask,:][:,mask]
np.savetxt("filename.txt", pae, "%.3f")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants