diff options
author | Andreas Maunz <andreas@maunz.de> | 2011-07-22 11:26:11 +0200 |
---|---|---|
committer | Andreas Maunz <andreas@maunz.de> | 2011-07-22 11:26:11 +0200 |
commit | 341d0912e351082b589acc89ea2fcf1fd162d459 (patch) | |
tree | abdbab1fc2175546281b37b85fd9da53207cc575 | |
parent | 00751240e4cb74774dc27fc39f3a4bfd6d307a42 (diff) |
Fixed nr_hits readout in fminer.rb
-rw-r--r-- | fminer.rb | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -193,7 +193,7 @@ post '/fminer/bbrc/?' do id_arrs.each { |id_count_hash| id=id_count_hash.keys[0].to_i count=id_count_hash.values[0].to_i - if params[:nr_hits] + if params[:nr_hits] == "true" feature_dataset.add(fminer.compounds[id], feature_uri, count) else feature_dataset.add(fminer.compounds[id], feature_uri, true) @@ -281,7 +281,7 @@ post '/fminer/last/?' do lu = LU.new # AM LAST: uses last-utils here dom=lu.read(xml) # AM LAST: parse GraphML smarts=lu.smarts_rb(dom,'nls') # AM LAST: converts patterns to LAST-SMARTS using msa variant (see last-pm.maunz.de) - params[:nr_hits].nil? ? hit_count=false: hit_count=true + params[:nr_hits] != "true" ? hit_count=false: hit_count=true matches, counts = lu.match_rb(fminer.smi,smarts,hit_count) # AM LAST: creates instantiations matches.each do |smarts, ids| |