diff options
author | mguetlein <martin.guetlein@gmail.com> | 2012-12-04 11:14:57 +0100 |
---|---|---|
committer | mguetlein <martin.guetlein@gmail.com> | 2012-12-04 11:14:57 +0100 |
commit | c728fd0b098f8a1b46ad10a2de9a484245ecee3b (patch) | |
tree | 43f16d7408deb25a7c066f46412ec978ee99bfa5 | |
parent | 7f444df4ebf060f8d175855d42c3cff69c6ab2de (diff) |
do not try to add nil compound to dataset
-rw-r--r-- | fminer.rb | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -674,6 +674,7 @@ post '/fminer/:method/match?' do feature_uri = File.join feature_dataset.uri,"feature",params[:method], feature_dataset.features.size.to_s feature_dataset.add_feature feature_uri, metadata @@fminer.compounds.collect.each_with_index { |cmpd,id| # This collects all cmpds that have an activity + next if id==0 count_idx = matches[smarts].index(id) if count_idx feature_dataset.add_data_entry(cmpd, feature_uri, counts[smarts][count_idx]) |