Closed AntonOresten closed 4 months ago
It turned out to be easier to fix this by adding a weights argument to expand_colors, which takes the residue colors and expands them to match the size of one of the surface dimensions. Getting added in v0.4.2
Since the segments are cut off at the alpha-carbons, the spline and colors should reflect that.
These two residue pairs should be approximately half as long, cause they start/end at the same residue. Helix example: The sizes of these segments exceed the size of one residue.
The segment transitions should look more like the ones shown here: Takes from https://en.wikipedia.org/wiki/Ribbon_diagram#/media/File:Tubby-1c8z-pymol.png
I tried to implement this in the spline function with "weights" but it doesn't seem to do anything.
old spline function:
new spline function:
The residue colors shouldn't be trusted until this is fixed.