Method: Bio::Fasta#initialize

Defined in:
lib/bio/appl/fasta.rb

#initialize(program, db, opt = [], server = 'local') ⇒ Fasta

Returns a FASTA factory object (Bio::Fasta).



23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# File 'lib/bio/appl/fasta.rb', line 23

def initialize(program, db, opt = [], server = 'local')
  @format	= 10

  @program	= program
  @db	= db
  @server	= server

  @ktup	= nil
  @matrix	= nil

  @output	= ''

  begin
    a = opt.to_ary
  rescue NameError #NoMethodError
    # backward compatibility
    a = Shellwords.shellwords(opt)
  end
  @options	= [ '-Q', '-H', '-m', @format.to_s, *a ] # need -a ?
end