class Bio::Fasta::Report::Program

Log of the fasta execution environments.

Attributes

definition[R]

Returns a String containing query and library filenames.

program[R]

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.

Public Class Methods

new(data) click to toggle source
# 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