f318a5ef17926efafcf8898bcfa5ec6bd8a57bf1 angie Mon Jan 13 13:37:17 2025 -0800 Add a Download section when a download.html file is present in the org directory. diff --git src/hg/hgPhyloPlace/hgPhyloPlace.c src/hg/hgPhyloPlace/hgPhyloPlace.c index 242ea18..d92c273 100644 --- src/hg/hgPhyloPlace/hgPhyloPlace.c +++ src/hg/hgPhyloPlace/hgPhyloPlace.c @@ -360,30 +360,53 @@ puts("
"); if (sameString(org, "wuhCor1")) { puts("\n" "GISAID data displayed in the Genome Browser are subject to GISAID's\n" "" "Terms and Conditions.\n" "SARS-CoV-2 genome sequences and metadata are available for download from\n" "GISAID EpiCoV™.\n" "
"); puts("\n" "COVID-19 Pandemic Resources at UCSC
\n"); } puts(""); puts(""); +// If org directory includes non-empty download.html file then make a Download section +char *orgSkipHub = trackHubSkipHubName(org); +char downloadHtmlFile[1024]; +safef(downloadHtmlFile, sizeof downloadHtmlFile, PHYLOPLACE_DATA_DIR "/%s/download.html", orgSkipHub); +struct lineFile *lf = lineFileMayOpen(downloadHtmlFile, TRUE); +if (lf != NULL) + { + char *line = NULL; + int size; + lineFileNext(lf, &line, &size); + if (isNotEmpty(line)) + { + puts("We do not store your information " "(aside from the information necessary to display results)\n" "and will not share it with others unless you choose to share your Genome Browser view.
\n" "In order to enable rapid progress in pandemic research and genomic contact tracing,\n" "please share your sequences by submitting them to an "