]> git.donarmstrong.com Git - biopieces.git/blobdiff - bp_bin/read_mysql
fixed seq qual length check
[biopieces.git] / bp_bin / read_mysql
index ff96a81ee6bd4d00926e1991b38fa51a24e207db..2d8f7b1674c3704cb2bb554554fb703a70505a8a 100755 (executable)
@@ -36,17 +36,17 @@ use Maasha::UCSC;
 # >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
 
 
-my ( $default_user, $default_password, $options, $in, $out, $record, $dbh, $results );
+my ( $user, $password, $options, $in, $out, $record, $dbh, $results );
 
-$default_user     = Maasha::UCSC::ucsc_get_user();
-$default_password = Maasha::UCSC::ucsc_get_password();
+$user     = Maasha::Biopieces::biopiecesrc( "MYSQL_USER" );
+$password = Maasha::Biopieces::biopiecesrc( "MYSQL_PASSWORD" );
 
 $options = Maasha::Biopieces::parse_options(
     [
-        { long => 'database', short => 'd', type => 'string', mandatory => 'yes', default => undef,             allowed => undef, disallowed => undef },
-        { long => 'query',    short => 'q', type => 'string', mandatory => 'yes', default => undef,             allowed => undef, disallowed => undef },
-        { long => 'user',     short => 'u', type => 'string', mandatory => 'no',  default => $default_user,     allowed => undef, disallowed => undef },
-        { long => 'password', short => 'p', type => 'string', mandatory => 'no',  default => $default_password, allowed => undef, disallowed => undef },
+        { long => 'database', short => 'd', type => 'string', mandatory => 'yes', default => undef,     allowed => undef, disallowed => undef },
+        { long => 'query',    short => 'q', type => 'string', mandatory => 'yes', default => undef,     allowed => undef, disallowed => undef },
+        { long => 'user',     short => 'u', type => 'string', mandatory => 'no',  default => $user,     allowed => undef, disallowed => undef },
+        { long => 'password', short => 'p', type => 'string', mandatory => 'no',  default => $password, allowed => undef, disallowed => undef },
     ]   
 );