e46073f856770bdfef4f7637eea8f9f9297aa139 chmalee Tue Nov 19 15:57:08 2019 -0800 Initial commit of new track type vcfPhased trio. A line with ticks, one per haplotype per sample in the VCF, as specified by trackDb variables. diff --git src/hg/hgc/hgc.c src/hg/hgc/hgc.c index 211659c..f2fd000 100644 --- src/hg/hgc/hgc.c +++ src/hg/hgc/hgc.c @@ -21316,31 +21316,31 @@ genericChainClick(NULL, ct->tdb, item, start, "seq"); else if (sameWord(type, "bigPsl")) genericBigPslClick(NULL, ct->tdb, item, start, end); else if (sameWord(type, "bigMaf")) genericMafClick(NULL, ct->tdb, item, start); else if (sameWord(type, "bigDbSnp")) doBigDbSnp(ct->tdb, item); else if (sameWord(type, "bigBed") || sameWord(type, "bigGenePred")) bigBedCustomClick(ct->tdb); else if (sameWord(type, "bigBarChart") || sameWord(type, "barChart")) doBarChartDetails(ct->tdb, item); else if (sameWord(type, "bigInteract") || sameWord(type, "interact")) doInteractDetails(ct->tdb, item); else if (sameWord(type, "bam")) doBamDetails(ct->tdb, itemName); -else if (sameWord(type, "vcfTabix")) +else if (sameWord(type, "vcfTabix") || sameWord(type, "vcfPhasedTrio")) doVcfTabixDetails(ct->tdb, itemName); else if (sameWord(type, "vcf")) doVcfDetails(ct->tdb, itemName); else if (sameWord(type, "makeItems")) doMakeItemsDetails(ct, fileName); // fileName is first word, which is, go figure, id else if (ct->wiggle) { if (ct->dbTrack) { struct sqlConnection *conn = hAllocConn(CUSTOM_TRASH); genericWiggleClick(conn, ct->tdb, fileItem, start); hFreeConn(&conn); } else genericWiggleClick(NULL, ct->tdb, fileItem, start); @@ -26718,31 +26718,32 @@ { doPeptideAtlas(tdb, item); } else if (startsWith("gtexGene", table)) { doGtexGeneExpr(tdb, item); } else if (startsWith("gtexEqtlCluster", table)) { doGtexEqtlDetails(tdb, item); } else if (startsWith("snake", trackHubSkipHubName(table))) { doSnakeClick(tdb, item); } -else if (tdb != NULL && startsWithWord("vcfTabix", tdb->type)) +else if (tdb != NULL && + (startsWithWord("vcfTabix", tdb->type) || sameWord("vcfPhasedTrio", tdb->type))) { doVcfTabixDetails(tdb, item); } else if (tdb != NULL && startsWithWord("vcf", tdb->type)) { doVcfDetails(tdb, item); } else if (tdb != NULL && (startsWithWord("barChart", tdb->type) || startsWithWord("bigBarChart", tdb->type))) { doBarChartDetails(tdb, item); printTrackHtml(tdb); } else if (tdb != NULL) {