c1595df4f78382977a7a8ae96f233b8541bf4ce7 lrnassar Tue Oct 12 16:19:55 2021 -0700 Removing the insecure k flag as it seems lovd have updated their servers refs #28328 diff --git src/hg/utils/otto/lovd/download.sh src/hg/utils/otto/lovd/download.sh index f39fa39..bb40cc7 100755 --- src/hg/utils/otto/lovd/download.sh +++ src/hg/utils/otto/lovd/download.sh @@ -1,34 +1,34 @@ #!/bin/sh -e # Do not modify this script, modify the source tree copy: # src/utils/lovd/check.sh # This script is used via a cron job # cron jobs need to ensure this is true umask 002 WORKDIR="/hive/data/outside/otto/lovd" # this is where we are going to work if [ ! -d "${WORKDIR}" ]; then echo "ERROR in lovd release, Can not find the directory: ${WORKDIR}" exit 255 fi cd "${WORKDIR}" today=`date +%F` mkdir -p $today cd $today # http request needs to come from hgwdev IP address otherwise file not found error for db in hg38 hg19 do - ~max/miniconda3/bin/curl -sk 'https://varcache.lovd.nl/bed/'${db}'?add_id_ncbi=1&add_annotation=1' | \ + ~max/miniconda3/bin/curl -s 'https://varcache.lovd.nl/bed/'${db}'?add_id_ncbi=1&add_annotation=1' | \ grep -v track | grep -v ^$ | sed -e s/^/chr/g | \ tawk '{gsub(";",FS,$6); gsub("effect:|lovd_count:","",$6); print }' | \ sort -k1,1 -k2,2n > lovd.${db}.bed lcount=`wc -l lovd.${db}.bed | cut -d' ' -f1 ` if [ $lcount -lt "10000" ] ; then echo LOVD file lovd.${db}.bed is too small exit 1 fi done