Skip to content

Java+JavaScript SwingJS adaptation of OpenChemLib for simultaneous single-source development and distribution in Java and JavaScript

License

Notifications You must be signed in to change notification settings

BobHanson/OCL-SwingJS

 
 

Repository files navigation

OpenChemLib

OpenChemLib is Java based framework providing cheminformatics core functionality and user interface components. Its main focus is on organics chemistry and small molecules. It is built around a StereoMolecule class, which represents a molecule using atom and bond tables, provides atom neighbours, ring and aromaticity information, and supports MDL's concept of enhanced stereo representation. Additional classes provide, 2D-depiction, descriptor calculation, molecular similarity and substructure search, reaction search, property prediction, conformer generation, support for molfile and SMILES formats, energy minimization, ligand-protein interactions, and more. OpenChemLib's idcode represents molecules, fragments or reactions as canonical, very compact string that includes stereo and query features. Different to other cheminformatics frameworks, OpenChemLib also provides user interface components that allow to easily embed chemical functionality into Java applications, e.g. to display or edit chemical structures or reactions.

SwingJS fork

This SwingJS fork of the project adds bits of Java 8+ that allow for working asynchronously with modal dialogs and associated file issues. It is still completely compatible with the original OCL code, just augmented a bit here and there. It runs smoothly in JavaScript and allows simultaneous testing and performance checks in both Java and JavaScript using the jav2script transpiler and SwingJS JavaScript "Java" runtime environment extensively developed at St. Olaf College.

All SwingJS capability is supported; FX classes are not supported. Classes include Java 8+; new classes can be added at will.

Dependencies

OpenChemLib-SwingJS requires JRE 8 or newer. The transpiler provides all necessary JavaScript and HTML templates for real-time testing. There are no additional dependencies.

How to download the project

git clone https://github.com/BobHanson/OCL-SwingJS.git

About

Java+JavaScript SwingJS adaptation of OpenChemLib for simultaneous single-source development and distribution in Java and JavaScript

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • Java 99.1%
  • Other 0.9%