b8a77f50143d1cc2a474fe9a56fe7c362183a07f jnavarr5 Fri Sep 25 17:35:01 2026 -0700 Making the shortLabel sentence case. Updating the shortlabel for the subtracks to say 'Predicted' or 'Contributed', refs #35528 diff --git src/hg/makeDb/outside/proCapNet/proCapNetTrackDb src/hg/makeDb/outside/proCapNet/proCapNetTrackDb index 4671744e4e8..9ab74b16f59 100755 --- src/hg/makeDb/outside/proCapNet/proCapNetTrackDb +++ src/hg/makeDb/outside/proCapNet/proCapNetTrackDb @@ -80,31 +80,31 @@ print(f"{exp.tissue}\t{exp.sampleClass}\t{getattr(exp, accField)}\t" f"{downloadCell(db, track, exp)}\t{exp.cell}", file=fh) def writeColors(path): "swatches beside the facet checkboxes, keyed by the faceted column name" fileOps.ensureFileDir(path) with fileOps.AtomicFileOpen(path) as fh: json.dump({"Sample_class": SAMPLE_CLASS_COLORS}, fh, indent=4) print(file=fh) def superStanza(): return stanza(0, [ "track transcriptionStart", "superTrack on show", "shortLabel Transcription Initiation (TSS)", - "longLabel Transcription Initiation (TSS)", + "longLabel Transcription initiation (TSS)", "group rna", ]) def compositeStanza(db, track, shortLabel, longLabel, dataTypes, accUrl, priority): gbdb = GBDB.format(db=db, track=track) return stanza(4, [ f"track {track}", "parent transcriptionStart", "compositeTrack faceted", "type bigWig", f"shortLabel {shortLabel}", f"longLabel {longLabel}", f"metaDataUrl {gbdb}/metadata.tsv", f"colorSettingsUrl {gbdb}/colors.json", "primaryKey Cell_line", @@ -171,46 +171,46 @@ ]) return out def contribStanza(db, exp, priority): gbdb = GBDB.format(db=db, track="proCapNet") return stanza(8, [ f"track proCapNet_{exp.cell}_contrib", "parent proCapNet off", "type bigWig", f"bigDataUrl {gbdb}/contrib/{exp.cell}.proCapNet-contrib.bw", "logo on", "autoScale on", "alwaysZero on", "maxHeightPixels 100:40:8", f"color {exp.color}", - f"shortLabel {exp.cell} Contrib", + f"shortLabel {exp.cell} Contribution", f"longLabel {exp.cell} ProCapNet sequence-contribution scores", "onlyVisibility full", f"priority {priority}", ]) def proCapNetComposite(db, experiments): dataTypes = 'pred|"Predicted PRO-cap"' if db == "hg38": dataTypes += ' contrib|"Sequence contribution scores"' out = compositeStanza(db, "proCapNet", "ProCapNet", "ProCapNet predicted PRO-cap and sequence-contribution scores", dataTypes, "https://www.encodeproject.org/annotations/$$/", 2) for priority, exp in enumerate(experiments, 1): out += strandOverlay(db, "proCapNet", exp, "pred", "/pred", "proCapNet", - f"{exp.cell} Pred", + f"{exp.cell} Predicted", f"{exp.cell} ProCapNet predicted PRO-cap, plus strand up and minus strand down", f"{exp.cell} ProCapNet predicted PRO-cap", priority) if db == "hg38": for priority, exp in enumerate(experiments, 11): out += contribStanza(db, exp, priority) return out def encode4ProCapComposite(db, experiments): out = compositeStanza(db, "encode4ProCap", "PRO-cap", "PRO-cap nascent RNA transcription start sites from ENCODE 4", 'procap|"PRO-cap"', "https://www.encodeproject.org/experiments/$$/", 1) for priority, exp in enumerate(experiments, 1): out += strandOverlay(db, "encode4ProCap", exp, "procap", "", exp.procapAcc, f"{exp.cell} PRO-cap",