Useful chimera commands: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 13: | Line 13: | ||
This command will color the selected atoms by there charge. | This command will color the selected atoms by there charge. | ||
== Example Command-line script to save an image == | |||
open ../poses_clust_int.mol2 | |||
open ../rec.crg.pdb | |||
surface #1 | |||
color orange #1:.B | |||
color byhet,a #1:.B | |||
focus #0 | |||
transp 80,s #1 | |||
sop cap off | |||
set bg_color white | |||
unset depthCue | |||
set silhouette | |||
set bg_color white | |||
unset depthCue | |||
set silhouette | |||
focus #0 | |||
turn y 160 | |||
turn x 20 | |||
~display | |||
display #0.1 | |||
copy file ./C648_1.png png width 3840.0 height 1941.0 supersample 1 | |||
# this copy command will save the image, give the full path where you want to save the image | |||
# you may want to ajust the width and height. | |||
copy file C:\Users\user\Desktop\name\system\public_structures\complex/image25.png png width 801.0 height 849.0 supersample 1 | |||
Here are some tutorials: | Here are some tutorials: | ||
*[[Chimera Tutorial (AMPC)]] | *[[Chimera Tutorial (AMPC)]] | ||
*[[Chimera Tutorial (Delta opioid receptor)]] | *[[Chimera Tutorial (Delta opioid receptor)]] |
Latest revision as of 10:10, 24 March 2020
Command line
You might like to make a small molecules (eg. HEM) part of the surface of the protein instead of separate:
surfcat one #1:1-290 surf one probeRadius 1.4
You might want to color by partial charge:
rangecolor charge,a min red 0 white max blue sel rangecolor charge,a -1.0 red 0.0 white 1.0 blue sel
This command will color the selected atoms by there charge.
Example Command-line script to save an image
open ../poses_clust_int.mol2 open ../rec.crg.pdb surface #1 color orange #1:.B color byhet,a #1:.B focus #0 transp 80,s #1 sop cap off set bg_color white unset depthCue set silhouette set bg_color white unset depthCue set silhouette focus #0 turn y 160 turn x 20 ~display display #0.1 copy file ./C648_1.png png width 3840.0 height 1941.0 supersample 1 # this copy command will save the image, give the full path where you want to save the image # you may want to ajust the width and height. copy file C:\Users\user\Desktop\name\system\public_structures\complex/image25.png png width 801.0 height 849.0 supersample 1
Here are some tutorials: