-
Notifications
You must be signed in to change notification settings - Fork 134
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
Usage questions: Please ask here first [0] #589
Comments
Hi, I notice a bunch of tempfiles in my /tmp directory after using nglviewer, containing essentially the molecular coordinates in pdb format. Do they stay there because of abrupt termination of nglivew or something? |
@gph82 I guess we did not do great job in cleaning those files. No, nglview do not need them to be there all the times. updated: remove expired link. |
Hi is there a way to access and manipulate the rotation and zoom independently in the view object. NGL seems to support this. nglviewer/ngl#240 (comment) I know about |
Hi, can you open a new issue so we can make it in our todo list. thx. |
Hi all. I would like to do the following thing: each cell of my iPython notebook should contain only a "portion" of the entire protein. I explain: in each cell I would like to make visible only the portion of the protein that corresponds to a particular sequence. Is this possible? Is it possible to at least highlight in some way some portions of a protein using a sequence of amino acids as input? Thank you. |
No it's not possible. You can can always create 3 views = [nglview.show_structure_file('my.pdb') for _ in range(3)]
# views[0]: do something
views[0]
# another cell
# views[1]: do something
views[1]
...
May be just adding representations for given residue selection if you know where they are? PR is welcome if you think those utils useful for you and others. Cheers. |
In a notebook I recently viewed two structures in different notebook cells. That worked fine. |
Yes, you can create as many views as you want. |
Hi, is there a way to assign color to a given atom type in ball and stick model? It seems like other than common atoms in organic chemistry the rest of the atoms are represented with white color which makes it hard to distinguish with hydrogen atoms. Is there a way use something like CPK coloring? Thanks! |
Is there a way to install a development version as a isolated environment? I found using a different conda environment screws with the javascript in my root environment. |
@kbsezginel can you please provide screenshot? Ping @arose |
There is CPK coloring based on the element. So if everything is white there is likely an error in determining the element. I would need an example file to look into that. |
When I create a list of different atoms such as this: When I load the same pdb file using a molecular graphics software this is what I get: As you can see only a handful of atoms are colored and their radii are all the same as well. I attached the jupyter notebook and pdb file below: |
if you push to npm, will be available tonight :D |
there are some issues with the current version... ;) |
Thanks a lot! It seems like the radii are all the same though, is that also fixed in the ngl development version? |
that is just due to the default parameters of the ball+stick representation. Have a look at the |
Hi again! I run into this problem that in ball and stick model the bonds are not displayed after a certain number of atoms. Is there a way to force calculation of the bonds or does it just skip that when there is too many atoms? Here with approximately 300 atoms: Here with approximately 500 atoms: Thanks! |
@kbsezginel Can you please provide the file you are loading. Thanks! |
Here, I attached the pdb files. Thanks! |
You assign the same group/residue number to all molecules. If you give every molecule its own number the bond calculation will work fine. |
Thanks, that seems to get the bond calculation working however now I am seeing incorrect assignments of the bonds for some molecules: When I visualize the same file without groups I see no bonds as expected: I also tried with a smaller number of molecules: Any idea why that's the case? Attached pdb files here: |
I haven't looked at it but my hunch is that it will work if you give each group its own distinct three letter name instead of calling them all MOL. For efficiency reasons, NGL tries to reuse calculated bonds for identical groups. However the identity calculation seem wrong here. |
I wanted to ask, if it is possible to also display external densities, extracted e.g. from a Gaussian Cube file? |
This page is too long now. I close it and open another issue: #785 |
Hello, Is it possible to make selections based on bfactor or something similar like: view.add_surface('protein and bfactor < 1.0') Thank you very much and keep up the good work! |
hi @sperezconesa: I don't think so. Please see the selection language here: http://nglviewer.org/ngl/api/manual/selection-language.html |
Need few "How to" ideas. I don't have any jupyter for demo :(
|
hi @DustBytes: sorry to disappoint you again. Those type of questions should be addressed in NGL's repo: https://github.com/nglviewer/ngl/issues |
python -c 'import nglview; print(nglview.__version__)'
3.0.3
python -c 'import ipywidgets; print(ipywidgets.__version__)'
7.6.5 Hello,--
However, the same
Any idea why this can happen? Thanks. |
Hello, I am trying to view a mixed solvent system using the above code, but the lithium ions in this system do not seem to display properly, how should I solve this problem |
Not sure if its relevant to the problem, but maybe the definition of "data" object is an issue (need to remove one bracket)? data = read("./)pro.gro") == should be ==> data = read("./pro.gro") |
Oh,I made a simple mistake. I think the error occurred when I copy this code, but there's actually no brackets in the local version. |
I uploaded a structure file. |
For any questions relating to how/why/ ... Or anything you don't know where to ask.
For bug, suggestion, ... please open seperate issue
The text was updated successfully, but these errors were encountered: