summaryrefslogtreecommitdiff
path: root/lib/compound.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/compound.rb
parent32d767ee7cfcc19337892551906950621f348174 (diff)
compound classification fixed
Diffstat (limited to 'lib/compound.rb')
-rw-r--r--lib/compound.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/compound.rb b/lib/compound.rb
index 049d77b..c2ce5d0 100644
--- a/lib/compound.rb
+++ b/lib/compound.rb
@@ -335,7 +335,7 @@ module OpenTox
{'$match' => {'tanimoto' => {'$gte' => params[:min_sim]}}},
{'$sort' => {'tanimoto' => -1}}
]
-
+
$mongo["substances"].aggregate(aggregate).select{|r| r["dataset_ids"].include? params[:training_dataset_id]}
end