Make command-line text bigger
Hi Lothar, I don't know what problem you are encountering using ReadStdin on Windows. It may have something to do with Windows not allowing stdin/stdout for GUI apps. On Mac it seems to work, I include a little test of it below. But it looks like a horrible solution for your problem of small command-line text since it spews tons of output from the commands. I don't know of a way to increase the Chimera command-line text size. I often give presentations with ChimeraX (and in the past Chimera) where I want people to read the command-line text. But I also want them to be able to read the menu entries, the buttons I click, everything. And all those text items are about the same size. So what I do is make all the text bigger. I do this by simply lowering the display resolution. Maybe there is a better way on Windows, does Windows system settings allow you to increase all font sizes? Of course when you make text twice as big the user interface crowds out the graphics. But there is no way to have everything. Tom goddard$ ~/bin/chimera open 1a0m CMD open 1a0m #0, chain A: α-conotoxin [TYR15]-epi #0, chain B: α-conotoxin [TYR15]-epi 1a0m opened END turn y 10 10 CMD turn y 10 10 END
On Apr 28, 2020, at 5:24 PM, Esser, Lothar (NIH/NCI) [E] <esserlo@mail.nih.gov> wrote:
Hi,
This is great. Thanks. Can I ask you one quick question ? I developed a presentation of chimera features on my Linux computer but have to use a Window10 laptop for a webex session. While I was able (with some effort) to run chimera from the Command Prompt Console, I cannot get the Tools->Utilities->ReadStdin to work. Is this expected ? Is there a workaround? The reason for that is that I want to show the commands in large fonts for people to read. The usual Chimera Command line has a very small font.... can that be configured to use a large font ?
Thanks, Lothar
-----Original Message----- From: Tom Goddard <goddard@sonic.net> Sent: Tuesday, April 28, 2020 2:14 PM To: chimera-users@cgl.ucsf.edu BB <chimera-users@cgl.ucsf.edu> Cc: Esser, Lothar (NIH/NCI) [E] <esserlo@mail.nih.gov> Subject: Re: [Chimera-users] Surfaces and transparency
The transparency command should work on a custom colored surface. As Lothar points out the Actions / Surface / Transparency menu does work. This was a bug in the transparency command. I fixed it. Will be in tonight's Chimera builds.
Tom
On Apr 28, 2020, at 9:05 AM, Elaine Meng <meng@cgl.ucsf.edu> wrote:
I can only guess that you colored the surface by zone at some point, turning it into a custom-colored surface. If you don't do any zone coloring or other custom coloring by vertex (e.g. electrostatic potential), I expect the transparency to work, regardless of whether you used surfcat. Elaine
On Apr 28, 2020, at 8:28 AM, Elaine Meng <meng@cgl.ucsf.edu> wrote:
Hi Lothar, It is as expected because zone coloring is custom coloring by vertex. If you use zone coloring you have to make the atom colors transparent first, as you said.
If you don't use zone coloring but simply specify colors by chains directly, the transparency will work, as in your example.
color col_chain_A #0:.A Etc.
I don't know what's going on when you can't recolor because it works for me both using the surface category as the specification, as in the first set of example commands below, or using different specifications, as in the second set of example commands below. I can color the chain and the surface as many times as I want, or even specify only the atoms, or ribbon, or surface:
open 1zik surfcat cata :.a surfcat catb :.b surf cata surf catb trans 50,s color green cata color white,s cata color red,r cata ...
It also works to recolor using an atomspec that is not the same as the surface category, e.g.
color orange :lys color magenta,s :.a color blue,s :1-5
I hope this helps, Elaine ----- Elaine C. Meng, Ph.D. UCSF Chimera(X) team Department of Pharmaceutical Chemistry University of California, San Francisco
On Apr 27, 2020, at 4:10 PM, Esser, Lothar (NIH/NCI) [E] <esserlo@mail.nih.gov> wrote:
Hi, Elaine,
Yes, this is trivial. But I rarely want a tan colored surface. Surface #0 Scolor #0 zone #0 range 3
Trans 50,s #0
Does not work for me. I tried to color a molecule with 6 chains by chain. I define a different color for each chain with colordef, color each chain (color mycolor #:.A etc.) and followed by scolor #0 zone #0 range 3 That works to get the surface colored nicely. However I can't get it transparent easily.
Your trick with surfcat is rather interesting in its process. I can do Open model.pdb # it has six chains. Then colordef six different colors And then Surcat mysurf #0 Surface mysurf
Which gives me a uniformly tan surface but the script goes on to color col_chain_A #0:.A Etc. and interestingly the surface changes its color to reflect the chain color - exactly what I needed. Trans 50,s mysurf makes it all nice and transparent. Great. (Even though I don't understand why it works *after* the surface was generated) But I can never change the color again. Say I think I was wrong with one color. I can change the model but I can't seem to get color new_color_A #0:.A to work. No automatic update. The chain of course changes color but not the surface. Surface mysurf also does not update it. However I can do surfcat mysurf1 #0 Surface mysurf1 That works. However all this is rather cumbersome - I am likely doing something unintended. I wanted to animate a change in color of one chain but having a large number of surfcats new_nameX to do seems expensive.
So while we are at it, surfaces with electrostatic potential or hydrophobicity or bfactors cannot be made transparent ?
Thanks, Lothar
-----Original Message----- From: Elaine Meng <meng@cgl.ucsf.edu> Sent: Monday, April 27, 2020 6:31 PM To: Esser, Lothar (NIH/NCI) [E] <esserlo@mail.nih.gov> Cc: chimera-users@cgl.ucsf.edu BB <chimera-users@cgl.ucsf.edu> Subject: Re: [Chimera-users] Surfaces and transparency
Hi Lothar, I don't understand... or at least I'm not seeing the problem:
open 3nha surface trans 50,s
(with or without #0, and "surface :adp" instead of "surface") all work fine for me. All I can say is to check the Model Panel to make sure your surface is really #0. If you have a reproducible series of commands where it doesn't work (and you are NOT using custom surface coloring by vertex), then you could report it using menu: Help... Report a Bug.
I hope this helps, Elaine ----- Elaine C. Meng, Ph.D. UCSF Chimera(X) team Department of Pharmaceutical Chemistry University of California, San Francisco
On Apr 27, 2020, at 1:43 PM, Esser, Lothar (NIH/NCI) [E] <esserlo@mail.nih.gov> wrote:
Hi, Elaine,
That's a neat trick. It only works with surfcat.
If I do
surface #0 trans 50,s #0 No matter what I do the transparency does not change.
But with Surfcat mystuff Surface mystuff Trans 50,s
It works as advertised. Also, I noticed that in the first case with an ineffective "trans 50,s" on the command line, the menu Actions->Surface->Transparency->50% did work. It's only that I rarely use the menu .... partly because changes in transparency may be animated by a script.
Thanks. Lothar
-----Original Message----- From: Elaine Meng <meng@cgl.ucsf.edu> Sent: Monday, April 27, 2020 12:28 PM To: Esser, Lothar (NIH/NCI) [E] <esserlo@mail.nih.gov> Cc: chimera-users@cgl.ucsf.edu BB <chimera-users@cgl.ucsf.edu> Subject: Re: [Chimera-users] Surfaces and transparency
Hi Lothar, It is not related to the VDW parameters, but to automatic classification of sets of atoms and excluding them from what is (by default) enclosed in a surface. For example, people usually don't expect their ligands, solvent, or metal ions to be lumped together with the macromolecule, so there are automatically defined groupings: <http://www.rbvi.ucsf.edu/chimera/docs/UsersGuide/midas/surface.htm l#s urfcats>
You can use "surfcat" to group the atoms any way you want, however. E.g. commands
surfcat mystuff :adp,mg surface mystuff
The ion is shown as "sphere" (full VDW radius) and if colored separately may show "through" the surface unless you make it smaller, and surface is "chunky" unless you increase vertex density.
repr bs :mg surface mystuff vertexDensity 10
<http://www.rbvi.ucsf.edu/chimera/docs/UsersGuide/midas/msms.html> <http://www.rbvi.ucsf.edu/chimera/docs/UsersGuide/representation.ht ml# surfaces>
The transparency command works fine for the molecular surface EXCEPT when the surface has custom coloring by vertex (electrostatic potential, for example). For custom coloring by vertex you would have to specify the transparency at the time of coloring.
For example, either of these works fine for the surface that I showed with the commands above, as it was just shown in the initial tan color:
trans 50,s trans 50,s #0
However, you can color by atomic patch and have it retain its transparency, e.g. the following command applies heteroatom coloring to the atoms in mystuff (ADP, MG although they were already colored that way) as well as the corresponding atomic patches in the molecular surface:
color byhet mystuff
Or something like this will also color both the atoms and the corresponding patches in the molecular surface while the surface retains transparency:
color orange :adp
I hope this helps, Elaine ----- Elaine C. Meng, Ph.D. UCSF Chimera(X) team Department of Pharmaceutical Chemistry University of California, San Francisco
On Apr 26, 2020, at 11:20 AM, Esser, Lothar (NIH/NCI) [E] <esserlo@mail.nih.gov> wrote:
Hi, In making surfaces around ligands and making them transparent, I ran into some problems:
Using open/fetch 3NHA I have a molecule in front of me with ADP Mg bound. Creating a surface around ADP is easy but it won’t cover Mg at all. It seems that single ions like Mg and also single water molecules don’t get surfaces around them. Is this because of default vdW values that need to be manually adjusted ?
Let’s say I have a surface around ADP and want to make it transparent, I thought
Transparency 50,s #0
Should work but it did not. There are some work arounds using transparent colors through the use of colordef. However, I had planned to color the surface by atom and used scolor #0 zone #0 which worked but I could not get it transparent with transparency statements. However, I can make atoms transparent then use
scolor #0 zone #0 #which makes the surface also transparent and hides the ball-and-stick model. To make it show up I can use transparency 0,a #0 and again the stick model appears under the transparent surface.
Is there a simpler way ? A way that can be applied to other surfaces that were for instance colored with say potential, hydrophobicity, bfactor key etc ?
Thanks Lothar
_______________________________________________ Chimera-users mailing list: Chimera-users@cgl.ucsf.edu Manage subscription: http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users
_______________________________________________ Chimera-users mailing list: Chimera-users@cgl.ucsf.edu Manage subscription: http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users
participants (1)
-
Tom Goddard