15746316e92290a4aee220a757cb35293176d6e8
max
Tue Feb 7 05:29:10 2023 -0800
adding file download links directly to the table browser "schema / data format" button, refs #30491
diff --git src/hg/hgTables/vcf.c src/hg/hgTables/vcf.c
index ed59fff..c180371 100644
--- src/hg/hgTables/vcf.c
+++ src/hg/hgTables/vcf.c
@@ -465,35 +465,33 @@
}
#define VCF_MAX_SCHEMA_COLS 20
void showSchemaVcf(char *table, struct trackDb *tdb, boolean isTabix)
/* Show schema on vcf. */
{
struct sqlConnection *conn = NULL;
if (!trackHubDatabase(database))
conn = hAllocConn(database);
char *fileName = vcfMustFindFileName(conn, table, hDefaultChrom(database), isTabix);
struct asObject *as = vcfAsObj();
hPrintf("Database: %s", database);
hPrintf(" Primary Table: %s
", table);
-hPrintf("VCF File: %s", fileName);
+printDownloadLink("VCF", fileName);
hPrintf("
\n");
hPrintf("Format description: %s
", as->comment);
-hPrintf("See the Variant Call Format specification for more details
\n",
- "http://www.1000genomes.org/wiki/analysis/vcf4.0");
/* Put up table that describes fields. */
hTableStart();
hPrintf("