fca9df21f4b3dfbb1191a0fe13d1d1bb100252c3 angie Wed Sep 26 11:20:36 2018 -0700 In multi-region dialog, mention fix patches if applicable, and make alt/fix input wider to accommodate long aliases and autocomplete labels. refs #18854 diff --git src/hg/hgTracks/config.c src/hg/hgTracks/config.c index 1f4d2e9..50bb83c 100644 --- src/hg/hgTracks/config.c +++ src/hg/hgTracks/config.c @@ -684,53 +684,56 @@ hTextVar("singleTransId", trans, 20); hPrintf("\n"); } */ if (conn) { boolean altLocExists = sqlTableExists(conn, "altLocations"); boolean fixLocExists = sqlTableExists(conn, "fixLocations"); if (altLocExists || fixLocExists) { hPrintf(""); cgiMakeRadioButton("virtModeType", "singleAltHaplo", sameWord("singleAltHaplo", virtModeType)); hPrintf(""); - hPrintf("Show one alternate haplotype, placed on its chromosome, using ID: "); + hPrintf("Show one alternate haplotype"); + if (fixLocExists) + hPrintf(" or fix patch"); + hPrintf(", placed on its chromosome, using ID: "); char *haplo = cartUsualString(cart, "singleAltHaploId", singleAltHaploId); char *foundHaplo = NULL; char sql[1024]; if (altLocExists) { sqlSafef(sql, sizeof sql, "select name from altLocations where name='%s'", haplo); foundHaplo = sqlQuickString(conn, sql); } if (!foundHaplo && fixLocExists) { sqlSafef(sql, sizeof sql, "select name from fixLocations where name='%s'", haplo); foundHaplo = sqlQuickString(conn, sql); } if (!foundHaplo) { if (altLocExists) sqlSafef(sql, sizeof sql, "select name from altLocations limit 1"); else sqlSafef(sql, sizeof sql, "select name from fixLocations limit 1"); haplo = sqlQuickString(conn, sql); } - hTextVar("singleAltHaploId", haplo, 20); + hTextVar("singleAltHaploId", haplo, 60); hPrintf("\n"); } } /* disable demo for now if (sameString(database,"hg19") || sameString(database, "hg38")) { hPrintf(""); cgiMakeRadioButton("virtModeType", "demo1", sameWord("demo1", virtModeType)); hPrintf(""); hPrintf("demo1 two windows on two chroms (default pos on chr21, and same loc on chr22)"); hPrintf("\n"); } */