[BioRuby] ActiveRecord classes for BioSQL?

Raoul Bonnal bonnal at ingm.org
Mon Aug 22 09:28:49 UTC 2011


Hi Daniel, 
actually BioSQL is support in Ruby using ActiveRecord
https://github.com/bioruby/bioruby/blob/master/lib/bio/io/sql.rb and
https://github.com/bioruby/bioruby/tree/master/lib/bio/io/biosql
Please, check the reference schema because I'm not synched with the latest
one, sorry too busy.
If you want to update the library I'm more than happy.

Then a feature which is still in experimental stage is the chance to create
a bioruby-plugin which is a Rails Engine, so you can add there your own
classes or code so that can be reused in multiple Rails applications.
Here, https://github.com/helios/bioruby-gem/tree/rails_engine,  you can find
the git branch don't know if it is buggy, I must check.

Let me know I'll try to provide as much support I can.

--
Ra


On 22/08/11 17.18, "Daniel Lundin" <daniel.lundin at scilifelab.se> wrote:

> Hi everyone,
> 
> I'm working on a couple of Rails applications that will one way or
> another be dependent on taxonomy and sequence data stored in a BioSQL
> schema database. For this I need to develop some (rather simple)
> ActiveRecord classes. I would of course like to be able to have the
> BioSQL schema loaded in some other database than the main application
> database, possibly using a different db engine on another computer.
> 
> I'm a little concerned about the best way of packing up the classes (a
> Rails plugin seems best) and how to best deal with the fact that these
> classes will use another db connection than the main app.
> 
> Is anyone doing something similar and can share experiences?
> 
> Something like this would be nice to have in BioRuby, I think.
> 
> /Daniel





More information about the BioRuby mailing list