Skip to content

visualization improvement - #2

Merged
LunaJang merged 3 commits into
steineggerlab:mainfrom
LunaJang:main
Mar 6, 2026
Merged

visualization improvement#2
LunaJang merged 3 commits into
steineggerlab:mainfrom
LunaJang:main

Conversation

@LunaJang

@LunaJang LunaJang commented Mar 6, 2026

Copy link
Copy Markdown
Collaborator

visualization improvement

claude and others added 3 commits March 6, 2026 06:29
Three complementary improvements:

1. Helix: render as longitudinal zigzag stripes instead of cross-sectional rings
   - Each of 16 stripes (up from 8) runs along the cylinder axis at a fixed angle;
     alternating stripes go forward/backward so transitions are short end-cap arcs
     rather than long diagonal cuts across the surface → clean tube appearance
   - Axial slices scale with helix length (one per residue, was min(8, len))
     so longer helices are no longer under-sampled

2. Sheet: process the full strand segment at once with a consistent perpendicular
   - Was: pair-by-pair, each pair independently computing its own normal (could flip)
   - Now: overall segment direction determines a single stable n1 vector; ribbon
     drawn as zigzag parallel stripes across the full strand → uniform flat ribbon
   - Wider ribbon: width 4→6 steps, offset 0.05→0.07 per step (total ±0.42 units)

3. Backbone: Catmull-Rom spline interpolation in all three project() paths
   - 4 sub-steps per Cα–Cα bond using the four surrounding control points
   - Turns every straight segment into a smooth curve; visually most significant
     for loop/coil regions and helix spirals without -s flag

https://claude.ai/code/session_01LaPVogs2SPnVqeSSbd2ux6
Convenience patch for applying the secondary structure commit on top of
a main branch that already has the Braille rendering commit merged.

Apply with: git am structty-improvements.patch

https://claude.ai/code/session_01LaPVogs2SPnVqeSSbd2ux6
@LunaJang
LunaJang merged commit 699229a into steineggerlab:main Mar 6, 2026
1 check failed
LunaJang added a commit that referenced this pull request Apr 14, 2026
visualization improvement
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants