class Bio::Blast::Fastacmd

DESCRIPTION

Retrieves FASTA formatted sequences from a blast database using NCBI fastacmd command.

This class requires ‘fastacmd’ command and a blast database

(formatted using the ‘-o’ option of ‘formatdb’).

USAGE

require 'bio'

fastacmd = Bio::Blast::Fastacmd.new("/db/myblastdb")

entry = fastacmd.get_by_id("sp:128U_DROME")
fastacmd.fetch("sp:128U_DROME")
fastacmd.fetch(["sp:1433_SPIOL", "sp:1432_MAIZE"])

fastacmd.fetch(["sp:1433_SPIOL", "sp:1432_MAIZE"]).each do |fasta|
  puts fasta
end

REFERENCES