diff --git a/app/controllers/mpa/pept2filtered_controller.rb b/app/controllers/mpa/pept2filtered_controller.rb index e669e91..683e4e6 100644 --- a/app/controllers/mpa/pept2filtered_controller.rb +++ b/app/controllers/mpa/pept2filtered_controller.rb @@ -22,9 +22,9 @@ def pept2filtered taxa_filter_ids = taxa_filter_ids.to_set @response.each do |result| - result[:taxa] = result[:taxa].to_set & taxa_filter_ids + result["taxa"] = result["taxa"].to_set & taxa_filter_ids end - @response.reject! { |result| result[:taxa].empty? } + @response.reject! { |result| result["taxa"].empty? } end end diff --git a/app/helpers/suffix_array_helper.rb b/app/helpers/suffix_array_helper.rb index 460b6f7..f250616 100644 --- a/app/helpers/suffix_array_helper.rb +++ b/app/helpers/suffix_array_helper.rb @@ -4,7 +4,7 @@ def search(peptides, equate_il, cutoff = 10_000) json_data = { peptides: peptides, equalize_I_and_L: equate_il, cutoff: cutoff }.to_json # The URL to the suffix array search service - url = URI.parse("http://localhost:3000/search") + url = URI.parse("http://localhost:3000/analyse") # Create a new HTTP POST request request = Net::HTTP::Post.new(url.path)