Skip to content

Commit

Permalink
parse taxon ids as int
Browse files Browse the repository at this point in the history
  • Loading branch information
pverscha committed Feb 29, 2024
1 parent a2a298b commit 6c3a5b5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/controllers/mpa_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,11 @@ def pept2data
splitted = line.rstrip.split(";")
# Skip taxa that are not found
unless splitted[1] == "/"
@response[splitted[0]] = splitted[1]
@response[splitted[0]] = splitted[1].to_i
end
end

taxa = Taxon.includes(:lineage).find(@response.values)
puts taxa.inspect

@lineages = Hash.new
taxa.each do |taxon|
Expand Down

0 comments on commit 6c3a5b5

Please sign in to comment.