<div dir="ltr"><pre>Dear Rebecca, I have used Elaine's suggestion before, and it works well, as in the following alias:<br><br>alias ^pbond dist sel; setattr p label "" sel; setattr p drawMode 1 sel; setattr p radius 0.03 sel<br><br></pre><pre>which places a thin black cylinder between two selected atoms.<br><br><br></pre><pre>To make invisible dummy atoms at arbitrary coordinates, I would use the "mc" accelerator ("ac mc" on the command line), which places and selects a dummy atom at the center of rotation.<br><br></pre><pre>So something like: cofr x1,y1,z1; ac mc; namesel atom1; cofr x2,y2,z2; ac mc; namesel atom2; sel atom1|atom2; pbond; vdwdefine 0.01 sel; transparency 100,a sel<br><br></pre><pre>should work.<br><br></pre><pre>Cheers,<br></pre><pre>Oli.<br></pre><pre><br><br>------------------------------<br>Thank you! Theoretically if I was to create dummy atoms with coordinates
at the locations where I want the cylinders to end, I could connect them
with pseudobonds. I can easily shape my data that way, and if it doesn't
work the BILD files will probably be fine. Thanks for the help!
Cheers,
Rebecca
On 1/4/16, 5:20 PM, "Elaine Meng" <<a href="http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users">meng at cgl.ucsf.edu</a>> wrote:
><i>Hi Rebecca,
</i>><i>There are two approaches for adding cylinders independent of atomsŠ but I
</i>><i>don¹t know if either will be satisfactory:
</i>><i>
</i>><i>(1) ³shape cylinder² is command-line and doesn¹t require using atoms as
</i>><i>endpoints, but it doesn¹t allow specifying endpoint coordinates directly.
</i>><i> A cylinder is specified by only its center, height, radius, and a
</i>><i>rotation angle. I don¹t think it is easy to figure out what angle gives
</i>><i>the desired endpoint coordinates. (We¹ve discussed the need to improve
</i>><i>this, but it may be deferred to our next-generation software in
</i>><i>development.)
</i>><i><<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__www.rbvi.ucsf.edu_chi">https://urldefense.proofpoint.com/v2/url?u=http-3A__www.rbvi.ucsf.edu_chi</a>
</i>><i>mera_docs_UsersGuide_midas_shape.html-23cylinder&d=CwIFaQ&c=TzEZu9LIcihmW3
</i>><i>7vx9Ah6w&r=Z2BqCMuwlxQxgSzUiCDaK4rAd15j9FSes0phjplcAGU&m=ALnOY5nR3xnyH6akd
</i>><i>4eXf6HdP_BL9dt0gv_zz3oMdq8&s=9vZCIh2K2i-8UrGF7HkSZwZwT7CRFcS9RUZsHUsson4&e
</i>><i>= >
</i>><i>
</i>><i>(2) BILD-format input allows specifying endpoint coordinates of a
</i>><i>cylinder, but it is not a command. You generate a BILD text file
</i>><i>describing the objects and read it in to Chimera. BILD format is very
</i>><i>simple, however:
</i>><i><<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__www.rbvi.ucsf.edu_chi">https://urldefense.proofpoint.com/v2/url?u=http-3A__www.rbvi.ucsf.edu_chi</a>
</i>><i>mera_docs_UsersGuide_bild.html&d=CwIFaQ&c=TzEZu9LIcihmW37vx9Ah6w&r=Z2BqCMu
</i>><i>wlxQxgSzUiCDaK4rAd15j9FSes0phjplcAGU&m=ALnOY5nR3xnyH6akd4eXf6HdP_BL9dt0gv_
</i>><i>zz3oMdq8&s=2A5wPT06BJ7QN1TDyA4kS36ILONzhA703a7xRpdnJKY&e= >
</i>><i>
</i>><i>The objects created with ³shape² are surface models, so you can change
</i>><i>their colors afterward. The BILD objects are not surface models and
</i>><i>cannot be recolored and do not work well with transparency.
</i>><i>
</i>><i>There are two approaches that depend on atoms:
</i>><i>
</i>><i>(1) pseudobonds can be created with the ³distance² command (or atom pairs
</i>><i>can be read in from a file with Pseudobond Reader), but pseudobonds
</i>><i>require atoms as endpoints.
</i>><i><<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__www.rbvi.ucsf.edu_chi">https://urldefense.proofpoint.com/v2/url?u=http-3A__www.rbvi.ucsf.edu_chi</a>
</i>><i>mera_docs_UsersGuide_midas_distance.html&d=CwIFaQ&c=TzEZu9LIcihmW37vx9Ah6w
</i>><i>&r=Z2BqCMuwlxQxgSzUiCDaK4rAd15j9FSes0phjplcAGU&m=ALnOY5nR3xnyH6akd4eXf6HdP
</i>><i>_BL9dt0gv_zz3oMdq8&s=tUGhl0z5yTsTqr2tyEgexdraCTB8o2JtwjuJZTgMwvo&e= >
</i>><i><<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__www.rbvi.ucsf.edu_chi">https://urldefense.proofpoint.com/v2/url?u=http-3A__www.rbvi.ucsf.edu_chi</a>
</i>><i>mera_docs_ContributedSoftware_pbreader_pbreader.html&d=CwIFaQ&c=TzEZu9LIci
</i>><i>hmW37vx9Ah6w&r=Z2BqCMuwlxQxgSzUiCDaK4rAd15j9FSes0phjplcAGU&m=ALnOY5nR3xnyH
</i>><i>6akd4eXf6HdP_BL9dt0gv_zz3oMdq8&s=nRvWQ2FPg5n33Obqd9Bee1ovSNmgCCdbaT1EH6Uc1
</i>><i>I8&e= >
</i>><i>
</i>><i>(2) the ³define² command (or Axes/Planes/Centroids) tool will show
</i>><i>cylindrical axes that are best fits to specified sets of atoms. However,
</i>><i>there is currently little control over lengthŠ it is automatically
</i>><i>determined from the atomic coordinates.
</i>><i><<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__www.rbvi.ucsf.edu_chi">https://urldefense.proofpoint.com/v2/url?u=http-3A__www.rbvi.ucsf.edu_chi</a>
</i>><i>mera_docs_UsersGuide_midas_define.html&d=CwIFaQ&c=TzEZu9LIcihmW37vx9Ah6w&r
</i>><i>=Z2BqCMuwlxQxgSzUiCDaK4rAd15j9FSes0phjplcAGU&m=ALnOY5nR3xnyH6akd4eXf6HdP_B
</i>><i>L9dt0gv_zz3oMdq8&s=t9I-WC_-VvEvmTfphtU3ey2GT0sMRiFtO62hFkRj7Rk&e= >
</i>><i>
</i>><i>I hope this helps,
</i>><i>Elaine
</i>><i>----------
</i>><i>Elaine C. Meng, Ph.D.
</i>><i>UCSF Computer Graphics Lab (Chimera team) and Babbitt Lab
</i>><i>Department of Pharmaceutical Chemistry
</i>><i>University of California, San Francisco
</i>><i>
</i>>><i> On Jan 4, 2016, at 12:09 PM, Rebecca Swett <<a href="http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users">Rebecca_Swett at vrtx.com</a>>
</i>>><i>wrote:
</i>>><i>
</i>>><i> Hi all,
</i>>><i> I'm trying to add some 3d shapes to a visualization. I was wondering if
</i>>><i>it would be possible to draw either a cylinder or tube given starting
</i>>><i>and ending coordinates rather than atom names/numbers or centroid? For
</i>>><i>example, if I had this coordinate pair:
</i>>><i> 6.17 1.10 -15.33 20.82 -0.70 -8.39
</i>>><i>
</i>>><i> What would be the best way to go about drawing a line of some sort
</i>>><i>between those two points? I have dozens of pairs of coordinates so
</i>>><i>something command line would be ideal.
</i>>><i> Cheers,
</i>>><i> Rebecca
</i>><i>
</i>
This email message and any attachments are confidential and intended for use by the addressee(s) only. If you are not the intended recipient, please notify me immediately by replying to this message, and destroy all copies of this message and any attachments. Thank you.</pre></div>