-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Show multi-model of NMR structures #765
Comments
hi @platinhom, nglview displays 1st model as default. Please use
This seems like a bug in nglview. |
@hainm Thanks to your reply! I have tried : view1 = nv.show_pdbid('1l2y',default_representation=False)
view1 But nothing shown at all. Python version 3.6.5, ipywidgets==7.2.1, ipykernel==4.8.2, notebook==5.5.0 I also tried it in Py2.7.15. It still only show the first model: |
Hi
You need to add a new representation. That’s why you saw
‘view.add_cartoon’ in my example.
…On Fri, Feb 1, 2019 at 5:52 PM Hom ***@***.***> wrote:
@hainm <https://github.com/hainm> Thanks to your reply!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#765 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AEPudc0YW146A--Rgr0YpaxV05Kb2El0ks5vJMVEgaJpZM4aYoaH>
.
|
@hainm It works well now. Thanks! I spell wrong on "representation" in my previous case 😂. |
Hi can you upload that file? |
just try: view = nv.show_pdbid('1d3z',default_representation=False)
view.add_cartoon(color='chainindex')
view or download from PDB: 1d3z Thanks~ |
thanks. Seems like an issue with nglview (works fine with NGL: http://nglviewer.org/ngl/) |
@platinhom ah ah, I know why now. You need to use 'view.center` to center the molecule too. (default representation does that). |
Just FYI, once you can show multi model, you can select to display one of them. model 1
all models
|
@hainm Thanks. It's great idea to control the display by given selection. |
I want to show a NMR structure (such as 1d3z.pdb) with many models. However, when I display the structure, it only show the first model.
If I use the display again , it can show normally.
The question is: how can I show all the models normally at the first time?
I have tried to use
add_representation(selection='/0')
,add_representation(selection='/1')
... to add many representations, but it also fail.Thanks in advance!
NGLview version 1.1.7
The text was updated successfully, but these errors were encountered: