b53a3bcb70990aba36955d3c934cd25420330423 angie Fri Mar 12 15:18:28 2021 -0800 Make subtree custom tracks dense by default (Russ request). diff --git src/hg/hgPhyloPlace/writeCustomTracks.c src/hg/hgPhyloPlace/writeCustomTracks.c index 0f16bb1..70b7ff0 100644 --- src/hg/hgPhyloPlace/writeCustomTracks.c +++ src/hg/hgPhyloPlace/writeCustomTracks.c @@ -272,31 +272,31 @@ // Keep the description from being too long in order to avoid buffer overflow in hgTrackUi int descLen = fprintf(ctF, " description='Uploaded sample%s %s", (slCount(ti->subtreeUserSampleIds) > 1 ? "s" : ""), ti->subtreeUserSampleIds->name); struct slName *id; for (id = ti->subtreeUserSampleIds->next; id != NULL; id = id->next) { if (descLen > 200) { fprintf(ctF, " and %d other samples", slCount(id)); break; } descLen += fprintf(ctF, ", %s", id->name); } int height = heightForSampleCount(fontHeight, slCount(ti->subtreeNameList)); -fprintf(ctF, " and nearest neighboring %s sequences' type=vcf visibility=pack " +fprintf(ctF, " and nearest neighboring %s sequences' type=vcf visibility=dense " "hapClusterEnabled=on hapClusterHeight=%d hapClusterMethod='treeFile %s' " "highlightIds=%s", source, height, ti->subtreeTn->forHtml, slNameListToString(ti->subtreeUserSampleIds, ',')); if (isNotEmpty(geneTrack)) fprintf(ctF, " hapClusterColorBy=function geneTrack=%s", geneTrack); fputc('\n', ctF); } static void writeVcfHeader(FILE *f, struct slName *sampleNames) /* Write a minimal VCF header with sample names for genotype columns. */ { fprintf(f, "##fileformat=VCFv4.2\n"); fprintf(f, "#CHROM\tPOS\tID\tREF\tALT\tQUAL\tFILTER\tINFO\tFORMAT"); struct slName *s;