Class: Bio::Fasta::Report::Program

Inherits:
Object
  • Object
show all
Defined in:
lib/bio/appl/fasta/format10.rb

Overview

Log of the fasta execution environments.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ Program

Returns a new instance of Program.



177
178
179
180
181
182
183
184
185
186
187
188
# File 'lib/bio/appl/fasta/format10.rb', line 177

def initialize(data)
  @definition, *program = data.split(/\n/)
  @program = {}

  pat = /;\s+([^:]+):\s+(.*)/

  program.each do |x|
    if pat.match(x)
      @program[$1] = $2
    end
  end
end

Instance Attribute Details

#definitionObject (readonly)

Returns a String containing query and library filenames.



191
192
193
# File 'lib/bio/appl/fasta/format10.rb', line 191

def definition
  @definition
end

#programObject (readonly)

Accessor for a Hash containing ‘mp_name’, ‘mp_ver’, ‘mp_argv’, ‘pg_name’, ‘pg_ver, ’pg_matrix’, ‘pg_gap-pen’, ‘pg_ktup’, ‘pg_optcut’, ‘pg_cgap’, ‘mp_extrap’, ‘mp_stats’, and ‘mp_KS’ values.



196
197
198
# File 'lib/bio/appl/fasta/format10.rb', line 196

def program
  @program
end