Skip to content

Commit

Permalink
Also render FA fields (empty)
Browse files Browse the repository at this point in the history
  • Loading branch information
pverscha committed Feb 29, 2024
1 parent 701a98c commit c1c625a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/controllers/mpa_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def pept2data

@lineages = Hash.new
taxa.each do |taxon|
@lineages[taxon.id] = taxon.lineage.to_a
@lineages[taxon.id] = taxon.lineage.to_a_idx
end

puts @lineages.inspect
Expand Down
4 changes: 2 additions & 2 deletions app/views/mpa/pept2data.json.jbuilder
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ json.peptides @response do |peptide, lca|
json.lca lca
json.lineage @lineages[lca]
json.fa do
json.counts {}
json.data {}
json.counts({})
json.data({})
end
end

0 comments on commit c1c625a

Please sign in to comment.