Method: Bio::MAFFT#query_align

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

#query_align(seqs, *arg) ⇒ Object

Note that this method will be renamed to query_alignment.

Performs alignment for seqs. seqs should be Bio::Alignment or Array of sequences or nil.

Compatibility Note: arg is deprecated and ignored.



194
195
196
197
198
199
200
201
202
# File 'lib/bio/appl/mafft.rb', line 194

def query_align(seqs, *arg)
  if arg.size > 0 then
    warn '2nd and other arguments of Bio::MAFFT#query_align is ignored'
  end
  unless seqs.is_a?(Bio::Alignment)
    seqs = Bio::Alignment.new(seqs)
  end
  query_string(seqs.output_fasta(:width => 70))
end