From 2a6a343bb78b813ff1de76dfc75eccddf252bf4d Mon Sep 17 00:00:00 2001 From: tibvdm Date: Tue, 16 Apr 2024 13:26:43 +0200 Subject: [PATCH] proteins --- app/controllers/private_api/proteins_controller.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controllers/private_api/proteins_controller.rb b/app/controllers/private_api/proteins_controller.rb index 7c5339b..b62f302 100644 --- a/app/controllers/private_api/proteins_controller.rb +++ b/app/controllers/private_api/proteins_controller.rb @@ -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"])