Skip to content

Commit

Permalink
Add lineage to response
Browse files Browse the repository at this point in the history
  • Loading branch information
pverscha committed Mar 11, 2024
1 parent 5830267 commit fa74524
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/controllers/mpa_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ def pept2data
@lineages[taxon.id] = taxon.lineage.to_a_idx
end

@response.each do |entry|
entry["lineage"] = @lineages[entry.lca]
end

@response
end

Expand Down

0 comments on commit fa74524

Please sign in to comment.