hpcaitech / FastFold

Optimizing AlphaFold Training and Inference on GPU Clusters
Apache License 2.0
557 stars 86 forks source link

compare the predicted and actual structure #102

Open mukulem opened 1 year ago

mukulem commented 1 year ago

Hi, I was wondering which python library did you use to compare the predicted and actual structure.

image

something similar to this.

Thanks

Shenggan commented 1 year ago

PyMOL can align and visualize the structure from pdb file.

mukulem commented 1 year ago

Thank you so much for your response, i am trying since yesterday but couldn't figure out how to visualize alignment using PyMOL in jupyter notebook

Shenggan commented 1 year ago

In my case, you can try to use pymol.cmd.align to do the alignment.

from pymol import cmd
cmd.load('./fastfold.pdb')
cmd.load('./T1024-D1.pdb')
cmd.align('fastfold', 'T1024-D1')

cmd.png('/tmp/foo.png', ray=1)
from IPython.display import Image
Image(filename='/tmp/foo.png')
mukulem commented 1 year ago

Thanks i am able to do this, is there anyway i can rotate this structure?

Shenggan commented 1 year ago

I haven't used a similar function, but refer to pymol's documentation at https://pymolwiki.org/index.php/Rotate