From 03c07628c727bd0e9d36f3cf886e385bcf66d347 Mon Sep 17 00:00:00 2001 From: tibvdm Date: Fri, 9 Jun 2023 13:41:33 +0200 Subject: [PATCH] rename interpro field to ipr --- app/controllers/api/api_controller.rb | 2 +- app/views/api/api/protinfo.json.jbuilder | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/api/api_controller.rb b/app/controllers/api/api_controller.rb index 8414d81..6156b15 100644 --- a/app/controllers/api/api_controller.rb +++ b/app/controllers/api/api_controller.rb @@ -284,7 +284,7 @@ def protinfo taxon: uniprot_id.taxon, ec: uniprot_id.ec_numbers.map { |ec| { ec_number: ec.code } }, go: uniprot_id.go_terms.map { |go| { go_term: go.code } }, - interpro: uniprot_id.interpro_entries.map { |interpro| { code: interpro.code } } + ipr: uniprot_id.interpro_entries.map { |interpro| { code: interpro.code } } } end end diff --git a/app/views/api/api/protinfo.json.jbuilder b/app/views/api/api/protinfo.json.jbuilder index 32d7fa4..b4ad701 100644 --- a/app/views/api/api/protinfo.json.jbuilder +++ b/app/views/api/api/protinfo.json.jbuilder @@ -4,7 +4,7 @@ json.array! @input_order do |uniprot_id| json.ec @result[uniprot_id][:ec] json.go @result[uniprot_id][:go] - json.interpro @result[uniprot_id][:interpro] + json.ipr @result[uniprot_id][:ipr] json.taxon_id @result[uniprot_id][:taxon][:id] json.taxon_name @result[uniprot_id][:taxon][:name]