Class: Unipept::Commands::Pept2interpro

Inherits:
ApiRunner show all
Defined in:
lib/commands/unipept/pept2interpro.rb

Instance Attribute Summary

Attributes inherited from ApiRunner

#configuration, #url, #user_agent

Instance Method Summary collapse

Methods inherited from ApiRunner

#batch_iterator, #batch_size, #concurrent_requests, #construct_request_body, #formatter, #host, #initialize, #input_iterator, #output_writer, #queue_size, #run, #save_error, #selected_fields

Constructor Details

This class inherits a constructor from Unipept::Commands::ApiRunner

Instance Method Details

#default_batch_sizeObject



8
9
10
11
12
13
14
# File 'lib/commands/unipept/pept2interpro.rb', line 8

def default_batch_size
  if options[:all]
    100
  else
    1000
  end
end

#required_fieldsObject



4
5
6
# File 'lib/commands/unipept/pept2interpro.rb', line 4

def required_fields
  ['peptide']
end