src/hg/utils/automation/doRecipBest.pl 1.12
1.12 2010/02/04 18:33:56 hiram
allow use of lastz or blastz directory
Index: src/hg/utils/automation/doRecipBest.pl
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/utils/automation/doRecipBest.pl,v
retrieving revision 1.11
retrieving revision 1.12
diff -b -B -U 4 -r1.11 -r1.12
--- src/hg/utils/automation/doRecipBest.pl 21 Jul 2008 18:07:16 -0000 1.11
+++ src/hg/utils/automation/doRecipBest.pl 4 Feb 2010 18:33:56 -0000 1.12
@@ -298,10 +298,17 @@
$splitRef = (`wc -l < $HgAutomate::clusterData/$tDb/chrom.sizes`
<= $HgAutomate::splitThreshold);
# Establish what directory we will work in.
-$buildDir = $opt_buildDir ? $opt_buildDir :
- "$HgAutomate::clusterData/$tDb/$HgAutomate::trackBuild/blastz.$qDb";
+if ($opt_buildDir) {
+ $buildDir = $opt_buildDir;
+} else {
+$buildDir = "$HgAutomate::clusterData/$tDb/$HgAutomate::trackBuild/blastz.$qDb";
+if (! -d $buildDir) {
+$buildDir = "$HgAutomate::clusterData/$tDb/$HgAutomate::trackBuild/lastz.$qDb";
+}
+die "can not find existing build directory:\n$buildDir\n";
+}
# Do everything.
$stepper->execute();