From abb1eda2a6992f1aaec669a6e3ec4c0e24141f59 Mon Sep 17 00:00:00 2001 From: Bo Li Date: Sat, 6 Apr 2019 17:04:25 -0400 Subject: [PATCH] Fixed bugs to add .time --- rsem-calculate-expression | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/rsem-calculate-expression b/rsem-calculate-expression index bde4d1b..4d036ef 100755 --- a/rsem-calculate-expression +++ b/rsem-calculate-expression @@ -627,6 +627,15 @@ if ($mTime) { $time_start = time(); } if ($no_aligned) { print "Since no aligned reads, further steps will not be performed!\n"; + if (!$keep_intermediate_files) { + &runCommand("rm -rf $temp_dir", "Fail to delete the temporary folder!"); + } + if ($mTime) { + open(OUTPUT, ">$sampleName.time"); + print OUTPUT "Aligning reads: $time_alignment s.\n"; + print OUTPUT "Estimating expression levels: $time_rsem s.\n"; + close(OUTPUT); + } exit(0); }