swsoyee / r3dmol

🧬 An R package for visualizing molecular data in 3D
https://swsoyee.github.io/r3dmol/
Other
88 stars 4 forks source link

predicted 3D structures in *pdb format #32

Closed Tsingsjeen closed 3 years ago

Tsingsjeen commented 3 years ago

I predicted the 3D structure of my protein, I am wondering whether I can input the generated pdb data?

BradyAJohnston commented 3 years ago

Hi there! Thanks for commenting. If your predicted structure is a .pdb file, then yes you can import it.

Just use the path to your file when you create the viewer like below:

r3dmol() %>% 
  m_add_model("path/to/file.pdb", format = "pdb") %>% 
  m_zoom_to()

Give it a try and let me know how you go.

Tsingsjeen commented 3 years ago

excellent, cannot wait to try!

Great thanks!

BradyAJohnston commented 3 years ago

Please do get in contact if you have further questions or if you run into any problems!