Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
tibvdm committed Apr 16, 2024
1 parent a2a2738 commit 7d49a0a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/controllers/mpa/pept2data_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ def pept2data

# Request the suffix array search service
@response = search(peptides, equate_il).uniq
@response["equated_IL"] = equate_il

# Collect all lca's to look up the lineages
taxa = []
@response.each do |result|
taxa.append(result["lca"])
result["equate"] = equate_il
end

# Retrieve all lineages at once
Expand Down
2 changes: 1 addition & 1 deletion app/views/mpa/pept2data/pept2data.json.jbuilder
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
json.peptides @response do |peptide|
json.equate peptide["equate"]
json.sequence peptide["sequence"]
json.lca peptide["lca"]
json.lineage @lineages[peptide["lca"].to_i]
Expand All @@ -7,4 +8,3 @@ json.peptides @response do |peptide|
json.data peptide["fa"]["data"]
end
end
json.equated_IL @response["equated_IL"]

0 comments on commit 7d49a0a

Please sign in to comment.