[Chimera-users] Regarding saving image in chimera nogui
NAGARAJAN
nagabioinfostar at gmail.com
Fri May 11 16:28:22 PDT 2018
Hi,
I just tried these commands
from chimera import runCommand
runCommand("open 2trx.pdb")
runCommand("color red")
runCommand("surf")
png_name = "str.png"
runCommand("copy file " + png_name)
but getting error like "Need graphics to save images (or use headless Linux
version)"
Thank you
On Fri, May 11, 2018 at 6:25 PM, NAGARAJAN <nagabioinfostar at gmail.com>
wrote:
> Hi,
>
> Thanks for the quick reply. I have previous experience in using Chimera
> GUI but not in nogui.
>
> The main thing that I dont know is to use those commands in nogui mode.
>
> For example: for saving image, I have used "runCommand("copy str.png")
> . but it is now working
>
> Is there any link to get the informations to use commands in nogui mode
>
> Thank you
>
>
>
>
>
> On Fri, May 11, 2018 at 6:19 PM, Elaine Meng <meng at cgl.ucsf.edu> wrote:
>
>> Hi,
>> I guess you will be using commands. Here are commands for your steps
>> 1. open
>> 2. surface
>> 3. color
>> 4, copy
>> Of course, you will have to include more things in those commands,
>> various options, residue numbers, filenames etc. that you should test in
>> the GUI first to make sure they do what you want. See also the list of
>> commands for anything else you might want to do like rotate (turn)
>> translate (move) zoom (scale) … and click on the link to see each command’s
>> help with information about the command syntax and possible options.
>> <http://www.rbvi.ucsf.edu/chimera/docs/UsersGuide/framecommand.html>
>>
>> See also:
>> getting started with commands
>> <http://www.rbvi.ucsf.edu/chimera/docs/UsersGuide/tutorials/
>> getting_started.html>
>>
>> tips for making nice images
>> <http://www.rbvi.ucsf.edu/chimera/docs/UsersGuide/print.html#tips>
>>
>> I hope this helps,
>> Elaine
>> -----
>> Elaine C. Meng, Ph.D.
>> UCSF Chimera(X) team
>> Department of Pharmaceutical Chemistry
>> University of California, San Francisco
>>
>> > On May 11, 2018, at 4:09 PM, NAGARAJAN <nagabioinfostar at gmail.com>
>> wrote:
>> >
>> > Hi all,
>> > I have to use chimera --nogui and do the following
>> >
>> > 1. load a structure
>> > 2. make Surface representation
>> > 3. Color surface of selected residues with a selected color
>> > 4. save image
>> >
>> > Any idea how to do the 4 steps in chimera --nogui?
>> > Thank you
>>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://plato.cgl.ucsf.edu/pipermail/chimera-users/attachments/20180511/0e34a010/attachment.html>
More information about the Chimera-users
mailing list