From c728fd0b098f8a1b46ad10a2de9a484245ecee3b Mon Sep 17 00:00:00 2001 From: mguetlein Date: Tue, 4 Dec 2012 11:14:57 +0100 Subject: do not try to add nil compound to dataset --- fminer.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/fminer.rb b/fminer.rb index 3dc2bf2..1cace64 100644 --- a/fminer.rb +++ b/fminer.rb @@ -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]) -- cgit v1.2.3