892ed11dc23adf5ebc35babd5e62993778f3e4b7
chmalee
Thu Feb 5 10:18:34 2026 -0800
Add some documentation to hgCustom indicating we have hubspace now, refs #37013
diff --git src/hg/hgCustom/hgCustom.c src/hg/hgCustom/hgCustom.c
index 6503c2fc046..b1d04bdcaf6 100644
--- src/hg/hgCustom/hgCustom.c
+++ src/hg/hgCustom/hgCustom.c
@@ -131,34 +131,36 @@
" hic,\n"
" interact,\n"
" MAF,\n"
" narrowPeak,\n"
" Personal Genome SNP,\n"
" PSL,\n"
" or WIG\n"
" formats.
\n"
"
\n"
" - You can paste just the URL to the file, without a \"track\" line, for bigBed, bigWig, bigGenePred, CRAM, BAM and VCF.
"
" - To configure the display, set\n"
" track\n"
" and"
" browser\n"
" line attributes as described in the \n"
-" User's Guide.
\n"
+" User's Guide.\n"
" Examples are\n"
-" here.\n"
-" If you do not have web-accessible data storage available, please see the\n"
+" here. \n"
+" - If you do not have web-accessible data storage available, you can use our Hub Space feature\n"
+" (available from the blue bar under My Data -> Track Hubs, and then selecting the\n"
+" "Hub Upload" tab), or read the\n"
" Hosting section of the Track Hub Help documentation.\n
"
"
\n"
" Please note a much more efficient way to load data is to use\n"
" Track Hubs, which are loaded\n"
" from the Track Hubs Portal found in the menu under My Data.\n"
);
}
void addCustomForm(struct customTrack *ct, char *err, boolean warnOnly)
/* display UI for adding custom tracks by URL or pasting data */
{
char *dataUrl = NULL;
char buf[1024];
boolean isUpdateForm = FALSE;
@@ -325,31 +327,31 @@
cgiTableField(" ");
else
{
puts("");
puts("Or upload: ");
cgiMakeFileEntry(hgCtDataFile);
cgiTableFieldEnd();
jsInline(
"$(\"[name='hgt.customFile']\").change(function(ev) { \n"
" var fname = ev.target.files[0].name; \n"
" var ext = fname.split('.').pop().toLowerCase(); \n"
" var warnExts = ['bigbed', 'bb', 'bam', 'bigwig', 'bw', 'jpeg', 'pdf', 'jpg', 'png', 'hic', 'cram'];\n"
" if (warnExts.indexOf(ext) >= 0) {\n"
" alert('You are trying to upload a binary file on this page, but the Genome Browser server needs access to binary files via the internet.'+"
" ' Therefore, you will need to store the files on a web server, then paste the URLs to them on this page, or upload a text file with \"track\" lines '+"
- " ' and configuration settings that point to the file URLs. Please read the documentation'+"
+ " ' and configuration settings that point to the file URLs, or upload your binary files to our Hub Space feature, available under My Data -> Track Hubs -> Hub Upload. Please read the documentation'+"
" ' referenced at the top of this page or contact us for more information.');\n"
" $(\"[name='hgt.customFile']\")[0].value = '';"
" }\n"
"});\n"
);
}
if (!isUpdateForm)
{
cgiSimpleTableFieldStart();
if (warnOnly)
{
cgiMakeButtonWithOnClick("ContinueWithWarn", "Continue with Warning", NULL, "return submitClick(this);");
printf(" ");
jsInline(
|