Skip to content

Commit

Permalink
Suffix array URL was changed from search to analyse
Browse files Browse the repository at this point in the history
  • Loading branch information
pverscha committed May 28, 2024
1 parent 7ea0f31 commit c255631
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/controllers/mpa/pept2filtered_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion app/helpers/suffix_array_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c255631

Please sign in to comment.