diff options
author | gebele <gebele@in-silico.ch> | 2019-09-18 21:06:08 +0200 |
---|---|---|
committer | gebele <gebele@in-silico.ch> | 2019-09-18 21:06:08 +0200 |
commit | 38724c6b36b35d22588c6a6eaa52c7092efa7d70 (patch) | |
tree | bf8298f861ee45e8ff9d072e29f0118707531915 /application.rb | |
parent | cf80891415b530fc9fa52fc1e593c949c463d7da (diff) |
Diffstat (limited to 'application.rb')
-rw-r--r-- | application.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/application.rb b/application.rb index a2eac47..9411301 100644 --- a/application.rb +++ b/application.rb @@ -38,9 +38,9 @@ get '/predict/?' do @existing_datasets = dataset_storage @models = Model::Validation.all @models = @models.delete_if{|m| m.model.name =~ /\b(Net cell association)\b/} - endpoints = @models.collect{|m| m.endpoint if m.endpoint != "Mutagenicity"}.compact - endpoints << "Oral toxicity (Cramer rules)" - endpoints << "Lowest observed adverse effect level (LOAEL) (Mazzatorta)" + endpoints = @models.collect{|m| m.endpoint if m.endpoint == "Mutagenicity"}.compact + #endpoints << "Oral toxicity (Cramer rules)" + #endpoints << "Lowest observed adverse effect level (LOAEL) (Mazzatorta)" @endpoints = endpoints.sort.uniq @models.count <= 0 ? (haml :info) : (haml :predict) end |