Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
tibvdm committed Apr 15, 2024
1 parent 65d26ee commit 6467b92
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/controllers/mpa/pept2data_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ def pept2data
lineages[lineage.taxon_id] = lineage.to_a_idx
end

@lineages = lineages

@response.each do |_, value|
value["lineage"] = lineages[value["lca"].to_i]
end
Expand Down
1 change: 1 addition & 0 deletions app/views/mpa/pept2data/pept2data.json.jbuilder
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
json.peptides(@response)
json.lineages(@lineages)

0 comments on commit 6467b92

Please sign in to comment.