Skip to content

Commit

Permalink
rename interpro field to ipr
Browse files Browse the repository at this point in the history
  • Loading branch information
tibvdm committed Jun 9, 2023
1 parent 8bd30a4 commit 03c0762
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/controllers/api/api_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion app/views/api/api/protinfo.json.jbuilder
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 03c0762

Please sign in to comment.