From 43b257c759ae3b83ae68b0448e2e4cff67f951be Mon Sep 17 00:00:00 2001 From: gebele Date: Tue, 24 Apr 2018 10:58:01 +0000 Subject: always show sa prediction in batch mode --- helper.rb | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'helper.rb') diff --git a/helper.rb b/helper.rb index ca20def..06b1517 100644 --- a/helper.rb +++ b/helper.rb @@ -109,8 +109,17 @@ helpers do line += "#{output['model_name']},#{compound.smiles},#{prediction[:info] ? prediction[:info] : "no"},"\ "#{prediction[:measurements].collect{|m| m.delog10.signif(3)}.join("; ") if prediction[:info]},,,,,,,"+ [inApp,note].join(",")+"\n" else - line += "Consensus mutagenicity,#{compound.smiles},#{prediction[:info] ? prediction[:info] : "no"},"\ - "#{prediction[:measurements].join("; ") if prediction[:info]},,,,,,,"+ [inApp,note].join(",")+"\n" + #line += "Consensus mutagenicity,#{compound.smiles},#{prediction[:info] ? prediction[:info] : "no"},"\ + # "#{prediction[:measurements].join("; ") if prediction[:info]},,,,,,,"+ [inApp,note].join(",")+"\n" + line += "Consensus mutagenicity,#{compound.smiles},"\ + "\"#{prediction[:info] ? prediction[:info] : "no"}\",\"#{output['measurements'].join("; ") if prediction[:info]}\","\ + "#{prediction['Consensus prediction']},"\ + "#{prediction['Consensus confidence']},"\ + "#{prediction['Structural alerts for mutagenicity']},"\ + "#{output['prediction_value']},"\ + "#{!prediction[:probabilities].blank? ? output['probabilities'].first : ""},"\ + "#{!prediction[:probabilities].blank? ? output['probabilities'].last : ""},"\ + "#{inApp},#{note.nil? ? "" : note}\n" end end -- cgit v1.2.3