Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Best guess for representation #30

Closed
hainm opened this issue Nov 28, 2015 · 4 comments
Closed

Best guess for representation #30

hainm opened this issue Nov 28, 2015 · 4 comments

Comments

@hainm
Copy link
Contributor

hainm commented Nov 28, 2015

This is my wish list but might be very low priority.

Supposed I have a molecule and load to ngl. I do not have artistic eye but wanting to have nice rendering. I just want to have an option, such as 'I am lucky' to have ngl to o make best guess to make nice representation for me. (So I can make good figure for publication)

@arose
Copy link
Collaborator

arose commented Nov 28, 2015

Interesting idea. This would involve deciding which representations to show and and at what orientation. It would be nice to have good initial representation and orientation when loading a file. Some ideas.

Representations

  • have a decision tree that depends on what types of molecules in what quantity are present
  • just a default set of representations/selections

Orientation

  • you could orient it with respect to the principal axes, e.g. looking down the smallest one
  • you could look down a symmetry axis
  • maximize surface visibility

@arose
Copy link
Collaborator

arose commented Apr 9, 2016

the dev branch has now a much better default representation defined in stage.defaultRepresentation( component )and used viastage.loadFile( url, { defaultRepresentation: true } )`

Also see: https://github.com/arose/ngl/blob/dev/js/ngl/stage.js#L184

@arose arose closed this as completed Apr 9, 2016
@hainm
Copy link
Contributor Author

hainm commented Apr 9, 2016

cool. would love to see in nglview.

@hainm
Copy link
Contributor Author

hainm commented Apr 9, 2016

nv.show_pytraj(traj, guess_repr=True)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants