| Path: | README |
| Last Update: | Sat Nov 10 13:37:51 -0800 2007 |
Rubidium is a full-featured cheminformatics scripting environment for Ruby. It provides a clean, well-documented interface to the best open source cheminformatics software.
Rubidium can be downloaded from RubyForge
$ jruby -S gem install rbtk
require 'rubidium/lang' c = Rubidium::Converter.new c.set_formats 'smi', 'inchi' c.convert 'c1ccccc1' => "InChI=1/C6H6/c1-2-4-6-5-3-1/h1-6H"
require 'cdk/lang' r = CDK::SmilesReader.new mol = r.read 'c1ccccc1' mol.atom_count # => 6
require 'rubidium/sdf'
p=Rubidium::SDF::Parser.new File.new('path/to/sdfile.sdf')
p.each_with_line_number do |entry, line|
puts "Entry field 'foo' at line number #{line}: #{entry['foo']}"
end
For convenience, sample data files can be found at:
rubyforge.org/frs/?group_id=4671
This library combines capabilities from a variety of open source projects:
Many thanks to those contributing to these projects.
Rubidium was made possible with the support of Metamolecular, LLC and Collaborative Drug Discovery
Copyright 2007
This library is distributed under the MIT License. Please see the LICENSE file for more details.