7dea7c645f8ce8892d6d4d162a3cf8295309062f chmalee Fri Dec 11 11:22:24 2020 -0800 Bringing repo copies of omim scripts up to date with the working versions, refs #18151 diff --git src/hg/utils/otto/gwas/checkGwas.sh src/hg/utils/otto/gwas/checkGwas.sh index 0edfea5..7e5643b 100755 --- src/hg/utils/otto/gwas/checkGwas.sh +++ src/hg/utils/otto/gwas/checkGwas.sh @@ -84,19 +84,24 @@ # match other archive date formats dateDir=`date +%F` if [ ! -d ${WORKDIR}/archive ]; then mkdir -p ${WORKDIR}/archive fi cd ${WORKDIR}/archive for db in "hg18" "hg19" "hg38" do mkdir -p ${db}/${dateDir} cd ${db}/${dateDir} printf "This directory contains a backup of the GWAS Catalog track data tables built on %s\n" "${dateDir}" > README hgsql --raw -Ne "show create table gwasCatalog" ${db} > gwasCatalog.sql hgsql -Ne "select * from gwasCatalog" ${db} | gzip > gwasCatalog.txt.gz done +# testing new archival script +cd ${WORKDIR}/${today} +/cluster/home/chmalee/bin/scripts/archiveTracks.sh -t "gwasCatalog" /hive/data/inside/archive/ "hg38 hg19 hg18" "GWAS_Catalog" 2>archiveTracks.${dateDir}.err +printf "archiveTracks.sh for gwas catalog exit status %d\n" "$?" + echo "Gwas Installed `date`"