Git Product home page Git Product logo

x3dase's Introduction

x3dase

Python module for drawing and rendering atoms and molecules objects using X3DOM. X3dase can be used as a viewer for the molecule structure in the Jupyter notebook.

Functions:

  • Support all file-formats using by ASE, including cif, xyz, cube, pdb, json, VASP-out and so on.
  • Ball & stick
  • Space filling
  • Polyhedral
  • Isosurface
  • Show element and index
  • Measure distance and angle
  • Animation

For the introduction of ASE , please visit https://wiki.fysik.dtu.dk/ase/index.html

Author

Dependencies

  • Python
  • ASE
  • Skimage

Installation using pip

pip install --upgrade --user x3dase

Installation from source

You can get the source using git:

git clone https://github.com/superstar54/x3dase.git

Then add it to your PYTHONPATH and PATH. On windows, you can edit the system environment variables.

export PYTHONPATH=/path-to-x3dase:$PYTHONPATH

Examples

Draw molecule in Jupyter notebooks

<iframe src="examples/c2h6so.html" style="width:100%; height:300px;" ></iframe>

Shortcut

key function
b ball-and-stick model
s spacefilling model
p polyhedra model
1 view top
2 view front
3 view right
4 view element
5 view index

Show different models

Measure distance and angle between atoms

Using Ctrl + click to select atoms.

Selection measurement
single atom xyz position and atomic symbol
two atoms interatomic distance
three atoms three internal angles

Polyhedra for crystal

Isosurface for electron density

Animation

images = [atoms1, atoms2, atoms3]
X3D(images)

x3dase's People

Contributors

superstar54 avatar brookwander avatar

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.