Changeset 20814
- Timestamp:
- Nov 21, 2008, 11:55:10 AM (17 years ago)
- File:
-
- 1 edited
-
trunk/tools/chip_outputs.pl (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/chip_outputs.pl
r20591 r20814 19 19 20 20 my ($db_host, $db_name, $db_user, $db_pw); # Database details 21 my ($chip_id );# Chip of interest21 my ($chip_id, $class_id); # Chip of interest 22 22 my ($input); # Input list 23 my ($products); # Products of interest23 my ($products); # Products of interest 24 24 25 25 GetOptions( … … 29 29 'dbpass=s' => \$db_pw, # Database p/w 30 30 'chip_id=s' => \$chip_id, # Chip identifier 31 'products=s' => \$products, # Products of interest 31 'class_id=s' => \$class_id, # Class identifier 32 'products=s' => \$products, # Products of interest 32 33 ) or die "Unable to parse arguments.\n"; 33 34 die "Unknown option: @ARGV\n" if @ARGV; … … 50 51 " FROM chipProcessedImfile " . 51 52 " WHERE chip_id = $chip_id"; 53 $sql .= " AND class_id = $class_id" if defined $class_id; 52 54 53 55 # List of chips 54 56 my $results = $db->selectall_arrayref( $sql ) or die "Unable to execute SQL: $DBI::errstr"; 55 57 56 my @products; # Array of products58 my @products; # Array of products 57 59 if (defined $products) { 58 60 @products = split /,/, $products; … … 62 64 63 65 foreach my $row ( @$results ) { 64 my $path = $$row[0]; # Path base65 my $class_id = $$row[1]; # Class identifier66 my $path = $$row[0]; # Path base 67 my $class_id = $$row[1]; # Class identifier 66 68 67 69 my $name = "$path.$class_id"; # Full name 68 70 foreach my $product ( @products ) { 69 copy_extension( $name, ${EXTENSIONS()}{$product} );71 copy_extension( $name, ${EXTENSIONS()}{$product} ); 70 72 } 71 73 } … … 77 79 { 78 80 my $path = shift; # Path to copy 79 my $ext = shift; # Extension to copy81 my $ext = shift; # Extension to copy 80 82 81 83 my $neb = "$path$ext"; # Nebulous file
Note:
See TracChangeset
for help on using the changeset viewer.
