Skip to content

Commit

Permalink
fix pept2funct and peptinfo endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
tibvdm committed Jun 18, 2024
1 parent 049408c commit f46b3ff
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
12 changes: 6 additions & 6 deletions app/controllers/api/pept2funct_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ def pept2funct
interpro_result = pept2interpro_helper

@input_order.each do |seq|
next unless go_result.key? seq_index
next unless go_result.key? seq

@result[seq_index] = {
total: go_result[seq_index][:total],
go: go_result[seq_index][:go],
ec: ec_result[seq_index][:ec],
ipr: interpro_result[seq_index][:ipr]
@result[seq] = {
total: go_result[seq][:total],
go: go_result[seq][:go],
ec: ec_result[seq][:ec],
ipr: interpro_result[seq][:ipr]
}
end
end
Expand Down
14 changes: 7 additions & 7 deletions app/controllers/api/peptinfo_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ def peptinfo
interpro_result = pept2interpro_helper

@input_order.each do |seq|
next unless go_result.key? seq_index
next unless go_result.key? seq

@result[seq_index] = {
total: go_result[seq_index][:total],
go: go_result[seq_index][:go],
ec: ec_result[seq_index][:ec],
ipr: interpro_result[seq_index][:ipr],
lca: lca_result[seq_index]
@result[seq] = {
total: go_result[seq][:total],
go: go_result[seq][:go],
ec: ec_result[seq][:ec],
ipr: interpro_result[seq][:ipr],
lca: lca_result[seq]
}
end
end
Expand Down

0 comments on commit f46b3ff

Please sign in to comment.