diff options
author | Christoph Helma <helma@in-silico.ch> | 2016-05-09 15:11:46 +0200 |
---|---|---|
committer | Christoph Helma <helma@in-silico.ch> | 2016-05-09 15:11:46 +0200 |
commit | 611bac891177f8d9185d45486dd574b6ef4d1912 (patch) | |
tree | 4ebb62998deee6aa02f4a8b94c69bac226c27c27 /lib/model.rb | |
parent | 7794086d367fb256c3673d7578b23ec2fb83e6ed (diff) |
nanoparticle models fixed
Diffstat (limited to 'lib/model.rb')
-rw-r--r-- | lib/model.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/model.rb b/lib/model.rb index 5b094fb..070248a 100644 --- a/lib/model.rb +++ b/lib/model.rb @@ -76,6 +76,7 @@ module OpenTox prediction = {} if neighbors.collect{|n| n["_id"]}.include? compound.id + me = neighbors.select{|n| n["_id"] == compound.id}.first database_activities = neighbors.select{|n| n["_id"] == compound.id}.first["toxicities"][prediction_feature.id.to_s][training_dataset_id.to_s].uniq prediction[:database_activities] = database_activities prediction[:warning] = "#{database_activities.size} compounds have been removed from neighbors, because they have the same structure as the query compound." |