Skip to content

Commit

Permalink
same format as peptinfo
Browse files Browse the repository at this point in the history
  • Loading branch information
tibvdm committed May 15, 2023
1 parent f40a035 commit 8bd30a4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/controllers/api/api_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -282,9 +282,9 @@ def protinfo
batch.each do |uniprot_id|
@result[uniprot_id.uniprot_accession_number] = {
taxon: uniprot_id.taxon,
ec: uniprot_id.ec_numbers.map(&:code),
go: uniprot_id.go_terms.map(&:code),
interpro: uniprot_id.interpro_entries.map(&:code)
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 } }
}
end
end
Expand Down

0 comments on commit 8bd30a4

Please sign in to comment.