summaryrefslogtreecommitdiff
path: root/lib/model.rb
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.ch>2016-04-28 11:05:05 +0200
committerChristoph Helma <helma@in-silico.ch>2016-04-28 11:05:05 +0200
commitacf19c81e345ceccde834653a0f0edce27827958 (patch)
tree058ae154e0f167991518f486913067f4bc648725 /lib/model.rb
parent32d767ee7cfcc19337892551906950621f348174 (diff)
compound classification fixed
Diffstat (limited to 'lib/model.rb')
-rw-r--r--lib/model.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/model.rb b/lib/model.rb
index 45054e2..80b4685 100644
--- a/lib/model.rb
+++ b/lib/model.rb
@@ -64,7 +64,7 @@ module OpenTox
prediction[:warning] = "#{database_activities.size} compounds have been removed from neighbors, because they have the same structure as the query compound."
neighbors.delete_if{|n| n["_id"] == compound.id}
end
- neighbors.delete_if{|n| n['toxicities'].empty? or n['toxicities'][prediction_feature.id.to_s] == [nil] }
+ #neighbors.delete_if{|n| n['toxicities'].empty? or n['toxicities'][prediction_feature.id.to_s] == [nil] }
if neighbors.empty?
prediction.merge!({:value => nil,:confidence => nil,:warning => "Could not find similar compounds with experimental data in the training dataset.",:neighbors => []})
else