# ---------------------------------------------------------------------------
my %opts; # arg options
-my $input_file;
+my $input_gpml_file;
+my $input_gene_file;
+my $input_config_file;
my $output_file;
my $verbose = 0; # flag for verbose output
my $debug = 0; # debugging switch
sub init
{
# read and set options
- getopts('i:o:vd', \%opts);
+ getopts('i:g:c:o:vd', \%opts);
foreach my $key (keys %opts) {
my $value = $opts{$key};
switch ($key) {
case "i" {
if ($value =~ /\//) { # assume path
- $input_file = $value;
+ $input_gpml_file = $value;
} else {
- $input_file = getcwd() . "\/$value";
+ $input_gpml_file = getcwd() . "\/$value";
}
}
- case "o" {
+ case "g" {
+ if ($value =~ /\//) { # assume path
+ $input_gene_file = $value;
+ } else {
+ $input_gene_file = getcwd() . "\/$value";
+ }
+ }
+ case "c" {
+ if ($value =~ /\//) { # assume path
+ $input_config_file = $value;
+ } else {
+ $input_config_file = getcwd() . "\/$value";
+ }
+ }
+ case "o" {
if ($value =~ /\//) { # assume path
$output_file = $value;
} else {
. "------------------ Pathway Gene Swapper --------------------\n"
. "------------------------------------------------------------\n"
. "\n"
- . "Input File: $input_file\n"
+ . "Input File: $input_gpml_file\n"
+ . " $input_gene_file\n"
+ . " $input_config_file\n"
. "Output File: $output_file\n"
. "Running in verbose mode? " . ($verbose ? "Yes" : "No") . "\n"
. "Running in debug mode? " . ($verbose ? "Yes" : "No") . "\n"