Skip to content

Commit

Permalink
filter cutoff
Browse files Browse the repository at this point in the history
  • Loading branch information
tibvdm committed Apr 22, 2024
1 parent 63e623e commit de4f99a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/controllers/mpa/pept2filtered_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def pept2filtered
taxa_filter_ids = (params[:taxa] || []).map(&:to_i)

# Request the suffix array search service
@response = search(peptides, equate_il, cutoff).uniq.select { |result| !result["cuttof_used"] }
@response = search(peptides, equate_il, cutoff).uniq.select { |result| !result["cutoff_used"] }

# TODO: we should remove this or use a different approach
@response.each do |result|
Expand Down
9 changes: 8 additions & 1 deletion app/views/mpa/pept2filtered/pept2filtered.json.jbuilder
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
json.peptides(@response)
json.peptides @response do |peptide|
json.sequence peptide["sequence"]
json.taxa peptide["taxa"]
json.fa do
json.counts peptide["fa"]["counts"]
json.data peptide["fa"]["data"]
end
end

0 comments on commit de4f99a

Please sign in to comment.