Class: Unipept::Commands::Pept2prot
- Defined in:
- lib/commands/unipept/pept2prot.rb
Instance Attribute Summary
Attributes inherited from ApiRunner
#configuration, #url, #user_agent
Instance Method Summary collapse
- #default_batch_size ⇒ Object
-
#initialize(args, opts, cmd) ⇒ Pept2prot
constructor
A new instance of Pept2prot.
- #required_fields ⇒ Object
Methods inherited from ApiRunner
#batch_iterator, #batch_size, #concurrent_requests, #construct_request_body, #formatter, #host, #input_iterator, #output_writer, #queue_size, #run, #save_error, #selected_fields
Constructor Details
#initialize(args, opts, cmd) ⇒ Pept2prot
Returns a new instance of Pept2prot.
5 6 7 8 9 10 11 12 |
# File 'lib/commands/unipept/pept2prot.rb', line 5 def initialize(args, opts, cmd) if args[:meganize] args[:all] = true args[:select] = ['peptide,refseq_protein_ids'] args[:format] = 'blast' end super end |