a29d4413f74fc087d4c99df4bd91a3b81eb4c350 hiram Thu Sep 30 10:18:27 2021 -0700 correct error message text no redmine diff --git src/hg/utils/automation/asmHubGc5Percent.pl src/hg/utils/automation/asmHubGc5Percent.pl index f123400..6674c10 100755 --- src/hg/utils/automation/asmHubGc5Percent.pl +++ src/hg/utils/automation/asmHubGc5Percent.pl @@ -10,31 +10,31 @@ if ($argc != 3) { printf STDERR "usage: asmHubGc5Percent.pl asmId asmId.names.tab buildDir\n"; printf STDERR "where asmId is the assembly identifier,\n"; printf STDERR "and asmId.names.tab is naming file for this assembly,\n"; printf STDERR "and buildDir is the directory with bbi/asmId.gc5Base.bw.\n"; exit 255; } my $asmId = shift; my $namesFile = shift; my $buildDir = shift; my $gc5Bw = "$buildDir/bbi/$asmId.gc5Base.bw"; if ( ! -s $gc5Bw ) { - printf STDERR "ERROR: can not find CpG masked file:\n\t'%s'\n", $gc5Bw; + printf STDERR "ERROR: can not find gc5Base.bw file:\n\t'%s'\n", $gc5Bw; exit 255; } my $em = "<em>"; my $noEm = "</em>"; my $assemblyDate = `grep -v "^#" $namesFile | cut -f9`; chomp $assemblyDate; my $ncbiAssemblyId = `grep -v "^#" $namesFile | cut -f10`; chomp $ncbiAssemblyId; my $organism = `grep -v "^#" $namesFile | cut -f5`; chomp $organism; my $averageGC = `bigWigInfo $gc5Bw | egrep "mean:" | sed -e 's/mean: //;'`; chomp $averageGC; $averageGC = sprintf("%.2f", $averageGC);