From 71756436a991e18d12e2d387f6cc93d3cbdcad61 Mon Sep 17 00:00:00 2001 From: tibvdm Date: Tue, 16 Apr 2024 11:15:31 +0200 Subject: [PATCH] fix equate IL --- app/controllers/mpa/pept2data_controller.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/controllers/mpa/pept2data_controller.rb b/app/controllers/mpa/pept2data_controller.rb index 0f5d9e9..e1712fd 100644 --- a/app/controllers/mpa/pept2data_controller.rb +++ b/app/controllers/mpa/pept2data_controller.rb @@ -3,7 +3,7 @@ class Mpa::Pept2dataController < Mpa::MpaController def pept2data peptides = params[:peptides] || [] - missed = params[:missed] || false + missed = params[:missed].nil? ? false || params[:missed] equate_il = params[:equate_il].nil? ? true : params[:equate_il] @response = Hash.new @@ -20,7 +20,6 @@ def pept2data taxa = [] @response.each do |result| taxa.append(result["lca"]) - result["equate"] = equate_il end # Retrieve all lineages at once