diff --git a/app/controllers/mpa_controller.rb b/app/controllers/mpa_controller.rb index 8241a4d..7c3e359 100644 --- a/app/controllers/mpa_controller.rb +++ b/app/controllers/mpa_controller.rb @@ -19,7 +19,7 @@ def pept2data @response = Hash.new processed_peptides.each do |line| - splitted = line.split(";") + splitted = line.rstrip.split(";") # Skip taxa that are not found unless splitted[1] == "/" @response[splitted[0]] = splitted[1]