summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgebele <gebele@in-silico.ch>2018-07-26 07:59:46 +0000
committergebele <gebele@in-silico.ch>2018-07-26 07:59:46 +0000
commit427d0fc4e4190f201ff6a3a1ee29c6f6bf56bc56 (patch)
tree7d13eb230e85e6fb2388875348f4c6bac2c75cd2
parent5118bc145158c4dcf6f6e032db2ee47565609cd1 (diff)
muted consensus;removed debug logger;
-rw-r--r--application.rb3
-rw-r--r--views/batch.haml2
2 files changed, 2 insertions, 3 deletions
diff --git a/application.rb b/application.rb
index b0357e8..f30361e 100644
--- a/application.rb
+++ b/application.rb
@@ -39,7 +39,7 @@ get '/predict/?' do
@models = Model::Validation.all
@models = @models.delete_if{|m| m.model.name =~ /\b(Net cell association)\b/}
#endpoints = @models.collect{|m| m.endpoint =~ /LOAEL/ ? m.endpoint+" (lazar)" : m.endpoint}
- endpoints = @models.collect{|m| m.endpoint}
+ 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
@@ -191,7 +191,6 @@ get '/predict/csv/:task/:model/:filename/?' do
task = Task.find params[:task].to_s
m = Model::Validation.find params[:model].to_s unless params[:model] =~ /Cramer|Mazzatorta/
dataset = Batch.find_by(:name => filename)
- $logger.debug dataset.inspect
@ids = dataset.ids
warnings = dataset.warnings.blank? ? nil : dataset.warnings.join("\n")
unless warnings.nil?
diff --git a/views/batch.haml b/views/batch.haml
index 70bd495..422f8be 100644
--- a/views/batch.haml
+++ b/views/batch.haml
@@ -114,7 +114,7 @@
%div.row
%div.col-md-6
- if model =~ /Mazzatorta/
- %h5= "Lowest observed adverse effect level (LOAEL) (Mazzatorta) Rats"
+ %h5= "Lowest observed adverse effect level (LOAEL) (Mazzatorta) (Rats)"
- else
%h5= (model == "Cramer") ? "Oral toxicity (Cramer rules)" : (m.endpoint =~ /Mutagenicity/i ? "Consensus mutagenicity" : "#{m.endpoint} (#{m.species})")
#pager{:id=>idx}