48ff31d7c310549df1111e86dcd3abd66abe6586 angie Wed Oct 24 16:37:39 2018 -0700 Alt haplotype and fix patch alignment tracks with links to multi-region mode (refs #18854) * Adding altSeqLiftOverPsl and fixSeqListOverPsl as top-level tracks (release alpha). * New 'db' option for baseColorUseSequence makes it fetch sequence from the current database (or other database if specified) -- we don't need seq/extFile for alts and patches now that they have been added to the .2bit. * Special hgc handler for {alt,fix}SeqLiftOverPsl has links to view the alt/fix in multi-region mode, to see the alignment details in the current position range, and to jump to the corresponding position range in the browser. diff --git src/hg/lib/hui.c src/hg/lib/hui.c index 3924704..1a184ea 100644 --- src/hg/lib/hui.c +++ src/hg/lib/hui.c @@ -1119,31 +1119,31 @@ gotIt = TRUE; return gotIt; } static boolean baseColorGotSequence(struct trackDb *tdb) /* Return true if this track has aligned sequence according to tdb. */ { boolean gotIt = FALSE; char *setting = trackDbSetting(tdb, BASE_COLOR_USE_SEQUENCE); if (isNotEmpty(setting)) { if (sameString(setting, "genbank") || sameString(setting, "seq") || sameString(setting, "ss") || startsWith("extFile", setting) || sameString(setting, "hgPcrResult") || sameString(setting, "nameIsSequence") || sameString(setting, "seq1Seq2") || sameString(setting, "lfExtra") || - sameString(setting, "lrg") || startsWith("table ", setting)) + sameString(setting, "lrg") || startsWith("table ", setting) || startsWithWord("db", setting)) gotIt = TRUE; else if (differentString(setting, "none")) errAbort("trackDb for %s, setting %s: unrecognized value \"%s\". " "must be one of {none, genbank, seq, ss, extFile, nameIsSequence, seq1Seq2," "hgPcrResult, lfExtra, lrg, table <em>table</em>}.", tdb->track, BASE_COLOR_USE_SEQUENCE, setting); } return gotIt; } static void baseColorDropLists(struct cart *cart, struct trackDb *tdb, char *name) /* draw the baseColor drop list options */ { enum baseColorDrawOpt curOpt = baseColorDrawOptEnabled(cart, tdb); char *curValue = baseColorDrawAllOptionValues[curOpt];