9b6653339725825ef07c07651fd3003ac1fd88b6
hiram
  Fri May 15 12:49:43 2026 -0700
adding in html description page refs #31811

diff --git src/hg/makeDb/doc/vgp577way/mkTdb.sh src/hg/makeDb/doc/vgp577way/mkTdb.sh
new file mode 100755
index 00000000000..3cea9aeb9c8
--- /dev/null
+++ src/hg/makeDb/doc/vgp577way/mkTdb.sh
@@ -0,0 +1,21 @@
+#!/bin/bash
+
+if [ ! -s "coverage/order.list" ]; then
+  printf "ERROR: do not find the 'coverage/order.list' here ?\n" 1>&2
+  exit 255
+fi
+
+export names="$HOME/kent/src/hg/makeDb/doc/vgp577way//577.acc.sciName.comName.clade.tsv"
+export mkTdb="$HOME/kent/src/hg/makeDb/doc/vgp577way/vgp577way.pl"
+export mkHtml="$HOME/kent/src/hg/makeDb/doc/vgp577way/mkHtml.pl"
+### this does not work for the hg38, hs1 and mm39 assemblies
+export target=`pwd -P | sed -e "s#.*/GC\([AF]\)_#GC\\1_#;" | cut -d"_" -f1-2`
+if [[ "${target}" == GC* ]]; then
+  ${mkTdb} ${target} "${names}" coverage/order.list > vgp577way.trackDb.txt
+  ${mkHtml} ${target} "${names}" coverage/order.list > vgp577way.html
+else
+   # for hg38, hs1 and mm39 in /hive/data/genomes/<db>/...
+   target=`pwd -P | cut -d'/' -f5`
+   ${mkTdb} ${target} "${names}" coverage/order.list > vgp577way.trackDb.txt
+   ${mkHtml} ${target} "${names}" coverage/order.list > vgp577way.html
+fi