-
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
Density map cannot be set to opacity #868
Comments
hi @xizhang0819 what you mean in above code (you added the |
Hi @hainm , to test if the opacity is working or not, I import a map and change its representation to opacity with smaller isovalue (larger volume). Then I add the same map as a hard core reference subject. In fact, they are not necessary to be the same. For example, we can change it to: since I used: |
I think you made thing much more complicated to report. |
Yes thats correct, and both of the map can correctly show in Chimera. |
thanks, it sounds like a bug from [NGL](https://github.com/arose/ngl. |
Thank you. I believe I locate the bug. In density map, there are three parameters to indicate the coordinate system: As you can see, all of the right-hand coordinate systems are failed to set to opacity while all of the left-hand coordinate systems work fine. If the bug cannot be fixed, I may manully set the density map to a left-hand coordinate system for visualization. Thank you again! |
thanks @xizhang0819. It takes time to have the bug fixed (or it might not even fixed :D in NGL). Please go head make adjustment for your work. cheers. |
Hello! I am using NGLview to visualize density map and protein. One issue I met is that I cannot set opacity for some density maps. The attached file contains two maps: a density map orriginally downloaded from EMDB, which can be set to opacity; and its "save map as..." saving map by Chimera, which cannot be set to opacity. Following is the code on Jupyter Notebook.
#############################
import nglview as nv
view = nv.NGLWidget()
filename1 = 'save_test.mrc'
filename2 = 'emd_1461.map'
view = nv.show_file(filename2)
view.add_component(filename2)
view
view.component_0.update_surface(color="orange", isolevel=0.5, opacity=0.5)
#################################################
Could you help me throuth this? This is the first time I post an issue on Github. If you need more information, please feel free to ask me. Thank you very much!
Xi
nglview: 2.7.1
ipython:7.5.1
Test_Map.zip
The text was updated successfully, but these errors were encountered: