2162be65d294e930dfca338b0a3ef2a054449b36
mspeir
  Sat Aug 15 13:31:58 2026 -0700
Make the singleCellSignalsPeaks metadata check mandatory, refs #38070

Missing facet metadata used to warn and write the .ra anyway, so a stanza file
holding 22 of 925 subtracks produced a short .ra and exit 0. It is now an error,
with --no-meta-check to skip it deliberately and --meta to point elsewhere.

The metadata, palette and manifest are found relative to --stanzas instead of
HUB_BUILD, so pointing --stanzas at another build no longer checks it against
the default build's metadata. Moved the HUB_BUILD default off a personal hive
directory to /hive/data/inside/cells/all-tracks-hub-build, beside the served
hub. Both .ra files regenerate unchanged.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

diff --git src/hg/makeDb/doc/mm10/singleCellSignalsPeaks.txt src/hg/makeDb/doc/mm10/singleCellSignalsPeaks.txt
index 61e8dcf0770..8e426b25a3c 100644
--- src/hg/makeDb/doc/mm10/singleCellSignalsPeaks.txt
+++ src/hg/makeDb/doc/mm10/singleCellSignalsPeaks.txt
@@ -19,31 +19,31 @@
 ##############################################################################
 # The track mirrors the hub's main mm10 signal-&-peaks faceted composite
 # (cellBrowserMm10): 647 subtracks (641 bigWig, 6 bigNarrowPeak) from 9 datasets
 # - catlas-mouse-aging (234), catlas-mouse-brain (160), allen-basal-ganglia-atac
 # (131), olg-dyn-eae-multiome (28), mouse-lvcp-multiome (23, incl. the 6 peaks),
 # catlas-paired-tag (21), mouse-kidney-atac (19), olg-eae-ms (16) and
 # mouse-epi-juv-brain (15). That composite and its facet metadata are produced by
 # the hub build from the Cell Browser dataset tree:
 #
 #   cd $HOME/cellBrowser/ucsc/allTracksHub
 #   python3 build_manifest.py            # scan datasets -> manifest.tsv
 #   python3 build_stanzas.py             # manifest -> stanzas/mm10.trackDb.txt
 #                                        #            + meta/mm10.metadata.tsv
 #
 # The build writes its output to $CBHUB_OUT, NOT next to the scripts (that dir is
-# git-controlled). Default: /hive/users/mspeir/claude/cell-browser/all-tracks-hub-build
+# git-controlled). Default: /hive/data/inside/cells/all-tracks-hub-build
 #
 # The per-track source files (abs_path column of manifest.tsv) are the files the
 # Cell Browser datasets already serve; nothing is regenerated here, only copied.
 
 ##############################################################################
 # 2. Copy the data files into place  (bed dir, served via a /gbdb symlink)
 ##############################################################################
 # copySingleCellSignalsPeaksFiles.py copies every cellBrowserMm10 subtrack file
 # into /hive/data/genomes/mm10/bed/singleCellSignalsPeaks/<served-relpath>,
 # keeping each file's served relative path, and copies the composite's facet
 # metadata to <bed>/singleCellSignalsPeaks_metadata.tsv. The served subpath is
 # preserved on purpose: some coverage/peak basenames (e.g. MOL.bw, OPC.bw) repeat
 # across datasets, so a flat directory would clobber them.  89.6 GB, 647 files.
 #
 #   scriptDir=$HOME/kent/src/hg/makeDb/scripts/singleCellSignalsPeaks