Giter Club home page Giter Club logo

ipymolstar's People

Contributors

jhsmit avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

genostack dsxksss

ipymolstar's Issues

List of features and their status

The aim of this issue is to track which of the traitlets on PDBeMolstar are implemented and which are tested and confirmed to work.
For each traitlet we keep track of correct behaviour on initial load and triggering upon changing the value.

Untested (might work):

  • assembly_id (initial/trigger)
  • default_preset (initial/trigger)
  • ligand_view (initial/trigger)
  • alphafold_view (initial/trigger)
  • superposition (initial/trigger)
  • superposition_params (initial/trigger)
  • visual_style (initial/trigger)
  • hide_non_standard (initial/trigger)
  • hide_coarse (initial/trigger)
  • load_maps (initial/trigger)
  • map_settings (initial/trigger)
  • highlight_color (initial/trigger)
  • select_color (initial/trigger)
  • validation_annotation (initial/trigger)
  • domain_annotation (initial/trigger)
  • symmetry_annotation (initial/trigger)
  • pdbe_url (initial/trigger)
  • encoding (initial/trigger)
  • low_precision_coords (initial/trigger)
  • select_interaction (initial/trigger)
  • granularity (initial/trigger)
  • subscribe_events (initial/trigger)
  • hide_controls (initial/trigger)
  • hide_controls_icon (initial/trigger)
  • hide_expand_icon (initial/trigger)
  • hide_settings_icon (initial/trigger)
  • hide_selection_icon (initial/trigger)
  • hide_animation_icon (initial/trigger)
  • sequence_panel (initial/trigger)
  • pdbe_link (initial/trigger)
  • loading_overlay (initial/trigger)
  • expanded (initial/trigger)
  • landscape (initial/trigger)
  • _focus (initial/trigger)
  • _highlight (initial/trigger)
  • _clear_highlight (initial/trigger)
  • color_data (initial/trigger)
  • _clear_selection (initial/trigger)
  • _set_color (initial/trigger)
  • _reset (initial/trigger)
  • _update (initial/trigger)

Works and tested:

  • height (initial)
  • molecule_id (initial/trigger) (must be lower case str, cannot be empty unless custom_data is given)
  • custom_data (initial/trigger)
  • bg_color (initial/trigger)
  • spin (initial/trigger)
  • hide_polymer (initial/trigger)
  • hide_water (initial/trigger)
  • hide_heteroatoms (initial/trigger)
  • hide_carbs (initial/trigger)

Does not work

  • height (trigger); a new height can be set but a new render is needed
  • lighting (initial/trigger); not working in JS plugin plunkr example

(this post is edited when traitlets are tested and confirmed to work / not work)

implement all initial render options

Full list can be found here:

https://github.com/molstar/pdbe-molstar/blob/ab7efdb4bc55536afc95a0282e4fd17b609d3035/src/app/spec.ts#L67

  • moleculeId
  • customData
  • assemblyId
  • defaultPreset
  • ligandView
  • alphafoldView
  • superposition
  • superpositionParams
  • selection
  • visualStyle
  • hideStructure
  • loadMaps
  • mapSettings
  • bgColor
  • highlightColor
  • selectColor
  • lighting
  • validationAnnotation
  • domainAnnotation
  • symmetryAnnotation
  • pdbeUrl
  • encoding
  • lowPrecisionCoords
  • selectInteraction
  • selectBindings
  • focusBindings
  • granularity
  • subscribeEvents
  • hideControls
  • hideCanvasControls
  • sequencePanel
  • pdbeLink
  • loadingOverlay
  • expanded
  • landscape
  • reactive

Initialize `spin`

Trying out the demo, I notice that spin is only triggered on change. So if you were to:

view = PDBeMolstar(
    molecule_id="1qyn",
    theme="light",
    hide_water=True,
    visual_style="cartoon",
)
view.spin = True
view

the viewer wouldn't be spinning. I'm not sure if this is something that can be set in initial options:

or must be set initially. Great work!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.