From 97b9284109c9a4431b92eab208509e1df6069b4b Mon Sep 17 00:00:00 2001 From: Naohisa Goto Date: Wed, 6 May 2009 17:15:23 +0900 Subject: [PATCH] Restored Bio::Fasta.parser for keeping compatibility, and added forgotten require. --- lib/bio/appl/fasta.rb | 9 +++++++++ lib/bio/appl/fasta/format10.rb | 1 + 2 files changed, 10 insertions(+) diff --git a/lib/bio/appl/fasta.rb b/lib/bio/appl/fasta.rb index e3f033851..e2e4e37d7 100644 --- a/lib/bio/appl/fasta.rb +++ b/lib/bio/appl/fasta.rb @@ -66,6 +66,15 @@ def format=(num) end attr_reader :format + # OBSOLETE. Does nothing and shows warning messages. + # + # Historically, selecting parser to use ('format6' or 'format10' were + # expected, but only 'format10' was available as a working parser). + # + def self.parser(parser) + warn 'Bio::Fasta.parser is obsoleted and will soon be removed.' + end + # Returns a FASTA factory object (Bio::Fasta) to run FASTA search on # local computer. def self.local(program, db, option = '') diff --git a/lib/bio/appl/fasta/format10.rb b/lib/bio/appl/fasta/format10.rb index 4c752e6db..ae140fb6e 100644 --- a/lib/bio/appl/fasta/format10.rb +++ b/lib/bio/appl/fasta/format10.rb @@ -8,6 +8,7 @@ # require 'bio/appl/fasta' +require 'bio/io/flatfile/splitter' module Bio class Fasta