62b1428915cc2c8b9acbf46a86c1248833257efe mspeir Mon Nov 17 18:50:32 2025 -0800 changing rest of genome-source references to github, refs #34485 diff --git src/hg/utils/automation/faToHub.sh src/hg/utils/automation/faToHub.sh index d9884457969..3a92c80232a 100755 --- src/hg/utils/automation/faToHub.sh +++ src/hg/utils/automation/faToHub.sh @@ -56,31 +56,31 @@ if [ "${asmId}.2bit" -nt "${asmId}.chrom.sizes.txt" ]; then printf "# time twoBitInfo ${asmId}.2bit stdout | sort -k2,2nr > ${asmId}.chrom.sizes.txt\n" 1>&2 printf "# time twoBitInfo ${asmId}.2bit stdout | sort -k2,2nr > ${asmId}.chrom.sizes.txt\n" >> $buildLog time twoBitInfo "${asmId}.2bit" stdout | sort -k2,2nr > "${asmId}.chrom.sizes.txt" 2>> $buildLog touch -r "${asmId}.2bit" "${asmId}.chrom.sizes.txt" fi #### construct AGP file from assembly.fa sequence #### if [ "${asmFa}" -nt "${asmId}.agp.gz" ]; then printf "# time hgFakeAgp -minContigGap=1 -minScaffoldGap=1000 -singleContigs "${asmFa}" stdout | gzip -c > ${asmId}.agp.gz\n" 1>&2 printf "# time hgFakeAgp -minContigGap=1 -minScaffoldGap=1000 -singleContigs "${asmFa}" stdout | gzip -c > ${asmId}.agp.gz\n" >> $buildLog hgFakeAgp -minContigGap=1 -minScaffoldGap=1000 -singleContigs "${asmFa}" stdout | gzip -c > "${asmId}.agp.gz" 2>> $buildLog touch -r "${asmFa}" "${asmId}.agp.gz" fi -wget --timestamping "https://genome-source.gi.ucsc.edu/gitlist/kent.git/raw/master/src/hg/makeDb/doc/asmHubs/groups.txt" +wget --timestamping "https://github.com/ucscGenomeBrowser/kent/raw/master/src/hg/makeDb/doc/asmHubs/groups.txt" # calculate a default position in the middle of the largest sequence export chrName=`head -1 $asmId.chrom.sizes.txt | cut -f1` export bigChrom=`head -1 $asmId.chrom.sizes.txt | awk '{print $NF}'` export oneThird=`awk -v s=$bigChrom 'BEGIN {printf "%d", s/3}'` export tenK=`awk -v t=$oneThird -v m=$bigChrom 'BEGIN {r=t + 10000; if (r > m) { r = m}; printf "%d", r}'` export defPos="${chrName}:${oneThird}-${tenK}" printf "hub $asmId genome assembly shortLabel $asmId longLabel $asmId useOneFile on email yourEmail@uni.edu descriptionUrl html/$asmId.description.html