Skip to content

More cartoon options for nucleic acids. #559

@Psirving

Description

@Psirving

Is your feature request related to a problem? Please describe.
I'd like more options for nucleic acid cartoon styles. Particularly, something like PyMol's cartoon_ring_mode,3 or how they appear on the PDB website.

Also, your documentation seems to end prematurely under "CartoonStyleSpec" in the middle of a sentence about nucleic acids. So I'm not sure if something like this is possible already.

Describe the solution you'd like
I'm using py3Dmol.
view.setStyle({"cartoon": {"style": "NA_rings_3"}}) --> similar to cartoon_ring_mode,3 in PyMol.
view.setStyle({"cartoon": {"style": "NA_rectangles"}}) --> similar to PDB representation

Describe alternatives you've considered(Optional)
I've played around with addCustom, addBox, and addCylinder. This seems like a solution, but would require more time than I have.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions