{
@options = qw(
database|d=s
+ tables|t=s
keys|k=s
query|q=s
user|u=s
$options{ "frames" } = [ split ",", $options{ "frames" } ] if defined $options{ "frames" };
$options{ "formats" } = [ split ",", $options{ "formats" } ] if defined $options{ "formats" };
$options{ "samples" } = [ split ",", $options{ "samples" } ] if defined $options{ "samples" };
+ $options{ "tables" } = [ split ",", $options{ "tables" } ] if defined $options{ "tables" };
# ---- check arguments ----
$options->{ "user" } ||= Maasha::UCSC::ucsc_get_user();
$options->{ "password" } ||= Maasha::UCSC::ucsc_get_password();
+ map { $table_hash{ $_ } = 1 } @{ $options->{ 'tables' } };
+
while ( $record = get_record( $in ) )
{
map { $table_hash{ $record->{ $_ } } = 1 } @{ $options->{ 'keys' } };