08ec019f344fc52bd83ea3a98bedccd0048d732c
angie
Mon May 24 00:04:08 2021 -0700
Let the user upload a file containing names or IDs of sequences already in the selected tree; run matUtils extract to get subtrees that include those sequences. protobufs.tab gets a new optional column to specify a file that maps alias to tree name/ID (e.g. for mapping EPI_ISL to public names/IDs).
diff --git src/hg/hgPhyloPlace/hgPhyloPlace.c src/hg/hgPhyloPlace/hgPhyloPlace.c
index 2b40aaf..dd8661e 100644
--- src/hg/hgPhyloPlace/hgPhyloPlace.c
+++ src/hg/hgPhyloPlace/hgPhyloPlace.c
@@ -138,62 +138,62 @@
// Container for bootstrap grid layout
puts(
"
\n");
}
static void newPageEndStuff()
{
puts(
"
");
jsIncludeFile("utils.js", NULL);
webIncludeFile("inc/gbFooter.html");
webEndJWest();
}
-#define CHECK_FILE_INPUT_JS "{ var $fileInput = $('input[name="seqFileVar"]'); " \
+#define CHECK_FILE_INPUT_JS(varName) "{ var $fileInput = $('input[name="varName"]'); " \
"if ($fileInput && $fileInput[0] && $fileInput[0].files && !$fileInput[0].files.length) {" \
" alert('Please choose a file first, then click the upload button.');" \
" return false; " \
"} else { loadingImage.run(); return true; } }"
static void inputForm()
/* Ask the user for FASTA or VCF. */
{
printf("");
}
static void exampleForm()
@@ -361,43 +360,45 @@
// Form submits subtree custom tracks to hgTracks
printf("");
}
- else
+ else if (! success)
{
+ puts("");
puts(" ");
puts("");
// Let the user upload something else and try again:
inputForm();
}
}
else
{
warn("Unable to read your uploaded data - please choose a file and try again, or click the "
""try example" button.");
// Let the user try again:
puts(" ");
puts("");
inputForm();
exampleForm();