diff options
author | gebele <gebele@in-silico.ch> | 2018-07-16 14:20:03 +0000 |
---|---|---|
committer | gebele <gebele@in-silico.ch> | 2018-07-16 14:20:03 +0000 |
commit | 44d9ceb30f6f8649f2d6fc179a925302f14d8a05 (patch) | |
tree | 64e6b421f035ec24cb8e9ea55765406a824f12c0 /views/prediction.haml | |
parent | 11a32e7c3326f9e411e60cdf5098d4f46b0ec11b (diff) |
add mazzatorta
Diffstat (limited to 'views/prediction.haml')
-rw-r--r-- | views/prediction.haml | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/views/prediction.haml b/views/prediction.haml index b4b51ca..152efc9 100644 --- a/views/prediction.haml +++ b/views/prediction.haml @@ -23,6 +23,8 @@ - @model_types = {} - @dbhit = {} - toxtree = @predictions.pop if @toxtree == true + - mazzatorta = @predictions.find{|p| p["mazzatorta"]} + - @predictions.delete(mazzatorta) if mazzatorta - unless @predictions.blank? - @predictions.each_with_index do |prediction,i| - if prediction["Consensus prediction"] @@ -138,7 +140,7 @@ %br =prediction[:warnings].join("</br>") - / show Cramer rules if checked + / Cramer - if @toxtree == true %td{:style=>"vertical-align:top;white-space:nowrap;"} %b.title Oral toxicity (Cramer rules) @@ -151,6 +153,24 @@ %br =toxtree.last["Cramer rules, with extensions"] + / Mazzatorta + - if mazzatorta + %td{:style=>"vertical-align:top;white-space:nowrap;"} + %b.title Lowest observed adverse effect level (LOAEL) (Rats) (Mazzatorta) + %p + - hash = mazzatorta["mazzatorta"] + - unless hash.keys.include?("warnings") + %b Prediction: + %br + = "#{hash[:mmol_prediction]} (mmol/kg_bw/day)" + %br + = "#{hash[:prediction]} (mg/kg_bw/day)" + - else + %b Warnings: + %br + = "#{hash[:warnings]}" + + / always show the neighbors table, message is given there. Except only Cramer is selected. - unless @predictions.blank? = haml :neighbors, :layout => false |