diff --git a/app/controllers/mpa_controller.rb b/app/controllers/mpa_controller.rb index 1c29a9b..cccb52b 100644 --- a/app/controllers/mpa_controller.rb +++ b/app/controllers/mpa_controller.rb @@ -54,11 +54,11 @@ def pept2filtered uniprot_ids = [] peptides_under_cutoff = Sequence - .joins(:peptides) - .where(sequence: peptides) - .group('sequences.id') - .having('count(peptides.id) < ?', cutoff) - .pluck(:sequence) + .joins(:peptides) + .where(sequence: peptides) + .group('sequences.id') + .having('count(peptides.id) < ?', cutoff) + .pluck(:sequence) taxa_filter_ids.each_slice(5000) do |taxa_slice| sequence_subset = Sequence