Method: Bio::MAFFT#query

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

#query(seqs) ⇒ Object

Executes the program. If seqs is not nil, perform alignment for seqs. If seqs is nil, simply executes the program.

Compatibility note: When seqs is nil, returns true if the program exits normally, and returns false if the program exits abnormally.



179
180
181
182
183
184
185
186
# File 'lib/bio/appl/mafft.rb', line 179

def query(seqs)
  if seqs then
    query_align(seqs)
  else
    exec_local(@options)
    @exit_status.exitstatus == 0 ? true : false
  end
end