Skip to content

Commit

Permalink
timings
Browse files Browse the repository at this point in the history
  • Loading branch information
tibvdm committed Apr 22, 2024
1 parent 02397bc commit 6f34f2f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/controllers/mpa/pept2filtered_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,15 @@ def pept2filtered
# Request the suffix array search service
@response = search(peptides, equate_il, cutoff)
.select { |result| !result["cutoff_used"] }
.each { |result| result["taxa"] = result["taxa"].to_set }

end_index_time = get_time - index_time

filter_time = get_time

taxa_filter_ids.to_set
taxa_filter_ids = taxa_filter_ids.to_set

@response.each do |result|
result["taxa"] = result["taxa"] & taxa_slice
result["taxa"] = result["taxa"].to_set & taxa_filter_ids
end

end_filter_time = get_time - filter_time
Expand Down

0 comments on commit 6f34f2f

Please sign in to comment.