# global data containers
my %configs; # holds global configuration settings
+my %swap_genes; # holds original and swapped genes
my $gpml_doc; #holds imported GPML data for manipulation and output
$Data::Dumper::Pad = "... ";
sub import_data
{
print "Opening input file and reading header info...\n\n";
+ #open the file
+ #read a line
+ #skip header line
+ #split line on comma
+ #get original gene and swapped gene
+ #add genes to %swap_genes
+ open(CONFIG_FILE, $input_gene_file) or die("Could not open $input_gene_file");
+
+ my $line = <CONFIG_FILE>;
+ while (<CONFIG_FILE>)
+ {
+ $line = $_;
+ chomp $line;
+ my @line_ary = split(',',$line);
+ my $data_field = $line_ary[0];
+ my $data_val = $line_ary[1];
+
+ $swap_genes{$data_field} = $data_val;
+ }
+ #test:display %swap_genes
+ if ($debug) { print "...<DEBUG: \%swap_genes>\n"
+ . Dumper(\%swap_genes) . "\n\n"; }
+
+
+
}