[Bioperl-guts-l] [16906] bioperl-run/trunk/lib/Bio/Tools/Run/StandAloneBlastPlus.pm: alias -program_dir to -prog_dir (thanks Ben)

Mark Allen Jensen maj at dev.open-bio.org
Thu Mar 4 22:12:49 EST 2010


Revision: 16906
Author:   maj
Date:     2010-03-04 22:12:49 -0500 (Thu, 04 Mar 2010)
Log Message:
-----------
alias -program_dir to -prog_dir (thanks Ben)

Modified Paths:
--------------
    bioperl-run/trunk/lib/Bio/Tools/Run/StandAloneBlastPlus.pm

Modified: bioperl-run/trunk/lib/Bio/Tools/Run/StandAloneBlastPlus.pm
===================================================================
--- bioperl-run/trunk/lib/Bio/Tools/Run/StandAloneBlastPlus.pm	2010-03-04 19:13:03 UTC (rev 16905)
+++ bioperl-run/trunk/lib/Bio/Tools/Run/StandAloneBlastPlus.pm	2010-03-05 03:12:49 UTC (rev 16906)
@@ -496,7 +496,7 @@
     my $self = $class->SUPER::new(@args);
     my ($db_name, $db_data, $db_dir, $db_make_args,
 	$mask_file, $mask_data, $mask_make_args, $masker, 
-	$create, $overwrite, $is_remote, $program_dir) 
+	$create, $overwrite, $is_remote, $prog_dir, $program_dir) 
                  = $self->_rearrange([qw( 
                                           DB_NAME
                                           DB_DATA
@@ -510,6 +510,7 @@
                                           OVERWRITE
                                           REMOTE
                                           PROG_DIR
+                                          PROGRAM_DIR
                                            )], @args);
 
     # parm taint checks
@@ -524,6 +525,7 @@
     else {
 	$self->{'_db_dir'} = '.';
     }
+    $program_dir ||= $prog_dir; # alias
     # now handle these systematically (bug #3003)
     # allow db_name to include path info
     # let db_dir act as root if present and db_name is a relative path



More information about the Bioperl-guts-l mailing list