App-GeoCancerPrognosticDatasetsRetriever
view release on metacpan or search on metacpan
bin/geoCancerPrognosticDatasetsRetriever view on Meta::CPAN
my @files = glob("$prog_path/data/$cancer\_cancer_GEO_*.txt");
my @sorted_files = sort {$b cmp $a} @files;
$run_dir = "$prog_path/results/$cancer_type\_GEO-files";
foreach my $file (@sorted_files) {
$restart_input_file = basename($file);
last;
}
#If an old run file was found, prompt the user with choices to make.
if (-e "$run_dir") {
print color ("red"), "$cancer_type\_GEO-files directory exists...This run was not completed\n", color("reset");
my $text = "";
my $ok = timed_response( sub {
print color ("red"), "Do you want to resume an interrupted execution [r], or start a new one [n]? (r/n)\nDefault selection will be [n] after 10 seconds...\n", color("reset"); $text = <STDIN>;
}, 10);
bin/geoCancerPrognosticDatasetsRetriever view on Meta::CPAN
}
}
print color ("green"), "done\n", color("reset");
close (IN);
close (OUT);
}
############################ SUBROUTINE 7 #######################################################
#Check for the presence of curl in the $PATH. If not found, install on an Ubuntu system or if
#not Ubuntu, prompt user to install it manually.
sub check_curl {
#check for the presence of curl binary
my $check = qx{which curl};
#if no curl binary was found, install it on Ubuntu/Ubuntu-based systems
if (!$check) {
#check if current system is Ubuntu/or Ubuntu-based
my $ubuntu = qx{uname -a};
( run in 0.688 second using v1.01-cache-2.11-cpan-6aa56a78535 )