Skip to content

Instantly share code, notes, and snippets.

View dklassen's full-sized avatar

Dana Klassen dklassen

View GitHub Profile
@dklassen
dklassen / gist:4635210
Created January 25, 2013 15:23
Jruby example of using the Chemistry Development Kit (CDK) to parse smiles strings into a canonical format
# Jruby example using the chemistry development kit(CDK) to parse smiles strings into a
# canonical format
# author : Dana klassen
require 'rubygems'
include Java
# $CLASSPATH << File.join(File.expand_path(File.dirname(__FILE__)),"lib")
Dir.glob(File.join(File.expand_path(File.dirname(__FILE__)),"lib/*.jar")) { |file| require file }
import 'org.openscience.cdk.smiles.SmilesParser'