Skip to content
Austin Richardson edited this page Jan 22, 2015 · 3 revisions

Feature Relationships

It is possible to export the feature relationships graph to serialized JSON. This is useful for doing data-mining stuff outside of the web app.

I plan on also using this to communicate with a separate "data mining" process that returns data to the Rails app.

to dump the feature relationships table do

rake to_json > dump.json

The format looks like:

{
   "genome_id" : 1,
   "organism"  : "Bacteroides dorei ...",
   "assembly_id" : 183078,
   "features" : [
      {
         "id" : 3,
         "start" : 1,
         "stop": 400,
         "related" : [
            {
               "similarity" : 0,
               "id" : 3
            }
           ]
       }
   ]
}
Clone this wiki locally