Giter Site home page Giter Site logo

yitzchak / kekule-clj Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 0.0 633 KB

Kekule widget for common-lisp-jupyter

License: MIT License

CSS 1.10% TypeScript 64.11% Common Lisp 34.06% JavaScript 0.72%
common-lisp jupyter jupyter-widgets cheminformatics

kekule-clj's Introduction

kekule-clj

A common-lisp-jupyter widget for kekule.js.

Installation

The Jupyter Lab frontend code should be installed using the following command:

jupyter-labextension install kekule-clj

Once the extension has been installed then widget can be loaded in a notebook using Quicklisp.

(ql:quickload :kekule-clj)

Usage

For sample notebooks please see the examples directory. There are two main widgets exported by kekule-clj. The diagram widget displays a molecular diagram using a data source and format id. The composer widget allows editing of the attached data. Both share a set of common slots data and format-id.

The accepted formats are:

  • Smiles format via +smiles-format+ or "smi"
  • Kekule native JSON format via +kekule-json-format+ or "Kekule-JSON"
  • Kekule specific XML format via +kekule-xml-format+ or "Kekule-XML"
  • MDL Molfile V2000 format via +mdl-mol-2000-format+ or "mol"
  • MDL Molfile V3000 format via +mdl-mol-3000-format+ or "mol3k"
  • MDL Structure Data format via +mdl-structure-data-format+ or "sd"
  • MDL Reaction V2000 format via +mdl-reaction-2000-format+ or "rxn"
  • MDL Reaction V3000 format via +mdl-reaction-3000-format+ or "rxn3k"

The default format is MDL Molfile V2000 hence the following will display a file in the diagram widget and display a toolbar in addition.

(make-instance 'kekule:diagram 
               :enable-toolbar t
               :data (alexandria:read-file-into-string "chemFiles/2D/aromaticRings.mol"))

More options are available on the various widgets and can be seen in the source code.

kekule-clj's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar yitzchak avatar

Stargazers

 avatar

Watchers

 avatar  avatar  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.