Skip to content

Commit

Permalink
fix equate IL
Browse files Browse the repository at this point in the history
  • Loading branch information
tibvdm committed Apr 16, 2024
1 parent 78fd1d9 commit 292241c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/controllers/private_api/proteins_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,12 @@ def proteins

# Request the suffix array search service
search_result = search([ peptide ], equate_il)
if search_result.empty?
return
end

# Collect all protein information
@proteins = UniprotEntry.where(uniprot_accession_number: search_result["uniprot_accessions"])
@proteins = UniprotEntry.where(uniprot_accession_number: search_result[0]["uniprot_accessions"])

@lca = search_result["lca"] || -1

Expand Down

0 comments on commit 292241c

Please sign in to comment.