Giter Club home page Giter Club logo

smiles-3d-vue's Introduction

3D rendering app for SMILES (Simplified molecular-input line-entry system) files

To be used for educational and demonstration purposes. Application accepts file(s) in SMILES file format, uses the ChEMBL API methods to convert SMILES string from file to xyz coordinates, having the coordinates, the application utilizes Speck library (source) to display a 3D compound model.

During the development, I found out that Speck is not a true JavaScript library, nor a JQuery plugin, and since I had no time to re-write it to be a Vue.js component, I ended up retrofitting their build to my Vue.js app.

Some key features:

  • Written in Vue.js The Progressive JavaScript Framework.
  • Demonstrates interaction with ChEMBL API.
  • Utilizes Speck for 3D model rendering.
  • Has verification procedure and accepts only valid SMILES files.
  • Works great in all browsers including mobile! (Thanks to responsive web design)
  • Supports multiple files conversion and rendering.
  • Features drag-and-drop functionality.
  • Uses SASS/SCSS for styling.
  • Has thoroughly commented code.

DEMO

Thanks to GitHub pages, live demo is available HERE.

Mobile browser issues

While the app has responsive design and adapts to any screen size from the smallest iphone to TV, the Speck appears to have some WebGL shader issues which prevent rendering on mobile platforms. Tested both iOS and Android with no luck, it throws the follwing error:

Extension EXT _frag_depth not available

If anyone knows how to fix this without re-writing Speck, please let me know.

Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

For detailed explanation on how things work, consult the docs for vue-loader.

smiles-3d-vue's People

Watchers

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.