Giter Club home page Giter Club logo

chemjs's Introduction

ChemJS

ChemJS is a bare-bones Chemistry framework built on top of the GraphJS framework. ChemJS uses GraphJS to accomplish low-level representation and search algorithms. ChemJS is intended to be HTML5 WebWorker-compatible and NodeJS-compatible. Algorithms support WebCL computing.

This project was inspired by the ChemDoodle WebComponents project from iChemLabs. ChemJS is a re-purposed version (written from the ground up) designed for more bare-bones, DOM-independent performance with molecular simulation in mind.

ChemJS is currently a work in progress and will share concurrent development with GraphJS, ChemJS, DockJS, and the Social Docking Project.

Usage

Step 1: Download the source library (full or minified)

git clone git://github.com/ericjang/chemJS

Step 2: Include the source script in your html, your WebWorker, or NodeJS application.

Step 3: Create and Manipulate Molecules!

var benzene = ChemJS.createMolecule();

API

Object Hierarchy (Summary):

ChemJS
└─┬ molecules
  ├── atoms
  ├── bonds
  ├── functional groups (optional)
  └── rings (optional)

ChemJS

The ChemJS object provides the highest level scope.

//example:
var foo = ChemJS.createMolecule();
var bar = ChemJS.createMolecule();
ChemJS.molecules;//returns [foo,bar]

Functions:

  • createMolecule(): creates a new molecule object and appends it to the molecules Array.
  • readMOL(string): reads in a MOL file and constructs a molecule.

ChemJS.molecule

There are several ways to represent the graph abstract data type. Each vertex stores its incident edges, and each edge stores its incident vertices.

Operations

//more code goes here

Extending ChemJS

//more code goes here

//example of DockJS extending ChemJS

chemjs's People

Contributors

ericjang avatar

Stargazers

Fernando Martinez-Urrutia avatar japprends-autrement.be avatar

Watchers

Luiz Filipe Freitas Carneiro avatar James Cloos 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.