RosettaCommons / RoseTTAFold

This package contains deep learning models and related scripts for RoseTTAFold
MIT License
2.02k stars 439 forks source link

Complex structure generated by Rosettafold_e2e.py are failed to be shown by py3Dmol #104

Closed cuzy-zhi closed 2 years ago

cuzy-zhi commented 2 years ago

Hi,

First of all, thank you for your effort on such amazing work!

I followed the method of complex-structure prediction and get a similar complex.pdb file as example/complex.pdb. But, what I found is that both the files (mine and yours) are failed to be shown by py3Dmol. However, the python code works fine on other pdb files.

My code is below:

`import py3Dmol

with open("../complex_query_example/complex.pdb") as ifile: system = "".join([x for x in ifile])

p = py3Dmol.view(js='https://3dmol.org/build/3Dmol.js') p.addModelsAsFrames(system) p.setStyle({'model': -1}, {'cartoon': {'color':'spectrum'}}) p.zoomTo() p.show()`

Could you please provide some clue on this problem? Thanks a lot.

cuzy-zhi commented 2 years ago

The problem is solved by switching to pymol software instead of jupyter.