Method: Bio::PAML::Common#initialize

Defined in:
lib/bio/appl/paml/common.rb

#initialize(program = nil, params = {}) ⇒ Common

Creates a wrapper instance, which will run using the specified binary location or the command in the PATH. If program is specified as nil, DEFAULT_PROGRAM is used. Default parameters are automatically loaded and merged with the specified parameters.


Arguments:

  • (optional) program: path to the program, or command name (String)

  • (optional) params: parameters (Hash)



73
74
75
76
77
# File 'lib/bio/appl/paml/common.rb', line 73

def initialize(program = nil, params = {})
  @program = program || self.class::DEFAULT_PROGRAM
  set_default_parameters
  self.parameters.update(params)
end