#!/bin/bash -e # align-genbank [-copy|-finish] [-keep] [-workdir dir] # Script to do alignment part of build. This is normally called by # genbank-build, however it can be run by hand if the alignment needs to # be manually completed. Edit this file to add new genomes and assemblies. # # -copy - continue a file alignment at the copy phase # -finish - Finish processing an alignment that was completed by hand. # -workdir dir - set the workdir, need with -finish if the date has # changed since the alignment was started. # -keep - don't delete working directory # # errors terminate with message set -e trap "echo Error: genbank-align failed on $(hostname) >&2; exit 1" ERR exec &2 exit 1 ;; esac done # setup workdir unless specified on command line if [ "x$workdir" = "x" ] ; then date=$(date +"%Y.%m.%d") workdir="work/daily/align.$date" fi nice -14 gbAlignStep -maxParallel=$maxParallel $finish $keep -workdir=$workdir $databases gbMkTimeFile $buildTime