summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fminer.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/fminer.rb b/fminer.rb
index 1d009e5..b22d77c 100644
--- a/fminer.rb
+++ b/fminer.rb
@@ -709,6 +709,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])