use File::Path 'rmtree';
use strict;
+use rsem_perl_utils;
+
my ($in_file, $out_file) = ();
my @tmp_dirs = ();
$command = $dir."rsem-sam-validator $out_file";
&runCommand($command);
-
-# command, {err_msg}
-sub runCommand {
- print STDERR $_[0]."\n";
- my $status = system($_[0]);
- if ($status != 0) {
- my $errmsg;
- if (scalar(@_) > 1) { $errmsg = $_[1]; }
- else { $errmsg = "\"$command\" failed! Plase check if you provide correct parameters/options for the script!"; }
- print STDERR $errmsg."\n";
- exit(-1);
- }
- print STDERR "\n";
-}
-
__END__
=head1 NAME