Method: Bio::MAFFT#query_string

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

#query_string(str, *arg) ⇒ Object

Performs alignment for str. Str should be a string that can be recognized by the program.

Compatibility Note: arg is deprecated and ignored.



214
215
216
217
218
219
220
221
222
223
224
225
226
227
# File 'lib/bio/appl/mafft.rb', line 214

def query_string(str, *arg)
  if arg.size > 0 then
    warn '2nd and other arguments of Bio::MAFFT#query_string is ignored'
  end
  begin
    tf_in = Tempfile.open('align')
    tf_in.print str
  ensure
    tf_in.close(false)
  end
  r = query_by_filename(tf_in.path, *arg)
  tf_in.close(true)
  r
end