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@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.

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.


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@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

_______________________________________________
ChimeraX-users mailing list
ChimeraX-users@cgl.ucsf.edu
Manage subscription:
http://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users