diff options
author | mguetlein <martin.guetlein@gmail.com> | 2010-11-29 12:44:19 +0100 |
---|---|---|
committer | mguetlein <martin.guetlein@gmail.com> | 2010-11-29 12:44:19 +0100 |
commit | 3d8db6648a7831d41aad27d1509f29f87a30723e (patch) | |
tree | 8b7cb46f03af3d48cac996e20a58a65198a6ab5f /example.rb | |
parent | b50453d2ad038c9bab17a418bf4e065e31acb999 (diff) |
add qmrf to examples, add text/html support for qmrf
Diffstat (limited to 'example.rb')
-rw-r--r-- | example.rb | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -42,7 +42,8 @@ class Example "crossvalidation_report_id" => "2", "css_file" => @@css_file, "prediction_dataset_uri" => @@prediction_data, - "predicted_feature" => @@predicted_feature } + "predicted_feature" => @@predicted_feature, + "qmrf_id" => "1"} sub.each do |k,v| res.gsub!(/<#{k}>/,v) @@ -61,6 +62,9 @@ class Example ActiveRecord::Migrator.migrate('db/migrate', 1 ) ActiveRecord::Migrator.migrate('db/migrate', 2 ) + #delete all qmrf reports + ReachReports::QmrfReport.auto_migrate! + #delete_all(@@config[:services]["opentox-dataset"]) log OpenTox::RestClientWrapper.delete @@config[:services]["opentox-dataset"] @@ -94,6 +98,10 @@ class Example rep.delete_all_reports("crossvalidation") rep.create_report("crossvalidation",cv.crossvalidation_uri) + log "build qmrf" + qmrf = OpenTox::RestClientWrapper.post(File.join(@@config[:services]["opentox-validation"],"reach_report/QMRF"),{:model_uri=>@@model}) + log qmrf + log "done" @@summary end |