diff options
author | Christoph Helma <helma@in-silico.de> | 2010-03-16 11:05:40 +0100 |
---|---|---|
committer | Christoph Helma <helma@in-silico.de> | 2010-03-16 11:05:40 +0100 |
commit | 2d9cbbca43fce85771207220165ec905e2b7ff2b (patch) | |
tree | 085fd89c2f0db6c853d294e3427de382497b8e0c /lazar.rb | |
parent | 55edc357dc7a33f258fb5117f5d0084a4f1eb8ed (diff) |
toxcreate adapted for new representation
Diffstat (limited to 'lazar.rb')
-rw-r--r-- | lazar.rb | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -42,6 +42,8 @@ post '/lazar/?' do # create a model halt 404, "Dataset #{feature_dataset_uri} not found." if training_features.nil? lazar = OpenTox::Model::Lazar.new lazar.dependent_variable = params[:feature_uri] + lazar.activity_dataset_uri = dataset_uri + lazar.feature_dataset_uri = feature_dataset_uri halt 404, "More than one descriptor type" unless training_features.features.size == 1 bbrc = training_features.features.first training_features.data.each do |compound,features| |