444b1eb7e7ec2938a4a9a6d3ed214179073ab6f7 max Wed Sep 9 05:41:23 2026 -0700 Faceted composite: manual row reordering, group-by, saved UI state, and per-facet "only" links The Fiber-seq compendium put 41 samples times six data types into one faceted composite, which pushed on the parts of the page that were built for a flat list of tracks. Changes here, all in the shared faceted composite code rather than anything Fiber-seq specific: Row order. Track order in the image follows the table, so the table now lets you set that order by hand. Vendored DataTables RowReorder 1.5.1 adds a drag handle as the first column after the checkbox, enabled on the "shown in the browser" tab where reordering means something. The dragged order is remembered by sample name rather than by row number, so it survives a metadata file whose contents have changed. Group by. A container of six data types can be read two ways, so the page offers both: group the image by sample, keeping a sample's six tracks together, or by data type, putting all the accessibility tracks next to each other. cartDump assigns the priorities and just swaps the nesting of its two loops. trackDb sets the starting choice with defaultGroupBy. Saved state. Facets, per-column searches, sort column, page length, which tab was open and the hand-dragged order go to localStorage keyed by metadata id, so coming back to the page does not mean setting it all up again. Facet "only" links. A small "only" appears on hover behind each facet value and narrows to just that one, instead of unticking the others by hand. Column descriptions. A metadata column heading can now carry a longer explanation after a "|", shown behind an info icon on both the column header and the facet heading. Also: parseDataTypes() was returning its list reversed, since slPairAdd prepends and nothing put it back, so the data type checkboxes and the resulting subtrack order were backwards; the composite lifts itself out of hide when the user touches anything on the page, which is what they meant by touching it; the facet sidebar collapses when a table has no facetable columns; and the label wording throughout says "samples" and "in the browser" rather than "tracks" and "active". The Methbase hg38 track gets labels for its three data types, which were showing as the bare pipeline names hmr, levels and reads. refs #36210 diff --git src/hg/makeDb/trackDb/human/hg38/methbase2.ra src/hg/makeDb/trackDb/human/hg38/methbase2.ra index bcbb61c67f1..4c59ade84fb 100644 --- src/hg/makeDb/trackDb/human/hg38/methbase2.ra +++ src/hg/makeDb/trackDb/human/hg38/methbase2.ra @@ -1,22 +1,22 @@ track Methbase compositeTrack faceted parent dnaMethylation metaDataUrl /gbdb/hg38/methBase2/mb2_hg38_metadata.tsv colorSettingsUrl /gbdb/hg38/methBase2/mb2_hg38_colors.json primaryKey accession -dataTypes hmr levels reads +dataTypes hmr|"Hypomethylated Regions" levels|"Methylation Level" reads|"Read Coverage" maxCheckboxes 20 shortLabel Methbase longLabel Methbase type bigBed visibility hide subtrackUrls accession=https://www.ncbi.nlm.nih.gov/sra/$$ study=https://www.ncbi.nlm.nih.gov/sra/$$ sample=https://www.ncbi.nlm.nih.gov/sra/$$ canPack off track Methbase_DRX015008_hmr bigDataUrl http://hgdownload.soe.ucsc.edu/hubs/methbase/v2/smithlab.usc.edu/methbase/data/DRP001914/DRS014504/DRX015008/DRX015008.hmr.bb type bigBed shortLabel Cell Line longLabel Cell Line DRX015008 color 56,113,193 parent Methbase off