FastFold icon indicating copy to clipboard operation
FastFold copied to clipboard

compare the predicted and actual structure

Open mukulem opened this issue 3 years ago • 5 comments

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

Thanks

mukulem avatar Nov 01 '22 23:11 mukulem

PyMOL can align and visualize the structure from pdb file.

Shenggan avatar Nov 02 '22 01:11 Shenggan

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

mukulem avatar Nov 02 '22 01:11 mukulem

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')

Shenggan avatar Nov 02 '22 03:11 Shenggan

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

mukulem avatar Nov 02 '22 03:11 mukulem

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

Shenggan avatar Nov 02 '22 06:11 Shenggan