From c25563140ba6efda9389b155157cb4d060dc2c68 Mon Sep 17 00:00:00 2001 From: Pieter Verschaffelt Date: Tue, 28 May 2024 11:07:02 +0200 Subject: [PATCH] Suffix array URL was changed from search to analyse --- app/controllers/mpa/pept2filtered_controller.rb | 4 ++-- app/helpers/suffix_array_helper.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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)