Skip to content

Commit

Permalink
proteins
Browse files Browse the repository at this point in the history
  • Loading branch information
tibvdm committed Apr 16, 2024
1 parent f2cfe78 commit 2a6a343
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/controllers/private_api/proteins_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,14 @@ def proteins
# Request the suffix array search service
search_result = search([ peptide ], equate_il).first

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

if search_result.nil?
return
end

@lca = search_result["lca"]
@proteins = UniprotEntry
.includes(:taxon)
.where(uniprot_accession_number: search_result["uniprot_accessions"])
Expand Down

0 comments on commit 2a6a343

Please sign in to comment.