Skip to content

Commit

Permalink
fix col count; tweak pod (column names).
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasmueller committed Oct 29, 2024
1 parent 2710ed1 commit 384dcf4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/rename_locations.pl
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ =head1 COMMAND-LINE OPTIONS
=head1 DESCRIPTION
This script loads locations data into Chado, by adding data to nd_geolocation table. Infile is Excel .xls and .xlsx format.
Header is in this order: 'old name', 'new name'
Header is in this order: 'old_location_name', 'new_location_name'
=head1 AUTHOR
Expand Down Expand Up @@ -76,7 +76,7 @@ =head1 AUTHOR
my ( $row_min, $row_max ) = $worksheet->row_range();
my ( $col_min, $col_max ) = $worksheet->col_range();

if ($col_max ne '2' || $worksheet->get_cell(0,0)->value() ne 'old_location_name' || $worksheet->get_cell(0,1)->value() ne 'new_location_name') {
if ($col_max ne '1' || $worksheet->get_cell(0,0)->value() ne 'old_location_name' || $worksheet->get_cell(0,1)->value() ne 'new_location_name') {
pod2usage(-verbose => 2, -message => "Headers must be only in this order: old_location_name, new_location_name.\n");
}

Expand Down

0 comments on commit 384dcf4

Please sign in to comment.