You can subscribe to this list here.
2001 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(13) |
Nov
(22) |
Dec
(35) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2002 |
Jan
(33) |
Feb
(46) |
Mar
(56) |
Apr
(29) |
May
(56) |
Jun
(30) |
Jul
(64) |
Aug
(54) |
Sep
(86) |
Oct
(106) |
Nov
(50) |
Dec
(67) |
2003 |
Jan
(78) |
Feb
(98) |
Mar
(51) |
Apr
(95) |
May
(53) |
Jun
(103) |
Jul
(93) |
Aug
(64) |
Sep
(87) |
Oct
(93) |
Nov
(78) |
Dec
(86) |
2004 |
Jan
(83) |
Feb
(90) |
Mar
(64) |
Apr
(112) |
May
(103) |
Jun
(57) |
Jul
(101) |
Aug
(84) |
Sep
(92) |
Oct
(96) |
Nov
(86) |
Dec
(32) |
2005 |
Jan
(88) |
Feb
(108) |
Mar
(111) |
Apr
(107) |
May
(120) |
Jun
(134) |
Jul
(143) |
Aug
(129) |
Sep
(75) |
Oct
(171) |
Nov
(125) |
Dec
(65) |
2006 |
Jan
(95) |
Feb
(105) |
Mar
(114) |
Apr
(124) |
May
(87) |
Jun
(66) |
Jul
(88) |
Aug
(65) |
Sep
(71) |
Oct
(92) |
Nov
(94) |
Dec
(60) |
2007 |
Jan
(81) |
Feb
(84) |
Mar
(82) |
Apr
(68) |
May
(58) |
Jun
(80) |
Jul
(30) |
Aug
(47) |
Sep
(68) |
Oct
(92) |
Nov
(59) |
Dec
(17) |
2008 |
Jan
(69) |
Feb
(81) |
Mar
(60) |
Apr
(34) |
May
(47) |
Jun
(65) |
Jul
(46) |
Aug
(49) |
Sep
(84) |
Oct
(43) |
Nov
(33) |
Dec
(30) |
2009 |
Jan
(62) |
Feb
(48) |
Mar
(123) |
Apr
(73) |
May
(72) |
Jun
(69) |
Jul
(78) |
Aug
(72) |
Sep
(99) |
Oct
(82) |
Nov
(70) |
Dec
(53) |
2010 |
Jan
(112) |
Feb
(95) |
Mar
(127) |
Apr
(110) |
May
(135) |
Jun
(91) |
Jul
(91) |
Aug
(79) |
Sep
(136) |
Oct
(63) |
Nov
(38) |
Dec
(64) |
2011 |
Jan
(59) |
Feb
(109) |
Mar
(191) |
Apr
(130) |
May
(94) |
Jun
(90) |
Jul
(89) |
Aug
(127) |
Sep
(135) |
Oct
(113) |
Nov
(136) |
Dec
(140) |
2012 |
Jan
(158) |
Feb
(131) |
Mar
(151) |
Apr
(88) |
May
(121) |
Jun
(85) |
Jul
(82) |
Aug
(56) |
Sep
(55) |
Oct
(125) |
Nov
(87) |
Dec
(65) |
2013 |
Jan
(81) |
Feb
(64) |
Mar
(90) |
Apr
(77) |
May
(80) |
Jun
(92) |
Jul
(92) |
Aug
(70) |
Sep
(69) |
Oct
(60) |
Nov
(99) |
Dec
(50) |
2014 |
Jan
(89) |
Feb
(66) |
Mar
(52) |
Apr
(70) |
May
(68) |
Jun
(44) |
Jul
(68) |
Aug
(81) |
Sep
(152) |
Oct
(106) |
Nov
(74) |
Dec
(57) |
2015 |
Jan
(93) |
Feb
(48) |
Mar
(60) |
Apr
(107) |
May
(82) |
Jun
(64) |
Jul
(74) |
Aug
(38) |
Sep
(49) |
Oct
(99) |
Nov
(105) |
Dec
(51) |
2016 |
Jan
(68) |
Feb
(87) |
Mar
(55) |
Apr
(90) |
May
(68) |
Jun
(25) |
Jul
(25) |
Aug
(41) |
Sep
(35) |
Oct
(55) |
Nov
(24) |
Dec
(26) |
2017 |
Jan
(59) |
Feb
(49) |
Mar
(24) |
Apr
(50) |
May
(45) |
Jun
(63) |
Jul
(36) |
Aug
(26) |
Sep
(22) |
Oct
(23) |
Nov
(26) |
Dec
(29) |
2018 |
Jan
(17) |
Feb
(21) |
Mar
(30) |
Apr
(34) |
May
(24) |
Jun
(47) |
Jul
(65) |
Aug
(30) |
Sep
(24) |
Oct
(52) |
Nov
(21) |
Dec
(17) |
2019 |
Jan
(9) |
Feb
(39) |
Mar
(32) |
Apr
(22) |
May
(30) |
Jun
(69) |
Jul
(40) |
Aug
(48) |
Sep
(17) |
Oct
(26) |
Nov
(30) |
Dec
(19) |
2020 |
Jan
(32) |
Feb
(26) |
Mar
(16) |
Apr
(34) |
May
(50) |
Jun
(87) |
Jul
(51) |
Aug
(23) |
Sep
(25) |
Oct
(48) |
Nov
(32) |
Dec
(6) |
2021 |
Jan
(12) |
Feb
(31) |
Mar
(15) |
Apr
(31) |
May
(13) |
Jun
(13) |
Jul
(24) |
Aug
(9) |
Sep
(11) |
Oct
(28) |
Nov
(26) |
Dec
(25) |
2022 |
Jan
(47) |
Feb
(22) |
Mar
(22) |
Apr
(12) |
May
(4) |
Jun
(26) |
Jul
(17) |
Aug
(2) |
Sep
(13) |
Oct
(6) |
Nov
(13) |
Dec
(4) |
2023 |
Jan
(7) |
Feb
(6) |
Mar
(13) |
Apr
(2) |
May
(25) |
Jun
(13) |
Jul
(12) |
Aug
(10) |
Sep
(5) |
Oct
(13) |
Nov
(19) |
Dec
(7) |
2024 |
Jan
(3) |
Feb
(12) |
Mar
(1) |
Apr
(13) |
May
(11) |
Jun
|
Jul
(20) |
Aug
(4) |
Sep
(4) |
Oct
(5) |
Nov
(4) |
Dec
(6) |
2025 |
Jan
(16) |
Feb
(8) |
Mar
(10) |
Apr
(6) |
May
(13) |
Jun
(7) |
Jul
(4) |
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
From: Sumit K. <sum...@gm...> - 2019-12-02 15:31:12
|
Hi all, I have never used PyMOL before. I am trying to learn some few crystal visualization softwares like VESTA, Avogardo. I need to perform some few crystal operations such as translation and reflection. VESTA is good but I wanted to know if there is any techniques on PyMOL for this operations? Best, Sumit Khadka |
From: Jared S. <jar...@co...> - 2019-11-30 02:44:39
|
Hi Yikan - Check out: https://pymolwiki.org/index.php/Angle_between_domains Hope that helps. Cheers, Jared On November 27, 2019 at 4:02:34 AM, Zhang Yikan via PyMOL-users (pym...@li...) wrote: Hi all, I am a beginner of the PyMol script. I have 200 pdbs(names, C_1, C_2, …..C_200), and all of them contain 2 domains(resi 1-80, or resi 92-160). I want to calculate the rotation angle between the two domains. I do this calculation with the orientation.py in batch mode. Do someone know how to do that? Thank you! Best, Yikan Ph. D TsingHua University School of life Sciences Beijing, China tel:010-62773783 _______________________________________________ PyMOL-users mailing list Archives: http://www.mail-archive.com/pym...@li... Unsubscribe: https://sourceforge.net/projects/pymol/lists/pymol-users/unsubscribe |
From: Thomas H. <tho...@sc...> - 2019-11-28 20:55:49
|
Hi Markus, You mention two directories, maybe you're running PyMOL from the wrong one? /home/mheller/pymol-2.4/lib/python/pymol /usr/local/Pymol-2.4/lib/python/Pymol Cheers, Thomas > On Nov 28, 2019, at 1:00 AM, Markus Heller <mh...@ad...> wrote: > > Hi, > > This is just an attempt to see if my issue has popped up before. > > I have compiled open source Pymol 2.4, which I used for a few months now. Today, the following error prevents launching Pymol: > > <code> > $ pymol > Traceback (most recent call last): > File "/home/mheller/pymol-2.4/lib/python/pymol/__init__.py", line 64, in <module> > import pymol > File "/home/mheller/pymol-2.4/lib/python/pymol/__init__.py", line 564, in <module> > import pymol._cmd > ModuleNotFoundError: No module named 'pymol._cmd' > </code> > > `/usr/local/Pymol-2.4/lib/python/Pymol` contains `cmd.py` and `_cmd.cpython-36m-x86_64-linux-gnu.so` > > I'm baffled as to why Pymol fails to open, as I'm not aware of any changes made to my python setup or related. > > I'd be very grateful for a slight nudge in the right direction ... > > Thanks > Markus > > > > _______________________________________________ > PyMOL-users mailing list > Archives: http://www.mail-archive.com/pym...@li... > Unsubscribe: https://sourceforge.net/projects/pymol/lists/pymol-users/unsubscribe -- Thomas Holder PyMOL Principal Developer Schrödinger, Inc. |
From: Thomas H. <tho...@sc...> - 2019-11-28 20:54:12
|
It looks like strftime('%s') is not valid on Windows (it works fine for me on Linux and macOS). Here is an equivalent alternative that works on all platforms: filename = '~/pymol-auto-save-{}.pse'.format(int(time.time())) filename = os.path.expanduser(filename) Binding a key is also easy. Here is an example which binds saving and rendering to the F1 key: python @cmd.set_key('F1') def autosave_and_render(): filename = os.path.expanduser('~/pymol-auto-save.pse') cmd.set('pse_binary_dump') cmd.save(filename, quiet=0) cmd.ray() python end Hope that helps. Cheers, Thomas > On Nov 22, 2019, at 11:48 PM, Junsu Park aka. Jason Mosier <par...@gm...> wrote: > > Hello, I'm fairly new to pymol and python in general, but I honestly don't have to self control to save by myself very well and so I was trying to use the proof of concept code for autosaving. However, it was written for a way old version of pymol and so I was wondering if I could get some help with fixing this code up? If that would be too difficult, is there a way that I could bind a key to saving AND then rendering? Or even just clicking on the render button causes it to save before ray tracing? I keep rendering on a weak computer thinking it can handle it and then it crashes and I lose all my progress. > > Link to code: https://pastebin.com/EJJQWc00 > Link to output: https://pastebin.com/TNSuA0fH > > Thanks, > -Jason > _______________________________________________ > PyMOL-users mailing list > Archives: http://www.mail-archive.com/pym...@li... > Unsubscribe: https://sourceforge.net/projects/pymol/lists/pymol-users/unsubscribe -- Thomas Holder PyMOL Principal Developer Schrödinger, Inc. |
From: Thomas H. <tho...@sc...> - 2019-11-28 20:54:00
|
Hi Martin, Would it be possible to share those files with me? Thanks, Thomas > On Nov 28, 2019, at 6:00 PM, Rosellen, Martin <mar...@uc...> wrote: > > Dear all, > > I have issues loading Amber trajectories. First, I load the the topology > like this: > > load WT.prmtop, WT, 1, top > > output: > > ObjectMolecule: Attempting to read Amber7 topology file. > TOPStrToCoordSet: Warning: can't currently image a truncated octahedron... > > > load_traj WT.trj, WT > > output: > > ObjMolLoadTRJFile-Error: Failed to read expected coordinate value. > This traj. does not match the loaded parameter/topology file. > Likely cause: either the atom count or the periodic box settings > are inconsistent between the two files. > > > My guess is that pymol somehow changes the atom count because it cannot > image the truncated box which causes the error with the trajectory. > > I was thinking about putting the trajectory in a PDB but that would be a > file of <20GB in the end. > > Any comment, positive or negative, would be very much appreciated. > > cheers > > Martin > > > _______________________________________________ > PyMOL-users mailing list > Archives: http://www.mail-archive.com/pym...@li... > Unsubscribe: https://sourceforge.net/projects/pymol/lists/pymol-users/unsubscribe -- Thomas Holder PyMOL Principal Developer Schrödinger, Inc. |
From: Markus H. <mh...@ad...> - 2019-11-28 20:02:01
|
I settled for a fresh start, i.e. recompiling PyMol. This solved the issue. > -----Original Message----- > From: Markus Heller <mh...@ad...> > Sent: Wednesday, November 27, 2019 4:01 PM > To: pym...@li... > Subject: [PyMOL] ModuleNotFoundError: No module named 'pymol._cmd' > > Hi, > > This is just an attempt to see if my issue has popped up before. > > I have compiled open source Pymol 2.4, which I used for a few months now. > Today, the following error prevents launching Pymol: > > <code> > $ pymol > Traceback (most recent call last): > File "/home/mheller/pymol-2.4/lib/python/pymol/__init__.py", line 64, in > <module> > import pymol > File "/home/mheller/pymol-2.4/lib/python/pymol/__init__.py", line 564, in > <module> > import pymol._cmd > ModuleNotFoundError: No module named 'pymol._cmd' > </code> > > `/usr/local/Pymol-2.4/lib/python/Pymol` contains `cmd.py` and `_cmd.cpython- > 36m-x86_64-linux-gnu.so` > > I'm baffled as to why Pymol fails to open, as I'm not aware of any changes made > to my python setup or related. > > I'd be very grateful for a slight nudge in the right direction ... > > Thanks > Markus > > > > _______________________________________________ > PyMOL-users mailing list > Archives: http://www.mail-archive.com/pym...@li... > Unsubscribe: https://sourceforge.net/projects/pymol/lists/pymol- > users/unsubscribe |
From: Rosellen, M. <mar...@uc...> - 2019-11-28 17:16:11
|
Dear all, I have issues loading Amber trajectories. First, I load the the topology like this: load WT.prmtop, WT, 1, top output: ObjectMolecule: Attempting to read Amber7 topology file. TOPStrToCoordSet: Warning: can't currently image a truncated octahedron... load_traj WT.trj, WT output: ObjMolLoadTRJFile-Error: Failed to read expected coordinate value. This traj. does not match the loaded parameter/topology file. Likely cause: either the atom count or the periodic box settings are inconsistent between the two files. My guess is that pymol somehow changes the atom count because it cannot image the truncated box which causes the error with the trajectory. I was thinking about putting the trajectory in a PDB but that would be a file of <20GB in the end. Any comment, positive or negative, would be very much appreciated. cheers Martin |
From: Markus H. <mh...@ad...> - 2019-11-28 00:00:57
|
Hi, This is just an attempt to see if my issue has popped up before. I have compiled open source Pymol 2.4, which I used for a few months now. Today, the following error prevents launching Pymol: <code> $ pymol Traceback (most recent call last): File "/home/mheller/pymol-2.4/lib/python/pymol/__init__.py", line 64, in <module> import pymol File "/home/mheller/pymol-2.4/lib/python/pymol/__init__.py", line 564, in <module> import pymol._cmd ModuleNotFoundError: No module named 'pymol._cmd' </code> `/usr/local/Pymol-2.4/lib/python/Pymol` contains `cmd.py` and `_cmd.cpython-36m-x86_64-linux-gnu.so` I'm baffled as to why Pymol fails to open, as I'm not aware of any changes made to my python setup or related. I'd be very grateful for a slight nudge in the right direction ... Thanks Markus |
From: Zhang Y. <yik...@ic...> - 2019-11-27 09:00:51
|
Hi all, I am a beginner of the PyMol script. I have 200 pdbs(names, C_1, C_2, …..C_200), and all of them contain 2 domains(resi 1-80, or resi 92-160). I want to calculate the rotation angle between the two domains. I do this calculation with the orientation.py in batch mode. Do someone know how to do that? Thank you! Best, Yikan Ph. D TsingHua University School of life Sciences Beijing, China tel:010-62773783 |
From: Pedro L. <psl...@gm...> - 2019-11-23 01:57:13
|
I would rather create a QTimer to autosave and autorender. It would report correct CPU usage. After then you may of course create a plugin: https://pymolwiki.org/index.php/Plugins_Tutorial. Em sex, 22 de nov de 2019 22:41, Pedro Lacerda <psl...@gm...> escreveu: > Only now I see your code. I'm not very versed with PyMOL code but maybe > you want to wait for the pymol lock. Grep for the lock and wait for it. Can > you imagine the last auto rendering be a wrong image after a long and hard > session. > > Em sex, 22 de nov de 2019 22:36, Pedro Lacerda <psl...@gm...> > escreveu: > >> Hi Jason, >> >> You can save with Ctrl-S, as you might know. Auto rendering would be >> complicated because there is a lot of options. For instance, you may have >> to choose low DPI for quick inspection or high for final rendering. >> >> Best regards, >> Pedro Lacerda >> >> Em sex, 22 de nov de 2019 19:49, Junsu Park aka. Jason Mosier < >> par...@gm...> escreveu: >> >>> Hello, I'm fairly new to pymol and python in general, but I honestly >>> don't have to self control to save by myself very well and so I was trying >>> to use the proof of concept code for autosaving. However, it was written >>> for a way old version of pymol and so I was wondering if I could get some >>> help with fixing this code up? If that would be too difficult, is there a >>> way that I could bind a key to saving AND then rendering? Or even just >>> clicking on the render button causes it to save before ray tracing? I keep >>> rendering on a weak computer thinking it can handle it and then it crashes >>> and I lose all my progress. >>> >>> Link to code: https://pastebin.com/EJJQWc00 >>> <https://gnldr.online/tracker/click?redirect=https%3A%2F%2Fpastebin.com%2FEJJQWc00&dID=1574462896168&linkName=https://pastebin.com/EJJQWc00> >>> >>> Link to output: https://pastebin.com/TNSuA0fH >>> <https://gnldr.online/tracker/click?redirect=https%3A%2F%2Fpastebin.com%2FTNSuA0fH&dID=1574462896168&linkName=https://pastebin.com/TNSuA0fH> >>> >>> Thanks, >>> -Jason >>> _______________________________________________ >>> PyMOL-users mailing list >>> Archives: http://www.mail-archive.com/pym...@li... >>> Unsubscribe: >>> https://sourceforge.net/projects/pymol/lists/pymol-users/unsubscribe >> >> |
From: Pedro L. <psl...@gm...> - 2019-11-23 01:41:47
|
Only now I see your code. I'm not very versed with PyMOL code but maybe you want to wait for the pymol lock. Grep for the lock and wait for it. Can you imagine the last auto rendering be a wrong image after a long and hard session. Em sex, 22 de nov de 2019 22:36, Pedro Lacerda <psl...@gm...> escreveu: > Hi Jason, > > You can save with Ctrl-S, as you might know. Auto rendering would be > complicated because there is a lot of options. For instance, you may have > to choose low DPI for quick inspection or high for final rendering. > > Best regards, > Pedro Lacerda > > Em sex, 22 de nov de 2019 19:49, Junsu Park aka. Jason Mosier < > par...@gm...> escreveu: > >> Hello, I'm fairly new to pymol and python in general, but I honestly >> don't have to self control to save by myself very well and so I was trying >> to use the proof of concept code for autosaving. However, it was written >> for a way old version of pymol and so I was wondering if I could get some >> help with fixing this code up? If that would be too difficult, is there a >> way that I could bind a key to saving AND then rendering? Or even just >> clicking on the render button causes it to save before ray tracing? I keep >> rendering on a weak computer thinking it can handle it and then it crashes >> and I lose all my progress. >> >> Link to code: https://pastebin.com/EJJQWc00 >> <https://gnldr.online/tracker/click?redirect=https%3A%2F%2Fpastebin.com%2FEJJQWc00&dID=1574462896168&linkName=https://pastebin.com/EJJQWc00> >> >> Link to output: https://pastebin.com/TNSuA0fH >> <https://gnldr.online/tracker/click?redirect=https%3A%2F%2Fpastebin.com%2FTNSuA0fH&dID=1574462896168&linkName=https://pastebin.com/TNSuA0fH> >> >> Thanks, >> -Jason >> _______________________________________________ >> PyMOL-users mailing list >> Archives: http://www.mail-archive.com/pym...@li... >> Unsubscribe: >> https://sourceforge.net/projects/pymol/lists/pymol-users/unsubscribe > > |
From: Pedro L. <psl...@gm...> - 2019-11-23 01:36:36
|
Hi Jason, You can save with Ctrl-S, as you might know. Auto rendering would be complicated because there is a lot of options. For instance, you may have to choose low DPI for quick inspection or high for final rendering. Best regards, Pedro Lacerda Em sex, 22 de nov de 2019 19:49, Junsu Park aka. Jason Mosier < par...@gm...> escreveu: > Hello, I'm fairly new to pymol and python in general, but I honestly don't > have to self control to save by myself very well and so I was trying to use > the proof of concept code for autosaving. However, it was written for a way > old version of pymol and so I was wondering if I could get some help with > fixing this code up? If that would be too difficult, is there a way that I > could bind a key to saving AND then rendering? Or even just clicking on the > render button causes it to save before ray tracing? I keep rendering on a > weak computer thinking it can handle it and then it crashes and I lose all > my progress. > > Link to code: https://pastebin.com/EJJQWc00 > <https://gnldr.online/tracker/click?redirect=https%3A%2F%2Fpastebin.com%2FEJJQWc00&dID=1574462896168&linkName=https://pastebin.com/EJJQWc00> > > Link to output: https://pastebin.com/TNSuA0fH > <https://gnldr.online/tracker/click?redirect=https%3A%2F%2Fpastebin.com%2FTNSuA0fH&dID=1574462896168&linkName=https://pastebin.com/TNSuA0fH> > > Thanks, > -Jason > _______________________________________________ > PyMOL-users mailing list > Archives: http://www.mail-archive.com/pym...@li... > Unsubscribe: > https://sourceforge.net/projects/pymol/lists/pymol-users/unsubscribe |
From: Junsu P. a. J. M. <par...@gm...> - 2019-11-22 22:48:35
|
Hello, I'm fairly new to pymol and python in general, but I honestly don't have to self control to save by myself very well and so I was trying to use the proof of concept code for autosaving. However, it was written for a way old version of pymol and so I was wondering if I could get some help with fixing this code up? If that would be too difficult, is there a way that I could bind a key to saving AND then rendering? Or even just clicking on the render button causes it to save before ray tracing? I keep rendering on a weak computer thinking it can handle it and then it crashes and I lose all my progress. Link to code: https://pastebin.com/EJJQWc00 <https://gnldr.online/tracker/click?redirect=https%3A%2F%2Fpastebin.com%2FEJJQWc00&dID=1574462896168&linkName=https://pastebin.com/EJJQWc00> Link to output: https://pastebin.com/TNSuA0fH <https://gnldr.online/tracker/click?redirect=https%3A%2F%2Fpastebin.com%2FTNSuA0fH&dID=1574462896168&linkName=https://pastebin.com/TNSuA0fH> Thanks, -Jason |
From: sunyeping <sun...@al...> - 2019-11-17 09:44:31
|
Dear Pymol users, I wish to prepare a image which looks like the picture at the follow link: https://drive.google.com/file/d/1HPwTCNqD7hlTPX9QDHif00YW5ZIv8PCa/view?usp=sharing I have ckecked the pymolwiki for different mode for drawing nucleic acid ladder and ring, but cannot find any thing that can produce an image like what I want. I don't know how to change the phosphoric acid backbond to stick from what looks like putty. Could you help me what this? I will be very grateful if you can help. Best regards. |
From: Thomas H. <tho...@sc...> - 2019-11-15 08:01:58
|
Hi PyMOL User - Are you proficient with Python and Git? Then we could need your help with the Pymol-script-repo! The project currently has 6 admins, but it seems that most of them have moved on and are no longer available to help out. What's needed? Code review on pull requests, giving feedback to the author if needed, and merging the pull request when it looks good. Also any sort of maintenance on the code base you feel is necessary and appropriate. https://github.com/Pymol-Scripts/Pymol-script-repo The Pymol-script-repo is not owned or managed by Schrödinger, it's a community project (which doesn't stop Schrödinger from contributing, we're part of the community as well :-)). The repository hosts most of the scripts and (single file) plugins from the PyMOLWiki. There is currently one open pull request from Pedro: https://github.com/Pymol-Scripts/Pymol-script-repo/pull/105 So if you want to become a Pymol-script-repo admin, please send me an email. Thanks, Thomas -- Thomas Holder PyMOL Principal Developer Schrödinger, Inc. |
From: Jared S. <jar...@co...> - 2019-11-13 15:43:51
|
Hi Changdev - Try the following command, which will save a ray-traced PNG image with transparent background (which is what is represented by the checkerboard pattern): png myfigure.png, ray=1 Alternatively, you can adjust the ray background setting: set ray_opaque_background, 1 Hope that helps. Cheers, Jared On November 13, 2019 at 7:08:16 AM, Gadhe Changdev Gorakshnath (cha...@1s...) wrote: Hello there, When I do ray, it shows brown and white square in the background. I want to capture image directly from screen but squares also get copied. Is there any way to remove these squares and capture image directly from the screen. Regards, Changdev _______________________________________________ PyMOL-users mailing list Archives: http://www.mail-archive.com/pym...@li... Unsubscribe: https://sourceforge.net/projects/pymol/lists/pymol-users/unsubscribe |
From: Gadhe C. G. <cha...@1s...> - 2019-11-12 23:53:28
|
Hello there, When I do ray, it shows brown and white square in the background. I want to capture image directly from screen but squares also get copied. Is there any way to remove these squares and capture image directly from the screen. Regards, Changdev |
From: RDirective <rdi...@gm...> - 2019-11-12 11:37:32
|
Hi Thomas, Yes that appears to work wiith qt5-wayland package installed. I run pymol in a container so the command is #!/bin/bash -e export LC_LANG="en_US.utf8" toolbox -v run --container pymol bash -exec 'QT_QPA_PLATFORM=xcb ~/Pymol/install/bin/pymol' Best, Quyen On Tue, Nov 5, 2019 at 10:12 AM Thomas Holder <tho...@sc...> wrote: > Hi Quyen, > > This works for me: > > export QT_QPA_PLATFORM=xcb > pymol > > Hope that helps. > > Cheers, > Thomas > > > > On Sun, Nov 3, 2019 at 6:15 AM RDirective <rdi...@gm...> wrote: > > > > Dear all, > > > > I have a slight problem with Pymol on Fedora 31. The vanilla > distribution runs Gnome on Wayland. Pymol complains that [qt.qpa.plugin: > Could not find the Qt platform plugin "wayland" in ""]. The GUI and 3D > render will still work but if I were to install qt5-qtwayland-devel to > provide the plugin, then the GUI will load but the 3D render no longer > shows anything. It is just a blank frame. What can be done about this? > > > > Best, > > Quyen > > _______________________________________________ > > PyMOL-users mailing list > > Archives: http://www.mail-archive.com/pym...@li... > > Unsubscribe: > https://sourceforge.net/projects/pymol/lists/pymol-users/unsubscribe > |
From: Pedro L. <psl...@gm...> - 2019-11-12 05:42:44
|
Hi Jared, May I reopen the ticket? I got the `get_volume_field` idea. It returns the grid. My grid was trimmed or was justified to have only the observations and because of this my shapes seemed incoherent. I jumped in the code yesterday to add the `quiet` flag on `dump`. This is code is like the `get_volume_field` but return points instead of the grid itself. Seems that there is no way on the PyMOL API to handle a grid dislocated from origin (except dump level by level until fill a volume and then parse each file). Some notes: (1) my build has no numpy and no idea why; (2) and I'm not sure if I got the offset alright; (3) didn't handled other typeofs, only float. Can you review this code for me? void ObjectMapDump(ObjectMap* om, const char* fname, int state, int quiet) { auto file = fopen(fname, "wb"); if (!file) { ErrMessage(om->G, "ObjectMapDump", "can't open file for writing"); } ObjectMapState* oms = om->State + 0; int zd = oms->Field->dimensions[2]; int yd = oms->Field->dimensions[1]; int xd = oms->Field->dimensions[0]; float zs = (oms->ExtentMax[2] - oms->ExtentMin[2]) / (oms->Field->dimensions[2]); float ys = (oms->ExtentMax[1] - oms->ExtentMin[1]) / (oms->Field->dimensions[1]); float xs = (oms->ExtentMax[0] - oms->ExtentMin[0]) / (oms->Field->dimensions[0]); int offset = 0; for (int zi = 0; zi < oms->Field->dimensions[2]; zi++) { for (int yi = 0; yi < oms->Field->dimensions[1]; yi++) { for (int xi = 0; xi < oms->Field->dimensions[0]; xi++) { float z = oms->ExtentMin[2] + zs * zi; float y = oms->ExtentMin[1] + ys * yi; float x = oms->ExtentMin[0] + xs * xi; float* data = (float*) oms->Field->data->data; float value = data[offset]; offset += 1; fprintf(file, "%10.4f%10.4f%10.4f%10.4f\n", x, y, z, value); } } } fclose(file); if (!quiet) { PRINTFB(om->G, FB_ObjectMap, FB_Actions) " ObjectMapDump: %s written to %s\n", om->Name, fname ENDFB(om->G); } } Em qui., 7 de nov. de 2019 às 11:41, Jared Sampson < jar...@co...> escreveu: > Hi Pedro - Glad you have something working for your use case. > > Best, > Jared > > > On November 5, 2019 at 9:32:51 AM, Pedro Lacerda (psl...@gm...) > wrote: > > Update: > > worked the same for me, but may have impact in other cases: > > MIN_LEVEL = 0 > MAX_LEVEL = 20 > LEVEL_RANGE = np.arange(MIN_LEVEL, MAX_LEVEL+0.5, 0.5) > > def _get_map(map_name): > dump_fhandle, dump_fname = tempfile.mkstemp() > open(dump_fhandle).close() > > try: > levels = {} > for level in LEVEL_RANGE: > # dump level > cmd.isodot('_i', map_name, level) > cmd.dump(dump_fname, '_i') > cmd.delete('_i') > > # load level > with warnings.catch_warnings(): > xyz = np.loadtxt(dump_fname) > warnings.simplefilter("ignore") > > # handle empty maps > if len(xyz) == 0: > xyz = np.ndarray((0, 3)) > > xyz = xyz[:, :3] > levels[level] = xyz > > return levels > finally: > os.unlink(dump_fname) > > Em ter., 5 de nov. de 2019 às 11:13, Pedro Lacerda <psl...@gm...> > escreveu: > >> For the sake of completeness here is some working code. >> >> `dump` exports the surface of map representations. They are all surfaces. >> >> So I had to dump the map at each level (0.5 by 0.5 increment) in order to >> get a filled volume. If you concatenate all xyz arrays you get the filled >> volume of the level 20 surface. >> >> Thank you for the support. >> >> >> MIN_LEVEL = 0 >> MAX_LEVEL = 20 >> LEVEL_RANGE = np.arange(MIN_LEVEL, MAX_LEVEL+0.5, 0.5) >> >> >> def _get_map(map_name): >> dump_fhandle, dump_fname = tempfile.mkstemp() >> open(dump_fhandle).close() >> >> try: >> levels = {} >> skip = False >> for level in LEVEL_RANGE: >> if not skip: >> # dump level >> cmd.isodot('_i', map_name, level) >> cmd.dump(dump_fname, '_i') >> cmd.delete('_i') >> >> # load level >> with warnings.catch_warnings(): >> xyz = np.loadtxt(dump_fname) >> warnings.simplefilter("ignore") >> >> # handle empty maps >> if skip or len(xyz) == 0: >> xyz = np.ndarray((0, 3)) >> skip = True >> >> xyz = xyz[:, :3] >> levels[level] = xyz >> >> return levels >> finally: >> os.unlink(dump_fname) >> >> Em seg., 4 de nov. de 2019 às 01:38, Pedro Lacerda <psl...@gm...> >> escreveu: >> >>> Hi Jared, >>> >>> So COLLADA exports some kind of already rendered 3D image. >>> >>> Took me some time to figure out if dump exports the map points or >>> something specific to the surface representation. In fact, it is yet to be >>> figured out. >>> >>> Dump can export at least map and surface objects. >>> >>> When I export two different overlapping surfaces of the same map there >>> is points of the outer surface that aren't in the inner. I expected all >>> points of the inner to be present in both dumps. >>> >>> So I guess that when I dump surface objects it exports newly created >>> points of the enclosed volume of that surface. Is it correct? >>> >>> To export the map directly would preserve the original points? (Which I >>> hope to be the original grid count of the server's method) >>> >>> Is overlap is defined for map objects? >>> >>> >>> Sorry maybe I'm not saying very clear. >>> >>> And about the get_volume_field(), if I remember correctly it returned on >>> a call an ndarray of shape (28, 26, 15) and on other call an ndarray of >>> shape (28, 28, 16). Something like that. >>> >>> >>> Cheers, >>> >>> >>> Em sex, 1 de nov de 2019 10:33, Jared Sampson < >>> jar...@co...> escreveu: >>> >>>> Hi Pedro - >>>> >>>> The COLLADA option exports unlabeled mesh objects so I couldn't figure >>>> out which one is acceptor or donor. >>>> >>>> Yes, you're correct about that. This is due to the fact that COLLADA >>>> export uses geometry after it is prepared for ray tracing, which doesn't >>>> know about object names (see the primary function call >>>> <https://github.com/schrodinger/pymol-open-source/blob/master/layer1/COLLADA.cpp#L667>). >>>> It might be interesting/useful to export things in a more granular way >>>> using pre-ray-tracing information as it is stored in the PyMOL session, but >>>> that would involve substantial effort, and wasn't included when we planned >>>> this export feature. >>>> >>>> If you wanted to know which mesh is which, you could export objects >>>> one-at-a-time by disabling all the others, although to me, the dump command >>>> output looks more helpful as it can be more easily parsed. >>>> >>>> Just one more question, what are these normal values? >>>> >>>> >>>> The normal values Thomas refers to are the 3 components of the vector >>>> indicating the direction toward the "outside" of the object, which is >>>> normal to the surface the triangle mesh attempts to approximate. This is >>>> used in shading. >>>> >>>> https://en.wikipedia.org/wiki/Vertex_normal >>>> >>>> The cmd.get_volume_field() returns a sparse ndarray with unknow layout >>>> and all dimensions variables depending of the object. How to interpret such >>>> array? >>>> On PyMOL 1.x it returned -1 but in 2.x returned the array. >>>> >>>> The dump command worked (almost) like a charm. >>>> I expect to extract the "dump" array from get_volume_field() so don't >>>> need to write the file just to be read and deleted afterwards. Is it >>>> possible? >>>> >>>> >>>> I'm not familiar with `cmd.get_volume_field()`, so I'll defer to others >>>> on those questions. >>>> >>>> Hope that helps. >>>> >>>> Cheers, >>>> Jared >>>> >>> >> >> -- >> Pedro Sousa Lacerda >> >> >> *Laboratório de Bioinformática e Modelagem Molecular* >> *Faculdade de Farmácia / UFBA* >> >> *@pslacerda* >> >> *+55 71 9 9981-1856* >> > > > -- > Pedro Sousa Lacerda > > > *Laboratório de Bioinformática e Modelagem Molecular* > *Faculdade de Farmácia / UFBA* > > *@pslacerda* > > *+55 71 9 9981-1856* > > -- Pedro Sousa Lacerda *Laboratório de Bioinformática e Modelagem Molecular* *Faculdade de Farmácia / UFBA* *@pslacerda* *+55 71 9 9981-1856* |
From: Pedro L. <psl...@gm...> - 2019-11-10 06:07:45
|
Jared, I did a pull request with the plugin and asked a account on pymolwiki.org. I thought the account email was a bot so I was a bit lame. First I sent an email titled "New Account" with no more text. https://github.com/Pymol-Scripts/Pymol-script-repo/pull/105 Em qua., 30 de out. de 2019 às 20:13, Pedro Lacerda <psl...@gm...> escreveu: > Hi Jared, > > Glad you liked and thank you for the patch and incentive. I'll pull it on > the repo and create a wiki page. > > Best regards, > Pedro Lacerda > > > Em qua, 30 de out de 2019 14:16, Jared Sampson <jar...@co...> > escreveu: > >> Hi Pedro - >> >> I just took a look at the plugin, and it seems quite convenient. I >> imagine using this as a tool to complement PyMOL's default scenes, as a way >> of looking at different representations or objects from the same viewpoint. >> >> Looking at the code, I was curious about all the Q* global variable >> assignments near the top, and thought they might be cleaner and easier to >> maintain as imports. (Plus many of them were unused in the plugin code.) >> Apparently due to the way pymol.Qt is a wrapper for PyQt5, we can't do >> `from pymol.Qt.QtWidgets import *`, but the following does work: >> >> ``` >> from pymol.Qt import QtWidgets, QtCore, QtGui >> ``` >> >> then use e.g. `QtWidgets.QWidget()` in the body of the code; see the >> attached patch (I hope you don't mind my sending it!). As a side note, >> this appears to be—at least unofficially—a preferred way to do it, >> according to an example plugin >> <https://github.com/Pymol-Scripts/pymol2-demo-plugin/blob/master/__init__.py#L51> by >> PyMOL lead developer Thomas Holder (speleo3). >> >> Also, I would encourage you to add your plugin to the PyMOL scripts repo >> <https://github.com/Pymol-Scripts/Pymol-script-repo> on Github, and to >> create a PyMOL Wiki page for it. >> >> Thanks for sharing! >> >> Cheers, >> Jared >> >> On October 26, 2019 at 12:39:35 PM, Pedro Lacerda (psl...@gm...) >> wrote: >> >> And the plugin, of course! >> >> Em sáb, 26 de out de 2019 às 13:37, Pedro Lacerda <psl...@gm...> >> escreveu: >> >>> Hi, >>> >>> I just made a graphical plugin to set and get views. It uses the >>> set_view and get_view functions. >>> >>> It is available in the last option ("Show views") on the "Scene" menu. >>> Double-click to rename a view. Erase it's name to delete it. >>> >>> In order to persist data in the PSE session it stores data into the >>> mesh_clear_selection setting. It was the only way I found. >>> >>> How to store arbitrary data on the session? Some "ostate" string >>> settings are preserved on the PSE session. But not all support set >>> arbitrary data (eg, bg_image_filename). It is very hackish and not a >>> definite solution. >>> >>> Just wondering, maybe a hidden "setting" (not visible to can be be used >>> as a key-value store. It would hold serialized data (eg json or pickle) and >>> have a pair of functions set_key(key, obj) and get(key) that read and write >>> the setting. >>> >>> Another great addition would be able to set arbitrary strings to objects >>> and atoms. But in case of implementing a key-value store would be some >>> overlap. >>> >>> Best regards, >>> >>> >>> [image: image.png] >>> >>> -- >>> Pedro Sousa Lacerda >>> >>> >>> *Laboratório de Bioinformática e Modelagem Molecular* >>> *Faculdade de Farmácia / UFBA* >>> >>> *@pslacerda* >>> >>> *+55 71 9 9981-1856* >>> >> >> >> -- >> Pedro Sousa Lacerda >> >> >> *Laboratório de Bioinformática e Modelagem Molecular* >> *Faculdade de Farmácia / UFBA* >> >> *@pslacerda* >> >> *+55 71 9 9981-1856* >> _______________________________________________ >> PyMOL-users mailing list >> Archives: http://www.mail-archive.com/pym...@li... >> Unsubscribe: >> https://sourceforge.net/projects/pymol/lists/pymol-users/unsubsc >> <https://sourceforge.net/projects/pymol/lists/pymol-users/unsubscribe> >> >> -- Pedro Sousa Lacerda *Laboratório de Bioinformática e Modelagem Molecular* *Faculdade de Farmácia / UFBA* *@pslacerda* *+55 71 9 9981-1856* |
From: Pedro L. <psl...@gm...> - 2019-11-10 04:30:13
|
Hi, According to this page seems that GOLD software craft pseudoatoms to represent lone pairs. https://chemistryandcomputers.wordpress.com/2012/05/31/pymol-tip/ I would expect some `lone_pairs` setting (like `valence` and `RepValence`) would represent it. Is there any way to show lone eletron pairs? -- Pedro Sousa Lacerda *Laboratório de Bioinformática e Modelagem Molecular* *Faculdade de Farmácia / UFBA* *@pslacerda* *+55 71 9 9981-1856* |
From: Thomas H. <tho...@sc...> - 2019-11-05 16:12:53
|
Hi Quyen, This works for me: export QT_QPA_PLATFORM=xcb pymol Hope that helps. Cheers, Thomas On Sun, Nov 3, 2019 at 6:15 AM RDirective <rdi...@gm...> wrote: > > Dear all, > > I have a slight problem with Pymol on Fedora 31. The vanilla distribution runs Gnome on Wayland. Pymol complains that [qt.qpa.plugin: Could not find the Qt platform plugin "wayland" in ""]. The GUI and 3D render will still work but if I were to install qt5-qtwayland-devel to provide the plugin, then the GUI will load but the 3D render no longer shows anything. It is just a blank frame. What can be done about this? > > Best, > Quyen > _______________________________________________ > PyMOL-users mailing list > Archives: http://www.mail-archive.com/pym...@li... > Unsubscribe: https://sourceforge.net/projects/pymol/lists/pymol-users/unsubscribe |
From: Pedro L. <psl...@gm...> - 2019-11-05 14:32:51
|
Update: worked the same for me, but may have impact in other cases: MIN_LEVEL = 0 MAX_LEVEL = 20 LEVEL_RANGE = np.arange(MIN_LEVEL, MAX_LEVEL+0.5, 0.5) def _get_map(map_name): dump_fhandle, dump_fname = tempfile.mkstemp() open(dump_fhandle).close() try: levels = {} for level in LEVEL_RANGE: # dump level cmd.isodot('_i', map_name, level) cmd.dump(dump_fname, '_i') cmd.delete('_i') # load level with warnings.catch_warnings(): xyz = np.loadtxt(dump_fname) warnings.simplefilter("ignore") # handle empty maps if len(xyz) == 0: xyz = np.ndarray((0, 3)) xyz = xyz[:, :3] levels[level] = xyz return levels finally: os.unlink(dump_fname) Em ter., 5 de nov. de 2019 às 11:13, Pedro Lacerda <psl...@gm...> escreveu: > For the sake of completeness here is some working code. > > `dump` exports the surface of map representations. They are all surfaces. > > So I had to dump the map at each level (0.5 by 0.5 increment) in order to > get a filled volume. If you concatenate all xyz arrays you get the filled > volume of the level 20 surface. > > Thank you for the support. > > > MIN_LEVEL = 0 > MAX_LEVEL = 20 > LEVEL_RANGE = np.arange(MIN_LEVEL, MAX_LEVEL+0.5, 0.5) > > > def _get_map(map_name): > dump_fhandle, dump_fname = tempfile.mkstemp() > open(dump_fhandle).close() > > try: > levels = {} > skip = False > for level in LEVEL_RANGE: > if not skip: > # dump level > cmd.isodot('_i', map_name, level) > cmd.dump(dump_fname, '_i') > cmd.delete('_i') > > # load level > with warnings.catch_warnings(): > xyz = np.loadtxt(dump_fname) > warnings.simplefilter("ignore") > > # handle empty maps > if skip or len(xyz) == 0: > xyz = np.ndarray((0, 3)) > skip = True > > xyz = xyz[:, :3] > levels[level] = xyz > > return levels > finally: > os.unlink(dump_fname) > > Em seg., 4 de nov. de 2019 às 01:38, Pedro Lacerda <psl...@gm...> > escreveu: > >> Hi Jared, >> >> So COLLADA exports some kind of already rendered 3D image. >> >> Took me some time to figure out if dump exports the map points or >> something specific to the surface representation. In fact, it is yet to be >> figured out. >> >> Dump can export at least map and surface objects. >> >> When I export two different overlapping surfaces of the same map there is >> points of the outer surface that aren't in the inner. I expected all points >> of the inner to be present in both dumps. >> >> So I guess that when I dump surface objects it exports newly created >> points of the enclosed volume of that surface. Is it correct? >> >> To export the map directly would preserve the original points? (Which I >> hope to be the original grid count of the server's method) >> >> Is overlap is defined for map objects? >> >> >> Sorry maybe I'm not saying very clear. >> >> And about the get_volume_field(), if I remember correctly it returned on >> a call an ndarray of shape (28, 26, 15) and on other call an ndarray of >> shape (28, 28, 16). Something like that. >> >> >> Cheers, >> >> >> Em sex, 1 de nov de 2019 10:33, Jared Sampson <jar...@co...> >> escreveu: >> >>> Hi Pedro - >>> >>> The COLLADA option exports unlabeled mesh objects so I couldn't figure >>> out which one is acceptor or donor. >>> >>> Yes, you're correct about that. This is due to the fact that COLLADA >>> export uses geometry after it is prepared for ray tracing, which doesn't >>> know about object names (see the primary function call >>> <https://github.com/schrodinger/pymol-open-source/blob/master/layer1/COLLADA.cpp#L667>). >>> It might be interesting/useful to export things in a more granular way >>> using pre-ray-tracing information as it is stored in the PyMOL session, but >>> that would involve substantial effort, and wasn't included when we planned >>> this export feature. >>> >>> If you wanted to know which mesh is which, you could export objects >>> one-at-a-time by disabling all the others, although to me, the dump command >>> output looks more helpful as it can be more easily parsed. >>> >>> Just one more question, what are these normal values? >>> >>> >>> The normal values Thomas refers to are the 3 components of the vector >>> indicating the direction toward the "outside" of the object, which is >>> normal to the surface the triangle mesh attempts to approximate. This is >>> used in shading. >>> >>> https://en.wikipedia.org/wiki/Vertex_normal >>> >>> The cmd.get_volume_field() returns a sparse ndarray with unknow layout >>> and all dimensions variables depending of the object. How to interpret such >>> array? >>> On PyMOL 1.x it returned -1 but in 2.x returned the array. >>> >>> The dump command worked (almost) like a charm. >>> I expect to extract the "dump" array from get_volume_field() so don't >>> need to write the file just to be read and deleted afterwards. Is it >>> possible? >>> >>> >>> I'm not familiar with `cmd.get_volume_field()`, so I'll defer to others >>> on those questions. >>> >>> Hope that helps. >>> >>> Cheers, >>> Jared >>> >> > > -- > Pedro Sousa Lacerda > > > *Laboratório de Bioinformática e Modelagem Molecular* > *Faculdade de Farmácia / UFBA* > > *@pslacerda* > > *+55 71 9 9981-1856* > -- Pedro Sousa Lacerda *Laboratório de Bioinformática e Modelagem Molecular* *Faculdade de Farmácia / UFBA* *@pslacerda* *+55 71 9 9981-1856* |
From: Pedro L. <psl...@gm...> - 2019-11-05 14:14:03
|
For the sake of completeness here is some working code. `dump` exports the surface of map representations. They are all surfaces. So I had to dump the map at each level (0.5 by 0.5 increment) in order to get a filled volume. If you concatenate all xyz arrays you get the filled volume of the level 20 surface. Thank you for the support. MIN_LEVEL = 0 MAX_LEVEL = 20 LEVEL_RANGE = np.arange(MIN_LEVEL, MAX_LEVEL+0.5, 0.5) def _get_map(map_name): dump_fhandle, dump_fname = tempfile.mkstemp() open(dump_fhandle).close() try: levels = {} skip = False for level in LEVEL_RANGE: if not skip: # dump level cmd.isodot('_i', map_name, level) cmd.dump(dump_fname, '_i') cmd.delete('_i') # load level with warnings.catch_warnings(): xyz = np.loadtxt(dump_fname) warnings.simplefilter("ignore") # handle empty maps if skip or len(xyz) == 0: xyz = np.ndarray((0, 3)) skip = True xyz = xyz[:, :3] levels[level] = xyz return levels finally: os.unlink(dump_fname) Em seg., 4 de nov. de 2019 às 01:38, Pedro Lacerda <psl...@gm...> escreveu: > Hi Jared, > > So COLLADA exports some kind of already rendered 3D image. > > Took me some time to figure out if dump exports the map points or > something specific to the surface representation. In fact, it is yet to be > figured out. > > Dump can export at least map and surface objects. > > When I export two different overlapping surfaces of the same map there is > points of the outer surface that aren't in the inner. I expected all points > of the inner to be present in both dumps. > > So I guess that when I dump surface objects it exports newly created > points of the enclosed volume of that surface. Is it correct? > > To export the map directly would preserve the original points? (Which I > hope to be the original grid count of the server's method) > > Is overlap is defined for map objects? > > > Sorry maybe I'm not saying very clear. > > And about the get_volume_field(), if I remember correctly it returned on a > call an ndarray of shape (28, 26, 15) and on other call an ndarray of shape > (28, 28, 16). Something like that. > > > Cheers, > > > Em sex, 1 de nov de 2019 10:33, Jared Sampson <jar...@co...> > escreveu: > >> Hi Pedro - >> >> The COLLADA option exports unlabeled mesh objects so I couldn't figure >> out which one is acceptor or donor. >> >> Yes, you're correct about that. This is due to the fact that COLLADA >> export uses geometry after it is prepared for ray tracing, which doesn't >> know about object names (see the primary function call >> <https://github.com/schrodinger/pymol-open-source/blob/master/layer1/COLLADA.cpp#L667>). >> It might be interesting/useful to export things in a more granular way >> using pre-ray-tracing information as it is stored in the PyMOL session, but >> that would involve substantial effort, and wasn't included when we planned >> this export feature. >> >> If you wanted to know which mesh is which, you could export objects >> one-at-a-time by disabling all the others, although to me, the dump command >> output looks more helpful as it can be more easily parsed. >> >> Just one more question, what are these normal values? >> >> >> The normal values Thomas refers to are the 3 components of the vector >> indicating the direction toward the "outside" of the object, which is >> normal to the surface the triangle mesh attempts to approximate. This is >> used in shading. >> >> https://en.wikipedia.org/wiki/Vertex_normal >> >> The cmd.get_volume_field() returns a sparse ndarray with unknow layout >> and all dimensions variables depending of the object. How to interpret such >> array? >> On PyMOL 1.x it returned -1 but in 2.x returned the array. >> >> The dump command worked (almost) like a charm. >> I expect to extract the "dump" array from get_volume_field() so don't >> need to write the file just to be read and deleted afterwards. Is it >> possible? >> >> >> I'm not familiar with `cmd.get_volume_field()`, so I'll defer to others >> on those questions. >> >> Hope that helps. >> >> Cheers, >> Jared >> > -- Pedro Sousa Lacerda *Laboratório de Bioinformática e Modelagem Molecular* *Faculdade de Farmácia / UFBA* *@pslacerda* *+55 71 9 9981-1856* |
From: Pedro L. <psl...@gm...> - 2019-11-04 04:38:50
|
Hi Jared, So COLLADA exports some kind of already rendered 3D image. Took me some time to figure out if dump exports the map points or something specific to the surface representation. In fact, it is yet to be figured out. Dump can export at least map and surface objects. When I export two different overlapping surfaces of the same map there is points of the outer surface that aren't in the inner. I expected all points of the inner to be present in both dumps. So I guess that when I dump surface objects it exports newly created points of the enclosed volume of that surface. Is it correct? To export the map directly would preserve the original points? (Which I hope to be the original grid count of the server's method) Is overlap is defined for map objects? Sorry maybe I'm not saying very clear. And about the get_volume_field(), if I remember correctly it returned on a call an ndarray of shape (28, 26, 15) and on other call an ndarray of shape (28, 28, 16). Something like that. Cheers, Em sex, 1 de nov de 2019 10:33, Jared Sampson <jar...@co...> escreveu: > Hi Pedro - > > The COLLADA option exports unlabeled mesh objects so I couldn't figure out > which one is acceptor or donor. > > Yes, you're correct about that. This is due to the fact that COLLADA > export uses geometry after it is prepared for ray tracing, which doesn't > know about object names (see the primary function call > <https://github.com/schrodinger/pymol-open-source/blob/master/layer1/COLLADA.cpp#L667>). > It might be interesting/useful to export things in a more granular way > using pre-ray-tracing information as it is stored in the PyMOL session, but > that would involve substantial effort, and wasn't included when we planned > this export feature. > > If you wanted to know which mesh is which, you could export objects > one-at-a-time by disabling all the others, although to me, the dump command > output looks more helpful as it can be more easily parsed. > > Just one more question, what are these normal values? > > > The normal values Thomas refers to are the 3 components of the vector > indicating the direction toward the "outside" of the object, which is > normal to the surface the triangle mesh attempts to approximate. This is > used in shading. > > https://en.wikipedia.org/wiki/Vertex_normal > > The cmd.get_volume_field() returns a sparse ndarray with unknow layout and > all dimensions variables depending of the object. How to interpret such > array? > On PyMOL 1.x it returned -1 but in 2.x returned the array. > > The dump command worked (almost) like a charm. > I expect to extract the "dump" array from get_volume_field() so don't need > to write the file just to be read and deleted afterwards. Is it possible? > > > I'm not familiar with `cmd.get_volume_field()`, so I'll defer to others on > those questions. > > Hope that helps. > > Cheers, > Jared > |