Skip to content

Commit

Permalink
bad option fixed, patch courtesy Peter van Heusden
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Fields committed May 27, 2012
1 parent 5fc32bc commit fc04d25
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions scripts/index/bp_fetch.pl
Expand Up @@ -4,7 +4,7 @@ =head1 NAME
bp_fetch.pl - fetches sequences from bioperl indexed databases
=head1 SYNOPSIS
=head1 SYNOPSIS
bp_fetch.pl swiss:ROA1_HUMAN
Expand Down Expand Up @@ -45,26 +45,26 @@ =head1 OPTIONS
-fmt <format> - Output format
Fasta (default), EMBL, Raw, swiss or GCG
-acc - string is an accession number, not an
id.
id.
options only for expert use
-dir <dir> - directory to find the index files
(overrides BIOPERL_INDEX environment varaible)
-type <type> - type of DBM file to open
-type <type> - type of DBM file to open
(overrides BIOPERL_INDEX_TYPE environment variable)
=head1 ENVIRONMENT
bp_index and bp_fetch coordinate where the databases lie using the
environment variable BIOPERL_INDEX. This can be overridden using the
-dir option. The index type (SDBM or DB_File or another index file)
is controlled by the BIOPERL_INDEX_TYPE variable. This defaults to
SDBM_File
is controlled by the BIOPERL_INDEX_TYPE variable. This defaults to
SDBM_File
=head1 USING IT YOURSELF
bp_fetch is a wrapper around the bioperl modules which support
bp_fetch is a wrapper around the bioperl modules which support
the Bio::DB::BioSeqI abstract interface. These include:
Author Code
Expand Down Expand Up @@ -94,7 +94,7 @@ =head1 EXTENDING IT
=head1 FEEDBACK
=head2 Mailing Lists
=head2 Mailing Lists
User feedback is an integral part of the evolution of this and other
Bioperl modules. Send your comments and suggestions preferably to
Expand Down Expand Up @@ -176,7 +176,7 @@ BEGIN
my $type = $ENV{'BIOPERL_INDEX_TYPE'};
my $fmt = 'Fasta';
my $useacc = 0;
my $ret = GetOptions('f|dir=s' => \$dir,
my $ret = GetOptions('d|dir=s' => \$dir,
'f|fmt=s' => \$fmt ,
't|type=s' => \$type ,
'acc!' => \$useacc);
Expand Down Expand Up @@ -218,7 +218,7 @@ BEGIN
$meta = 'local';
}

# parse to db:id
# parse to db:id

/^(\S+)\:(\S+)$/ || do { warn "$_ is not parsed as db:name\n"; next; };
($db,$id) = split/:/,$_,2;
Expand Down

0 comments on commit fc04d25

Please sign in to comment.