Closed Quynh2710 closed 3 years ago
Hi @Quynh2710: Is that possible to upload your file here?
Yes, sure. This is the link to one of the MD Analysis universes that I use. The file is large, and I don't think of any other way to share it. https://drive.google.com/file/d/1AG0xBftTjjIqZ7Qhw94ppqDLrVfKHoNr/view?usp=sharing
It's too large (5.9G) for me. Why don't you just extract 1 frame and save it to pdb file and upload here?
And make sure to past exact commands so I can reproduce the issue (e.g: I am not sure how you created view
).
Thank you for helping me out and I'm sorry for the confusion. This is the file for one time step in the trajectory. universe.pdb.zip To view to the universe, this is the code that I used To selectively choose the representations for the ligand, this is the code that I used
hi @Quynh2710, I think nglview
(NGL under the hood) fails to recognize TIP
as water. So it treats TIP
molecules as ligands. I suggest to use view.add_licorice('ANP')
explicitly for your ligand(s).
Thank you very much! It's worked beautifully now.
Cheers.
I have been trying to visualize an MDAnalysis trajectory of a protein with a ligand and a metal using nglview, but I have not been able to choose the representation for the ligand. I tried different combinations of selection, but I only able to get the ligand only when I use 'sele' : 'not (protein or water or ion or ligand)' , which does not make much sense and does not apply to other similar universes. Can you suggest what I should do to apply the representation only for the ligand?