Skip to content

feat: add mvs-putty#107

Merged
zachcp merged 2 commits intomolstar:masterfrom
zachcp:feat/mvs-putty
Mar 1, 2026
Merged

feat: add mvs-putty#107
zachcp merged 2 commits intomolstar:masterfrom
zachcp:feat/mvs-putty

Conversation

@zachcp
Copy link
Copy Markdown
Collaborator

@zachcp zachcp commented Mar 1, 2026

Description

Add putty implementation to the TS and Py MolViewSpec libraries

Followed the same argument structure as other representations:

MVS type Mol* sizeTheme used What size_factor actually controls
cartoon uniform value = size_factor → constant tube radius
backbone uniform value = size_factor → constant tube radius
ball_and_stick uniform value = size_factor → constant atom/bond size
line uniform value = size_factor → constant line width
spacefill physical scale = size_factor → scales vdW radii
carbohydrate uniform value = size_factor → constant symbol size
surface (molecular) physical scale = size_factor → scales vdW-based surface
surface (gaussian) physical scale = size_factor → scales vdW-based surface
putty uniform | uncertainty sizeFactor is either a constant scale or scales the — the per-residue B-factor .

Note: The current MVS template implementations both use embedded Molstar within their output widgets and the current molstar MVS implementation doesn't yet support putty. We will want to hold off on this PR until the Molstar implementation is in place and we have a public release that supports putty.

Actions

  • Added description of changes to the [Unreleased] section of CHANGELOG.md
  • When adding new features:
    • Added example(s) to app/api/examples.py
    • Added Jupyter Notebook to test-data/notebooks (python) and test-data/notebooks-ts (typescsript) with new features
    • Added MkDocs documentation in docs
    • When changing the API, make sure the change is coherent between the TS and Python versions (see molviewspec-ts/readme.md).

@zachcp zachcp requested a review from dsehnal March 1, 2026 15:02
@zachcp zachcp marked this pull request as ready for review March 1, 2026 18:05
@zachcp zachcp merged commit d532c74 into molstar:master Mar 1, 2026
2 checks passed
@zachcp zachcp deleted the feat/mvs-putty branch March 1, 2026 18:06
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