From f7c68ae7398960b44626aeb7c222f1bec0314b62 Mon Sep 17 00:00:00 2001 From: Kaichi Huang Date: Wed, 1 Apr 2020 00:27:54 -0700 Subject: [PATCH] Update EDTA_raw.pl Small fix to report finishing time for TIR so that users can have run time information. --- EDTA_raw.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/EDTA_raw.pl b/EDTA_raw.pl index 58e827b..9686c61 100755 --- a/EDTA_raw.pl +++ b/EDTA_raw.pl @@ -399,9 +399,11 @@ chdir '../..'; # check results +$date=`date`; +chomp ($date); die "Error: TIR results not found!\n\n" unless -e "$genome.EDTA.raw/$genome.TIR.raw.fa"; if (-s "$genome.EDTA.raw/$genome.TIR.raw.fa"){ - print STDERR "Finish finding TIR candidates.\n\n"; + print STDERR "$date\tFinish finding TIR candidates.\n\n"; } else { `touch "$genome.EDTA.raw/$genome.TIR.raw.fa"`; print STDERR "Warning: The TIR result file has 0 bp!\n\n";