[chimerax-users] displaying ribbon and tube simultaneously
Elaine Meng
meng at cgl.ucsf.edu
Thu Apr 23 11:19:16 PDT 2020
Thanks Tom, that does look better. Here is an example of showing helix +2 on each end in the tube model and hiding all but those same residues (helix +2 on each end) in the ribbon model. I just didn't try long enough nubbins before. Just 2 seems to be enough in this case: 2gbp helix containing residues 152-169. For the following example commands, the model already displayed with tube helices is #2,and the one with regular ribbons #1.
~cartoon
cartoon #1:130-180
[... that was just to show a longer stretch without showing the entire protein which would be too busy...]
cartoon #2:150-171
~cartoon #1:150-171
> On Apr 23, 2020, at 11:05 AM, Tom Goddard <goddard at sonic.net> wrote:
>
> Hi Joel,
>
> If you try to use the trick of two copies of the structure I see from Elaine's picture that the two copies don't join very well. I would suspect that if you include a much longer stretch (10 residues) of the tube helix model beyond the ends of the tube then the match of the ends to the copy without the tubes will become better. It is just a theory. The tube style changes the spline that the ribbon passes through but the effects of the change in spline shape caused by the tube should fall off if you move many residues away from the tube helix ends. I have not tried it.
>
> Tom
>
>
>> On Apr 23, 2020, at 10:48 AM, Elaine Meng <meng at cgl.ucsf.edu> wrote:
>>
>> Hi Joel,
>> Not really, with details below. The "cartoon style" settings are per-model, disallowing two different styles in the same model.
>> <http://rbvi.ucsf.edu/chimerax/docs/user/commands/cartoon.html#subcommands>
>>
>> I was hoping I could simply open two copies and show the complementary residue ranges in the different styles, hiding the rest of the cartoon in each. Unfortunately the ends don't join smoothly. You could try to fudge it with showing an additional residue of overlap and/or making the tube fat and/or viewing from a strategic angle, but it may not look very good. It was fairly ugly in my experiments.
>>
>> Although both models' cartoon paths pass through the CA positions exactly, you can't turn off display precisely at the CA, but only the cartoon segment per residue, which has the CA in the middle, not the end.
>>
>> I also tried 100% transparency in case that was any different than simply hiding the cartoon of some residues, but it gave the same result.
>>
>> The least bad, at least in my couple of test cases, was to show helix range + 1 on each end in the tube model, and all but the helix range in the ribbon model. Attached images of (1) that (tube has helix +1 on each end), (2) completely disjoint, complementary ranges displayed (3) more of the ribbon model shown so you can see how the paths diverge.
>>
>> We plan to eventually add helix axis calculations that would display a straight cylinder. Maybe that would better accomplish your goal. Currently available alternatives include just creating a straight cylinder as an object with BILD format or as a surface model with the recently added "shape" command, but it may be difficult to get the dimensions and placement just right.
>>
>> <http://rbvi.ucsf.edu/chimerax/docs/user/commands/shape.html>
>> <http://rbvi.ucsf.edu/chimerax/docs/user/formats/bild.html>
>>
>> I hope this helps,
>> Elaine
>> -----
>> Elaine C. Meng, Ph.D.
>> UCSF Chimera(X) team
>> Department of Pharmaceutical Chemistry
>> University of California, San Francisco
>>
>> <plus1.png><disjoint.png><allribbon.png>
>>
>>
>>> On Apr 23, 2020, at 9:59 AM, Joel Meyerson <jrm2008 at med.cornell.edu> wrote:
>>>
>>> Hi,
>>> I would like to display a model as a ribbon, but then specify a single helix to show as a tube. So far I’ve only been able to show the model either entirely as a ribbon, or entirely as tubes. Is there syntax I can use to blend the two helix styles?
>>>
>>> Thanks,
>>> Joel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://plato.cgl.ucsf.edu/pipermail/chimerax-users/attachments/20200423/e352b469/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: helixplus2.png
Type: image/png
Size: 86020 bytes
Desc: not available
URL: <http://plato.cgl.ucsf.edu/pipermail/chimerax-users/attachments/20200423/e352b469/attachment-0001.png>
More information about the ChimeraX-users
mailing list