[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EDRJYWPD11NXCVNFFEZEEE":3,"skill-same:01M7EDRJYWPD11NXCVNFFEZEEE":62},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":30,"commitSha":31,"skillDirectory":32,"forksCount":14,"repositoryHtmlUrl":33,"repositoryHomepageUrl":33,"ownerHtmlUrl":34,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":35,"install":36,"resources":49},"01M7EDRJYWPD11NXCVNFFEZEEE","bio-hi-c-analysis-hic-visualization",null,"Renders Hi-C contact matrices honestly and reproducibly with matplotlib, cooltools, HiCExplorer, pyGenomeTracks, FAN-C, CoolBox, and plotgardener. Covers the raw\u002FICE-balanced\u002Fobserved-over-expected transform choice, LogNorm vs symmetric-diverging colormaps with vmax\u002Fpercentile clipping, resolution-to-feature matching (compartments 100-500kb, TADs 10-40kb, loops 5-10kb), square vs rotated-triangle track-stacking, NaN\u002Fwhite-stripe handling, virtual 4C, APA\u002Fsaddle\u002Fon-diagonal pileups, two-condition side-by-side and log2-ratio maps, and interactive (HiGlass) vs scripted-static publication figures. Use when plotting a contact matrix, choosing a normalization or color scale, building a multi-track Hi-C figure, making a virtual 4C profile, piling up loops\u002Fboundaries, or comparing two conditions.","Mr-Nobody-Anonymous\u002FAll-skills","Mr-Nobody-Anonymous","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F184253119?v=4","01M7AEXFJHKTYQW5R0ZCQQTWFV","anonymous","01M7C00M3GQR4QKP9GZA42GFAK",0,"MIT","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fbiology\u002Fbio-hi-c-analysis-hic-visualization\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: bio-hi-c-analysis-hic-visualization\ndescription: Renders Hi-C contact matrices honestly and reproducibly with matplotlib, cooltools, HiCExplorer, pyGenomeTracks, FAN-C, CoolBox, and plotgardener. Covers the raw\u002FICE-balanced\u002Fobserved-over-expected transform choice, LogNorm vs symmetric-diverging colormaps with vmax\u002Fpercentile clipping, resolution-to-feature matching (compartments 100-500kb, TADs 10-40kb, loops 5-10kb), square vs rotated-triangle track-stacking, NaN\u002Fwhite-stripe handling, virtual 4C, APA\u002Fsaddle\u002Fon-diagonal pileups, two-condition side-by-side and log2-ratio maps, and interactive (HiGlass) vs scripted-static publication figures. Use when plotting a contact matrix, choosing a normalization or color scale, building a multi-track Hi-C figure, making a virtual 4C profile, piling up loops\u002Fboundaries, or comparing two conditions.\ntool_type: python\nprimary_tool: matplotlib\nsource: \"https:\u002F\u002Fgithub.com\u002FGPTomics\u002FbioSkills\"\nsource_repository: \"GPTomics\u002FbioSkills\"\nsource_path: \"hi-c-analysis\u002Fhic-visualization\u002FSKILL.md\"\nlicense: \"MIT\"\nimported_at: \"2026-09-20\"\n---\n\n## Version Compatibility\n\nReference examples tested with: cooler 0.10+, cooltools 0.7+, matplotlib 3.8+, bioframe 0.7+, HiCExplorer 3.7+, pyGenomeTracks 3.9+\n\nBefore using code patterns, verify installed versions match. If versions differ:\n- Python: `pip show \u003Cpackage>` then `help(module.function)` to check signatures\n- CLI: `\u003Ctool> --version` then `\u003Ctool> --help` to confirm flags\n\nIf code throws ImportError, AttributeError, or TypeError, introspect the installed\npackage and adapt the example to match the actual API rather than retrying.\n\nNotes specific to this skill: `.mcool` is multi-resolution -- pass a single-resolution URI (`file.mcool::\u002Fresolutions\u002F10000`), never the bare path. A cooler must be balanced (`cooler balance`) before `matrix(balance=True)` returns anything but NaN. `cooltools.pileup` returns a stack of shape `(n_features, D, D)` -- aggregate over `axis=0`. cooltools standardised on `view_df`\u002F`expected_df` arguments around 0.7+; verify with `help(cooltools.pileup)` before chaining.\n\n# Hi-C Visualization\n\n**\"Plot my Hi-C contact matrix\"** -> Choose a transform (raw \u002F ICE-balanced \u002F observed-over-expected), a matched colormap+norm (LogNorm for counts, symmetric-diverging for O\u002FE and ratios), and a resolution that fits the feature; render as a square map or a rotated triangle for track-stacking, with NaN bins shown explicitly.\n- Python: `clr.matrix(balance=True).fetch(region)` then `ax.matshow(m, norm=LogNorm(...), cmap='fall')`\n- CLI: `hicPlotMatrix --matrix m.cool --region chr1:50-60Mb --log1p --colorMap fall -o out.png`\n\n## The Single Most Important Modern Insight -- The Colorscale Is Where Hi-C Figures Lie\n\nThe same matrix under raw \u002F ICE-balanced \u002F observed-over-expected tells three *different biological stories*, and the choice is not cosmetic -- it decides which biology is legible. A balanced map is still dominated by the polymer distance-decay gradient (the bright diagonal falling off as ~P(s)); it shows TADs but washes out compartments and loops. Dividing by the distance-matched expected and taking `log2(O\u002FE)` with a SYMMETRIC diverging cmap (`coolwarm`\u002F`RdBu_r`, `vmin=-vmax`) removes that gradient and makes the compartment checkerboard and loop corner-dots suddenly visible -- they were always in the data. The corollary is a reviewer's reflex: a \"no compartments \u002F no loops\" claim plotted on a balanced (not O\u002FE) map is unsupportable. A reviewer-grade figure is one that can be reconstructed from the legend -- it states (1) the normalization (raw \u002F ICE-balanced \u002F O\u002FE \u002F log2-ratio), (2) the color scale (LogNorm vs symmetric-diverging) with its limits or clip percentile, and (3) the bin resolution. If those three are absent, the figure is neither interpretable nor reproducible.\n\n## Transform Taxonomy\n\n| Transform | Norm + cmap | What it shows | When |\n|-----------|-------------|---------------|------|\n| Raw counts | `LogNorm`, sequential (`fall`) | depth + per-bin coverage bias; white stripes are artifacts | QC sanity check only -- almost never the science figure |\n| ICE-balanced | `LogNorm` vmin~1e-4..1e-1, `fall` | TADs + the distance-decay gradient; loops\u002Fcompartments washed out | the honest \"raw structure\" map; track-stacking context |\n| Observed\u002FExpected | `log2`, symmetric `coolwarm`\u002F`RdBu_r`, `vmin=-vmax` | compartment checkerboard + loop corner-dots | compartments, loops, any focal-enrichment claim |\n| log2(cond1\u002Fcond2) | symmetric `RdBu_r`, `vmin=-vmax`, white=0 | gained\u002Flost contacts | two conditions (balance + depth-match FIRST) |\n\n## Layout Taxonomy\n\n| Layout | Tool | Mechanism | When |\n|--------|------|-----------|------|\n| Square map | matplotlib `matshow`\u002F`pcolormesh`, FAN-C `HicPlot2D` | symmetric 2D matrix | matrix itself is the result; inter-region rectangle; difference map |\n| Rotated triangle | pyGenomeTracks\u002FHiCExplorer `hic_matrix`, FAN-C `HicPlot`, plotgardener `plotHicTriangle`, CoolBox `style='triangular'` | 45deg shear, keep upper half, diagonal on top | STACKING genome-browser tracks below on a shared x-axis |\n| Pileup (APA\u002Fsaddle\u002Fon-diagonal) | `cooltools.pileup`\u002F`saddle`, coolpup.py | average snippets over a feature set | the only honest genome-wide claim from sparse data |\n| Virtual 4C | one matrix row, FAN-C `HicSlicePlot` | 1D profile from a viewpoint bin | compare against a real 4C anchor |\n| Interactive | HiGlass | multires `.mcool` pan\u002Fzoom | exploration -- NOT a reproducible figure |\n\n## Decision Tree by Scenario\n\n| Scenario | Recommended | Why |\n|----------|-------------|-----|\n| Show compartments \u002F loops | `log2(O\u002FE)`, symmetric `coolwarm`, `vmin=-vmax` | balanced map's gradient hides them |\n| Show TADs \u002F domains | balanced `LogNorm`, `fall`, 10-40kb | domain insulation lives at sub-Mb scale |\n| Matrix + genes + ChIP + insulation stack | -> data-visualization\u002Fgenome-tracks (pyGenomeTracks `hic_matrix`) | config = reproducible provenance; library does the shear |\n| Quantify compartment strength | saddle plot (phase E1 first) -> compartment-analysis | corners give the single strength number |\n| Validate a loop SET genome-wide | APA pileup, `log2(O\u002FE)`, symmetric | one loop is invisible; 10k averaged is solid |\n| Compare two conditions | side-by-side same-scale OR log2-ratio | balance + depth-match both FIRST |\n| Export eigenvector \u002F insulation as a track | -> genome-intervals\u002Fbigwig-tracks | bigWig feeds the track stack |\n| Explore to find a region\u002Fresolution | HiGlass, then reproduce in a scripted tool | interactive != publication |\n\n## Square Contact Map (Balanced, Log-Scaled, NaN Shown)\n\n**Goal:** Render a balanced cis matrix for one region with honest dynamic range and visible masked bins.\n\n**Approach:** Fetch the balanced matrix at a single-resolution URI, set `vmax` from a high off-diagonal percentile (report it), use `LogNorm`, and explicitly color NaN bins with `set_bad` so masked regions read as gray rather than as \"zero contact\".\n\n```python\nimport cooler, numpy as np\nimport matplotlib.pyplot as plt\nfrom matplotlib.colors import LogNorm\nimport cooltools.lib.plotting   # registers the 'fall' cmap; needs matplotlib \u003C 3.9 with cooltools 0.7.x (else use a stock cmap like 'afmhot_r')\n\nclr = cooler.Cooler('matrix.mcool::\u002Fresolutions\u002F10000')\nregion = ('chr1', 50_000_000, 60_000_000)\nm = clr.matrix(balance=True).fetch(region)\n\nvmax = np.nanpercentile(m[m > 0], 99.5)   # report this percentile in the legend\ncmap = plt.get_cmap('fall').copy(); cmap.set_bad('lightgray')   # NaN bins shown, not white\nfig, ax = plt.subplots(figsize=(7, 7))\nim = ax.matshow(m, norm=LogNorm(vmin=vmax * 1e-3, vmax=vmax), cmap=cmap)\nfig.colorbar(im, ax=ax, fraction=0.046, label='balanced (ICE)')\n```\n\n## Observed\u002FExpected Divergent Map\n\n**Goal:** Make the compartment checkerboard and loop corner-dots legible by removing the polymer distance-decay background.\n\n**Approach:** Compute the cis expected with cooltools, fetch the matched-distance expected per pixel, divide observed by expected and take `log2`, then plot with a symmetric diverging cmap centered at 0 -- asymmetric limits move the white midpoint off zero and make neutral regions read as enriched.\n\n```python\nimport cooltools, bioframe\n\nview_df = bioframe.make_viewframe(clr.chromsizes)\nexpected = cooltools.expected_cis(clr, view_df=view_df, nproc=4)\n\nchrom = region[0]\nexp_by_diag = expected.query('region1 == @chrom')['balanced.avg'].to_numpy()   # expected per genomic separation\nm = clr.matrix(balance=True).fetch(region)\ni, j = np.indices(m.shape)\noe_mtx = m \u002F exp_by_diag[np.abs(i - j)]   # divide each pixel by its distance-matched expected\n\nv = 2.0   # symmetric clip; |log2(O\u002FE)| up to ~2 is the usual readable range\nfig, ax = plt.subplots(figsize=(7, 7))\nim = ax.matshow(np.log2(oe_mtx), cmap='coolwarm', vmin=-v, vmax=v)   # vmin=-vmax mandatory\nfig.colorbar(im, ax=ax, fraction=0.046, label='log2(obs\u002Fexp)')\n```\n\n`expected['balanced.avg']` is the per-diagonal expected; indexing it by `|i-j|` broadcasts it to a full per-pixel expected matrix.\n\n## Rotated Triangle for Track-Stacking\n\n**Goal:** Hang the contact map above aligned genome-browser tracks (genes, ChIP, insulation) on a shared x-axis.\n\n**Approach:** Prefer a library that owns the 45deg shear and the `depth` crop -- pyGenomeTracks\u002FHiCExplorer (`file_type = hic_matrix`), FAN-C, plotgardener, or CoolBox -- because hand-rolling the `Affine2D` shear is where `extent`\u002F`aspect` alignment bugs live. The matplotlib reference below is for a single panel; for a real stack, route to data-visualization\u002Fgenome-tracks.\n\n```bash\n# HiCExplorer \u002F pyGenomeTracks: config-driven, reproducible. depth = how far up the diagonal.\n# A 2 Mb TAD needs depth >= ~2_000_000 or it is silently truncated.\nhicPlotTADs --tracks tracks.ini --region chr1:50000000-60000000 -o stack.png\n```\n\n```python\nfrom matplotlib.transforms import Affine2D\n# matplotlib single-panel reference: shear the square map onto the diagonal.\nt = Affine2D().rotate_deg(45) + ax.transData\nim = ax.pcolormesh(np.log2(oe_mtx), cmap='coolwarm', vmin=-v, vmax=v)\nim.set_transform(t)\nax.set_ylim(0, m.shape[0])   # crop the depth; the y-axis is genomic SEPARATION, not a 2nd coordinate\n```\n\n## Virtual 4C from a Viewpoint\n\n**Goal:** Extract a 1D contact profile from one viewpoint bin to compare against a real 4C experiment.\n\n**Approach:** Take the viewpoint row from the balanced chromosome matrix; the near-cis distance-decay spike swamps distal signal on a linear axis, so plot on log-y (or mask the +\u002F- few bins around the viewpoint) and say which. Cross-condition profiles must be balanced, depth-matched, and on identical y-axes.\n\n```python\nres = clr.binsize\nvp_bin = (55_000_000 \u002F\u002F res) - (50_000_000 \u002F\u002F res)   # viewpoint index within the region\nprofile = clr.matrix(balance=True).fetch(region)[vp_bin, :]\nfig, ax = plt.subplots(figsize=(11, 2.5))\nax.semilogy(np.arange(len(profile)) * res \u002F 1e6 + 50, profile)   # log-y: the near-cis spike lies on linear\nax.axvline(55, color='red', ls='--')\n```\n\n## APA Pileup over a Loop Set\n\n**Goal:** Validate a loop call set genome-wide by averaging the contact signal centered on every loop's anchor pair.\n\n**Approach:** Pass BEDPE features and the cis expected to `cooltools.pileup` for an observed\u002Fexpected stack, average over the feature axis (`axis=0`), and plot `log2` with a symmetric cmap; the center pixel is the loop, the APA score is center \u002F a corner-background patch (Rao 2014 lower-left 3x3 convention).\n\n```python\nimport pandas as pd\nloops = pd.read_csv('loops.bedpe', sep='\\t')   # chrom1,start1,end1,chrom2,start2,end2\nstack = cooltools.pileup(clr, loops, view_df=view_df, expected_df=expected, flank=100_000)\napa = np.nanmean(stack, axis=0)   # stack is (n_features, D, D) -> average over features\nc = apa.shape[0] \u002F\u002F 2\napa_score = apa[c, c] \u002F np.nanmean(apa[-3:, :3])   # center \u002F lower-left 3x3 background\nfig, ax = plt.subplots(figsize=(5, 5))\nim = ax.matshow(np.log2(apa), cmap='coolwarm', vmin=-1, vmax=1)\nax.set_title(f'APA score {apa_score:.2f}')\n```\n\nFor on-diagonal pileups over CTCF sites, strand-orient before averaging (`stack[mask] = stack[mask][:, ::-1, ::-1]` for `-` strand) or convergent\u002Fdivergent signals cancel. For HiChIP\u002FPLAC-seq anchored loops, route to loop-calling and the peak-anchored pileup conventions there.\n\n## Two-Condition Comparison\n\n**Goal:** Show a contact change between two conditions without it being a depth\u002Fcoverage artifact.\n\n**Approach:** Both matrices must be ICE-balanced AND depth-matched (downsample the deeper library to equal valid pairs) BEFORE ratioing. Then either side-by-side panels on an IDENTICAL cmap\u002Fnorm\u002Fvmin\u002Fvmax\u002Fresolution, or a single `log2(cond1\u002Fcond2)` divergent map with symmetric limits and white = no change; grey out very-distal noise-amplified bins.\n\n```python\nm1 = clr1.matrix(balance=True).fetch(region)\nm2 = clr2.matrix(balance=True).fetch(region)   # clr1, clr2 already depth-equalized upstream\nratio = np.log2((m1 + 1e-5) \u002F (m2 + 1e-5))   # pseudocount tames divide-by-small off-diagonal\nfig, ax = plt.subplots(figsize=(7, 7))\nim = ax.matshow(ratio, cmap='RdBu_r', vmin=-2, vmax=2)   # symmetric, white=no change\nfig.colorbar(im, ax=ax, fraction=0.046, label='log2(cond1\u002Fcond2)')\n```\n\nQuantitative replicate-aware differential testing (not just a figure) lives in hic-differential.\n\n## Per-Method Failure Modes\n\n### Negative claim on a balanced map\n**Trigger:** \"no compartments\u002Floops\" read off a balanced (not O\u002FE) map. **Mechanism:** the polymer distance-decay gradient dominates balanced data and hides checkerboard\u002Fdots. **Symptom:** features absent that O\u002FE would reveal. **Fix:** replot as `log2(O\u002FE)` with a symmetric cmap before making any negative claim.\n\n### Asymmetric divergent limits\n**Trigger:** `vmin != -vmax` on an O\u002FE or log2-ratio map. **Mechanism:** zero (no change\u002Fenrichment) is no longer the white midpoint. **Symptom:** neutral regions read as enriched or depleted; reviewers flag it. **Fix:** `vmin=-v, vmax=v` (or `TwoSlopeNorm(vcenter=0)`).\n\n### vmax = data max\n**Trigger:** letting the heavy-tailed diagonal set vmax. **Mechanism:** a few super-bins are orders of magnitude above the bulk. **Symptom:** the whole map looks empty\u002Fdark; over-clipping the other way fabricates structure. **Fix:** vmax = a stated high off-diagonal percentile (95th-99.5th).\n\n### Resolution mismatched to feature\n**Trigger:** plotting at whatever the `.mcool` defaults to. **Mechanism:** loops at 100kb are averaged away (oversmoothing); compartments at 5-10kb mix in TAD\u002Floop noise. **Symptom:** vanished dots or a noisy checkerboard. **Fix:** compartments 100-500kb, TADs 10-40kb, loops 5-10kb (Micro-C 1-2kb).\n\n### Interpolated matrix quantified\n**Trigger:** `interp_nan`\u002F`adaptive_coarsegrain` (or scHi-C smoothing) then measuring on the result. **Mechanism:** interpolation\u002Fimputation fabricates contacts for DISPLAY. **Symptom:** a filled centromere looks like contiguous chromatin; \"structure\" that is the smoother's prior. **Fix:** fill for display only; quantify on the raw\u002Fbalanced matrix and disclose the smoother.\n\n### Triangle depth too small\n**Trigger:** `depth` \u003C the largest feature. **Mechanism:** the triangle crop truncates separations above `depth`. **Symptom:** a 2 Mb TAD silently cut off. **Fix:** set `depth >= ~feature size`; remember the y-axis is genomic separation.\n\n### Unequal-depth ratio\n**Trigger:** `log2(cond1\u002Fcond2)` on un-depth-matched or unbalanced maps. **Mechanism:** a global depth difference is a uniform multiplicative offset. **Symptom:** a whole-map color shift read as biology. **Fix:** ICE-balance and downsample to equal valid pairs first.\n\n## Quantitative Thresholds\n\n| Threshold | Source | Rationale |\n|-----------|--------|-----------|\n| Compartment resolution 100-500kb | compartment scale (Lieberman-Aiden 2009) | checkerboard is Mb-scale; finer bins add noise, not detail |\n| TAD resolution 10-40kb | domain scale (Dixon 2012) | insulation\u002Fboundary structure lives at sub-Mb |\n| Loop resolution 5-10kb (Micro-C 1-2kb) | focal-contact scale (Rao 2014) | a loop is a ~10kb focal pixel; coarse bins blur it, too-fine buries it in Poisson noise |\n| vmax = 95th-99.5th off-diagonal percentile | heavy-tailed counts | data-max vmax leaves the map dark; report the percentile |\n| Divergent limits symmetric `vmin=-vmax` | zero must be the midpoint | asymmetric limits misplace the white neutral point |\n| APA flank +\u002F- 100kb | corner-background convention | too small contaminates the corner; too large averages in neighbors |\n| APA score = center \u002F lower-left 3x3 | Rao 2014 | standard center-to-background loop enrichment ratio |\n| HiGlass zoom levels \u003C ~5x apart | Kerpedjiev 2018 | adjacent resolutions must be close for smooth multires rendering |\n\n## Common Errors\n\n| Error \u002F symptom | Cause | Solution |\n|-----------------|-------|----------|\n| `matrix(balance=True)` all NaN | cooler not balanced | run `cooler balance` \u002F `cooler.balance_cooler` first |\n| Empty \u002F wrong-resolution result | bare `.mcool` passed | use `file.mcool::\u002Fresolutions\u002F\u003Cbp>` |\n| White stripes mistaken for \"no contact\" | NaN bins left at default | `cmap.set_bad('lightgray')` to render masked bins |\n| `cmap='fall'` KeyError | colormap not registered | `import cooltools.lib.plotting` first |\n| `ImportError` on `import cooltools.lib.plotting` | matplotlib >= 3.9 dropped `register_cmap` (cooltools 0.7.x) | pin matplotlib \u003C 3.9, or use a stock cmap (`'afmhot_r'`) |\n| Pileup looks averaged-out \u002F scrambled | wrong nanmean axis | aggregate over `axis=0` (stack is `(n_features, D, D)`) |\n| Empty region \u002F no overlap | chrom naming (`chr1` vs `1`) | harmonize names across cooler, BED\u002FBEDPE, fasta |\n| `AttributeError` on cooltools fn | pre-0.7 vs 0.7+ API | `help(cooltools.\u003Cfn>)`; update to the `view_df`\u002F`expected_df` signature |\n\n## References\n\n- cooler: Abdennur N, Mirny LA. Cooler: scalable storage for Hi-C data and other genomically labeled arrays. *Bioinformatics* 2020;36(1):311-316.\n- cooltools: Open2C, Abdennur N, Abraham S, Fudenberg G, et al. Cooltools: enabling high-resolution Hi-C analysis in Python. *PLoS Comput Biol* 2024;20(5):e1012067.\n- HiCExplorer: Ramirez F, Bhardwaj V, Arrigoni L, et al. High-resolution TADs reveal DNA sequences underlying genome organization in flies. *Nat Commun* 2018;9(1):189.\n- pyGenomeTracks: Lopez-Delisle L, Rabbani L, Wolff J, et al. pyGenomeTracks: reproducible plots for multivariate genomic datasets. *Bioinformatics* 2021;37(3):422-423.\n- FAN-C: Kruse K, Hug CB, Vaquerizas JM. FAN-C: a feature-rich framework for the analysis and visualisation of chromosome conformation capture data. *Genome Biol* 2020;21(1):303.\n- CoolBox: Xu W, Zhong Q, Lin D, et al. CoolBox: a flexible toolkit for visual analysis of genomics data. *BMC Bioinformatics* 2021;22(1):489.\n- plotgardener: Kramer NE, Davis ES, Wenger CD, et al. Plotgardener: cultivating precise multi-panel figures in R. *Bioinformatics* 2022;38(7):2042-2045.\n- HiGlass: Kerpedjiev P, Abdennur N, Lekschas F, et al. HiGlass: web-based visual exploration and analysis of genome interaction maps. *Genome Biol* 2018;19(1):125.\n- coolpup.py: Flyamer IM, Illingworth RS, Bickmore WA. Coolpup.py: versatile pile-up analysis of Hi-C data. *Bioinformatics* 2020;36(10):2980-2985.\n- A\u002FB compartments: Lieberman-Aiden E, van Berkum NL, Williams L, et al. Comprehensive mapping of long-range interactions reveals folding principles of the human genome. *Science* 2009;326(5950):289-293.\n- TAD directionality index: Dixon JR, Selvaraj S, Yue F, et al. Topological domains in mammalian genomes identified by analysis of chromatin interactions. *Nature* 2012;485(7398):376-380.\n- Loops\u002FHiCCUPS\u002FAPA: Rao SSP, Huntley MH, Durand NC, et al. A 3D map of the human genome at kilobase resolution reveals principles of chromatin looping. *Cell* 2014;159(7):1665-1680.\n\n## Related Skills\n\n- hic-data-io - Load the cooler\u002F.mcool files and zoomify for multires HiGlass tilesets\n- matrix-operations - Balancing and O\u002FE that the divergent map depends on\n- compartment-analysis - Eigenvector phasing behind the saddle plot\n- tad-detection - Insulation\u002Fboundary tracks stacked under the triangle\n- loop-calling - Loop calls and peak-anchored pileup conventions visualized here\n- hic-differential - Replicate-aware testing behind the two-condition comparison\n- data-visualization\u002Fgenome-tracks - Config-driven multi-track stacks (pyGenomeTracks hic_matrix)\n- genome-intervals\u002Fbigwig-tracks - Export eigenvector\u002Finsulation as bigWig for the track stack\n- data-visualization\u002Fheatmaps-clustering - General heatmap color\u002Fnorm conventions\n","## Version Compatibility\n\nReference examples tested with: cooler 0.10+, cooltools 0.7+, matplotlib 3.8+, bioframe 0.7+, HiCExplorer 3.7+, pyGenomeTracks 3.9+\n\nBefore using code patterns, verify installed versions match. If versions differ:\n- Python: `pip show \u003Cpackage>` then `help(module.function)` to check signatures\n- CLI: `\u003Ctool> --version` then `\u003Ctool> --help` to confirm flags\n\nIf code throws ImportError, AttributeError, or TypeError, introspect the installed\npackage and adapt the example to match the actual API rather than retrying.\n\nNotes specific to this skill: `.mcool` is multi-resolution -- pass a single-resolution URI (`file.mcool::\u002Fresolutions\u002F10000`), never the bare path. A cooler must be balanced (`cooler balance`) before `matrix(balance=True)` returns anything but NaN. `cooltools.pileup` returns a stack of shape `(n_features, D, D)` -- aggregate over `axis=0`. cooltools standardised on `view_df`\u002F`expected_df` arguments around 0.7+; verify with `help(cooltools.pileup)` before chaining.\n\n# Hi-C Visualization\n\n**\"Plot my Hi-C contact matrix\"** -> Choose a transform (raw \u002F ICE-balanced \u002F observed-over-expected), a matched colormap+norm (LogNorm for counts, symmetric-diverging for O\u002FE and ratios), and a resolution that fits the feature; render as a square map or a rotated triangle for track-stacking, with NaN bins shown explicitly.\n- Python: `clr.matrix(balance=True).fetch(region)` then `ax.matshow(m, norm=LogNorm(...), cmap='fall')`\n- CLI: `hicPlotMatrix --matrix m.cool --region chr1:50-60Mb --log1p --colorMap fall -o out.png`\n\n## The Single Most Important Modern Insight -- The Colorscale Is Where Hi-C Figures Lie\n\nThe same matrix under raw \u002F ICE-balanced \u002F observed-over-expected tells three *different biological stories*, and the choice is not cosmetic -- it decides which biology is legible. A balanced map is still dominated by the polymer distance-decay gradient (the bright diagonal falling off as ~P(s)); it shows TADs but washes out compartments and loops. Dividing by the distance-matched expected and taking `log2(O\u002FE)` with a SYMMETRIC diverging cmap (`coolwarm`\u002F`RdBu_r`, `vmin=-vmax`) removes that gradient and makes the compartment checkerboard and loop corner-dots suddenly visible -- they were always in the data. The corollary is a reviewer's reflex: a \"no compartments \u002F no loops\" claim plotted on a balanced (not O\u002FE) map is unsupportable. A reviewer-grade figure is one that can be reconstructed from the legend -- it states (1) the normalization (raw \u002F ICE-balanced \u002F O\u002FE \u002F log2-ratio), (2) the color scale (LogNorm vs symmetric-diverging) with its limits or clip percentile, and (3) the bin resolution. If those three are absent, the figure is neither interpretable nor reproducible.\n\n## Transform Taxonomy\n\n| Transform | Norm + cmap | What it shows | When |\n|-----------|-------------|---------------|------|\n| Raw counts | `LogNorm`, sequential (`fall`) | depth + per-bin coverage bias; white stripes are artifacts | QC sanity check only -- almost never the science figure |\n| ICE-balanced | `LogNorm` vmin~1e-4..1e-1, `fall` | TADs + the distance-decay gradient; loops\u002Fcompartments washed out | the honest \"raw structure\" map; track-stacking context |\n| Observed\u002FExpected | `log2`, symmetric `coolwarm`\u002F`RdBu_r`, `vmin=-vmax` | compartment checkerboard + loop corner-dots | compartments, loops, any focal-enrichment claim |\n| log2(cond1\u002Fcond2) | symmetric `RdBu_r`, `vmin=-vmax`, white=0 | gained\u002Flost contacts | two conditions (balance + depth-match FIRST) |\n\n## Layout Taxonomy\n\n| Layout | Tool | Mechanism | When |\n|--------|------|-----------|------|\n| Square map | matplotlib `matshow`\u002F`pcolormesh`, FAN-C `HicPlot2D` | symmetric 2D matrix | matrix itself is the result; inter-region rectangle; difference map |\n| Rotated triangle | pyGenomeTracks\u002FHiCExplorer `hic_matrix`, FAN-C `HicPlot`, plotgardener `plotHicTriangle`, CoolBox `style='triangular'` | 45deg shear, keep upper half, diagonal on top | STACKING genome-browser tracks below on a shared x-axis |\n| Pileup (APA\u002Fsaddle\u002Fon-diagonal) | `cooltools.pileup`\u002F`saddle`, coolpup.py | average snippets over a feature set | the only honest genome-wide claim from sparse data |\n| Virtual 4C | one matrix row, FAN-C `HicSlicePlot` | 1D profile from a viewpoint bin | compare against a real 4C anchor |\n| Interactive | HiGlass | multires `.mcool` pan\u002Fzoom | exploration -- NOT a reproducible figure |\n\n## Decision Tree by Scenario\n\n| Scenario | Recommended | Why |\n|----------|-------------|-----|\n| Show compartments \u002F loops | `log2(O\u002FE)`, symmetric `coolwarm`, `vmin=-vmax` | balanced map's gradient hides them |\n| Show TADs \u002F domains | balanced `LogNorm`, `fall`, 10-40kb | domain insulation lives at sub-Mb scale |\n| Matrix + genes + ChIP + insulation stack | -> data-visualization\u002Fgenome-tracks (pyGenomeTracks `hic_matrix`) | config = reproducible provenance; library does the shear |\n| Quantify compartment strength | saddle plot (phase E1 first) -> compartment-analysis | corners give the single strength number |\n| Validate a loop SET genome-wide | APA pileup, `log2(O\u002FE)`, symmetric | one loop is invisible; 10k averaged is solid |\n| Compare two conditions | side-by-side same-scale OR log2-ratio | balance + depth-match both FIRST |\n| Export eigenvector \u002F insulation as a track | -> genome-intervals\u002Fbigwig-tracks | bigWig feeds the track stack |\n| Explore to find a region\u002Fresolution | HiGlass, then reproduce in a scripted tool | interactive != publication |\n\n## Square Contact Map (Balanced, Log-Scaled, NaN Shown)\n\n**Goal:** Render a balanced cis matrix for one region with honest dynamic range and visible masked bins.\n\n**Approach:** Fetch the balanced matrix at a single-resolution URI, set `vmax` from a high off-diagonal percentile (report it), use `LogNorm`, and explicitly color NaN bins with `set_bad` so masked regions read as gray rather than as \"zero contact\".\n\n```python\nimport cooler, numpy as np\nimport matplotlib.pyplot as plt\nfrom matplotlib.colors import LogNorm\nimport cooltools.lib.plotting   # registers the 'fall' cmap; needs matplotlib \u003C 3.9 with cooltools 0.7.x (else use a stock cmap like 'afmhot_r')\n\nclr = cooler.Cooler('matrix.mcool::\u002Fresolutions\u002F10000')\nregion = ('chr1', 50_000_000, 60_000_000)\nm = clr.matrix(balance=True).fetch(region)\n\nvmax = np.nanpercentile(m[m > 0], 99.5)   # report this percentile in the legend\ncmap = plt.get_cmap('fall').copy(); cmap.set_bad('lightgray')   # NaN bins shown, not white\nfig, ax = plt.subplots(figsize=(7, 7))\nim = ax.matshow(m, norm=LogNorm(vmin=vmax * 1e-3, vmax=vmax), cmap=cmap)\nfig.colorbar(im, ax=ax, fraction=0.046, label='balanced (ICE)')\n```\n\n## Observed\u002FExpected Divergent Map\n\n**Goal:** Make the compartment checkerboard and loop corner-dots legible by removing the polymer distance-decay background.\n\n**Approach:** Compute the cis expected with cooltools, fetch the matched-distance expected per pixel, divide observed by expected and take `log2`, then plot with a symmetric diverging cmap centered at 0 -- asymmetric limits move the white midpoint off zero and make neutral regions read as enriched.\n\n```python\nimport cooltools, bioframe\n\nview_df = bioframe.make_viewframe(clr.chromsizes)\nexpected = cooltools.expected_cis(clr, view_df=view_df, nproc=4)\n\nchrom = region[0]\nexp_by_diag = expected.query('region1 == @chrom')['balanced.avg'].to_numpy()   # expected per genomic separation\nm = clr.matrix(balance=True).fetch(region)\ni, j = np.indices(m.shape)\noe_mtx = m \u002F exp_by_diag[np.abs(i - j)]   # divide each pixel by its distance-matched expected\n\nv = 2.0   # symmetric clip; |log2(O\u002FE)| up to ~2 is the usual readable range\nfig, ax = plt.subplots(figsize=(7, 7))\nim = ax.matshow(np.log2(oe_mtx), cmap='coolwarm', vmin=-v, vmax=v)   # vmin=-vmax mandatory\nfig.colorbar(im, ax=ax, fraction=0.046, label='log2(obs\u002Fexp)')\n```\n\n`expected['balanced.avg']` is the per-diagonal expected; indexing it by `|i-j|` broadcasts it to a full per-pixel expected matrix.\n\n## Rotated Triangle for Track-Stacking\n\n**Goal:** Hang the contact map above aligned genome-browser tracks (genes, ChIP, insulation) on a shared x-axis.\n\n**Approach:** Prefer a library that owns the 45deg shear and the `depth` crop -- pyGenomeTracks\u002FHiCExplorer (`file_type = hic_matrix`), FAN-C, plotgardener, or CoolBox -- because hand-rolling the `Affine2D` shear is where `extent`\u002F`aspect` alignment bugs live. The matplotlib reference below is for a single panel; for a real stack, route to data-visualization\u002Fgenome-tracks.\n\n```bash\n# HiCExplorer \u002F pyGenomeTracks: config-driven, reproducible. depth = how far up the diagonal.\n# A 2 Mb TAD needs depth >= ~2_000_000 or it is silently truncated.\nhicPlotTADs --tracks tracks.ini --region chr1:50000000-60000000 -o stack.png\n```\n\n```python\nfrom matplotlib.transforms import Affine2D\n# matplotlib single-panel reference: shear the square map onto the diagonal.\nt = Affine2D().rotate_deg(45) + ax.transData\nim = ax.pcolormesh(np.log2(oe_mtx), cmap='coolwarm', vmin=-v, vmax=v)\nim.set_transform(t)\nax.set_ylim(0, m.shape[0])   # crop the depth; the y-axis is genomic SEPARATION, not a 2nd coordinate\n```\n\n## Virtual 4C from a Viewpoint\n\n**Goal:** Extract a 1D contact profile from one viewpoint bin to compare against a real 4C experiment.\n\n**Approach:** Take the viewpoint row from the balanced chromosome matrix; the near-cis distance-decay spike swamps distal signal on a linear axis, so plot on log-y (or mask the +\u002F- few bins around the viewpoint) and say which. Cross-condition profiles must be balanced, depth-matched, and on identical y-axes.\n\n```python\nres = clr.binsize\nvp_bin = (55_000_000 \u002F\u002F res) - (50_000_000 \u002F\u002F res)   # viewpoint index within the region\nprofile = clr.matrix(balance=True).fetch(region)[vp_bin, :]\nfig, ax = plt.subplots(figsize=(11, 2.5))\nax.semilogy(np.arange(len(profile)) * res \u002F 1e6 + 50, profile)   # log-y: the near-cis spike lies on linear\nax.axvline(55, color='red', ls='--')\n```\n\n## APA Pileup over a Loop Set\n\n**Goal:** Validate a loop call set genome-wide by averaging the contact signal centered on every loop's anchor pair.\n\n**Approach:** Pass BEDPE features and the cis expected to `cooltools.pileup` for an observed\u002Fexpected stack, average over the feature axis (`axis=0`), and plot `log2` with a symmetric cmap; the center pixel is the loop, the APA score is center \u002F a corner-background patch (Rao 2014 lower-left 3x3 convention).\n\n```python\nimport pandas as pd\nloops = pd.read_csv('loops.bedpe', sep='\\t')   # chrom1,start1,end1,chrom2,start2,end2\nstack = cooltools.pileup(clr, loops, view_df=view_df, expected_df=expected, flank=100_000)\napa = np.nanmean(stack, axis=0)   # stack is (n_features, D, D) -> average over features\nc = apa.shape[0] \u002F\u002F 2\napa_score = apa[c, c] \u002F np.nanmean(apa[-3:, :3])   # center \u002F lower-left 3x3 background\nfig, ax = plt.subplots(figsize=(5, 5))\nim = ax.matshow(np.log2(apa), cmap='coolwarm', vmin=-1, vmax=1)\nax.set_title(f'APA score {apa_score:.2f}')\n```\n\nFor on-diagonal pileups over CTCF sites, strand-orient before averaging (`stack[mask] = stack[mask][:, ::-1, ::-1]` for `-` strand) or convergent\u002Fdivergent signals cancel. For HiChIP\u002FPLAC-seq anchored loops, route to loop-calling and the peak-anchored pileup conventions there.\n\n## Two-Condition Comparison\n\n**Goal:** Show a contact change between two conditions without it being a depth\u002Fcoverage artifact.\n\n**Approach:** Both matrices must be ICE-balanced AND depth-matched (downsample the deeper library to equal valid pairs) BEFORE ratioing. Then either side-by-side panels on an IDENTICAL cmap\u002Fnorm\u002Fvmin\u002Fvmax\u002Fresolution, or a single `log2(cond1\u002Fcond2)` divergent map with symmetric limits and white = no change; grey out very-distal noise-amplified bins.\n\n```python\nm1 = clr1.matrix(balance=True).fetch(region)\nm2 = clr2.matrix(balance=True).fetch(region)   # clr1, clr2 already depth-equalized upstream\nratio = np.log2((m1 + 1e-5) \u002F (m2 + 1e-5))   # pseudocount tames divide-by-small off-diagonal\nfig, ax = plt.subplots(figsize=(7, 7))\nim = ax.matshow(ratio, cmap='RdBu_r', vmin=-2, vmax=2)   # symmetric, white=no change\nfig.colorbar(im, ax=ax, fraction=0.046, label='log2(cond1\u002Fcond2)')\n```\n\nQuantitative replicate-aware differential testing (not just a figure) lives in hic-differential.\n\n## Per-Method Failure Modes\n\n### Negative claim on a balanced map\n**Trigger:** \"no compartments\u002Floops\" read off a balanced (not O\u002FE) map. **Mechanism:** the polymer distance-decay gradient dominates balanced data and hides checkerboard\u002Fdots. **Symptom:** features absent that O\u002FE would reveal. **Fix:** replot as `log2(O\u002FE)` with a symmetric cmap before making any negative claim.\n\n### Asymmetric divergent limits\n**Trigger:** `vmin != -vmax` on an O\u002FE or log2-ratio map. **Mechanism:** zero (no change\u002Fenrichment) is no longer the white midpoint. **Symptom:** neutral regions read as enriched or depleted; reviewers flag it. **Fix:** `vmin=-v, vmax=v` (or `TwoSlopeNorm(vcenter=0)`).\n\n### vmax = data max\n**Trigger:** letting the heavy-tailed diagonal set vmax. **Mechanism:** a few super-bins are orders of magnitude above the bulk. **Symptom:** the whole map looks empty\u002Fdark; over-clipping the other way fabricates structure. **Fix:** vmax = a stated high off-diagonal percentile (95th-99.5th).\n\n### Resolution mismatched to feature\n**Trigger:** plotting at whatever the `.mcool` defaults to. **Mechanism:** loops at 100kb are averaged away (oversmoothing); compartments at 5-10kb mix in TAD\u002Floop noise. **Symptom:** vanished dots or a noisy checkerboard. **Fix:** compartments 100-500kb, TADs 10-40kb, loops 5-10kb (Micro-C 1-2kb).\n\n### Interpolated matrix quantified\n**Trigger:** `interp_nan`\u002F`adaptive_coarsegrain` (or scHi-C smoothing) then measuring on the result. **Mechanism:** interpolation\u002Fimputation fabricates contacts for DISPLAY. **Symptom:** a filled centromere looks like contiguous chromatin; \"structure\" that is the smoother's prior. **Fix:** fill for display only; quantify on the raw\u002Fbalanced matrix and disclose the smoother.\n\n### Triangle depth too small\n**Trigger:** `depth` \u003C the largest feature. **Mechanism:** the triangle crop truncates separations above `depth`. **Symptom:** a 2 Mb TAD silently cut off. **Fix:** set `depth >= ~feature size`; remember the y-axis is genomic separation.\n\n### Unequal-depth ratio\n**Trigger:** `log2(cond1\u002Fcond2)` on un-depth-matched or unbalanced maps. **Mechanism:** a global depth difference is a uniform multiplicative offset. **Symptom:** a whole-map color shift read as biology. **Fix:** ICE-balance and downsample to equal valid pairs first.\n\n## Quantitative Thresholds\n\n| Threshold | Source | Rationale |\n|-----------|--------|-----------|\n| Compartment resolution 100-500kb | compartment scale (Lieberman-Aiden 2009) | checkerboard is Mb-scale; finer bins add noise, not detail |\n| TAD resolution 10-40kb | domain scale (Dixon 2012) | insulation\u002Fboundary structure lives at sub-Mb |\n| Loop resolution 5-10kb (Micro-C 1-2kb) | focal-contact scale (Rao 2014) | a loop is a ~10kb focal pixel; coarse bins blur it, too-fine buries it in Poisson noise |\n| vmax = 95th-99.5th off-diagonal percentile | heavy-tailed counts | data-max vmax leaves the map dark; report the percentile |\n| Divergent limits symmetric `vmin=-vmax` | zero must be the midpoint | asymmetric limits misplace the white neutral point |\n| APA flank +\u002F- 100kb | corner-background convention | too small contaminates the corner; too large averages in neighbors |\n| APA score = center \u002F lower-left 3x3 | Rao 2014 | standard center-to-background loop enrichment ratio |\n| HiGlass zoom levels \u003C ~5x apart | Kerpedjiev 2018 | adjacent resolutions must be close for smooth multires rendering |\n\n## Common Errors\n\n| Error \u002F symptom | Cause | Solution |\n|-----------------|-------|----------|\n| `matrix(balance=True)` all NaN | cooler not balanced | run `cooler balance` \u002F `cooler.balance_cooler` first |\n| Empty \u002F wrong-resolution result | bare `.mcool` passed | use `file.mcool::\u002Fresolutions\u002F\u003Cbp>` |\n| White stripes mistaken for \"no contact\" | NaN bins left at default | `cmap.set_bad('lightgray')` to render masked bins |\n| `cmap='fall'` KeyError | colormap not registered | `import cooltools.lib.plotting` first |\n| `ImportError` on `import cooltools.lib.plotting` | matplotlib >= 3.9 dropped `register_cmap` (cooltools 0.7.x) | pin matplotlib \u003C 3.9, or use a stock cmap (`'afmhot_r'`) |\n| Pileup looks averaged-out \u002F scrambled | wrong nanmean axis | aggregate over `axis=0` (stack is `(n_features, D, D)`) |\n| Empty region \u002F no overlap | chrom naming (`chr1` vs `1`) | harmonize names across cooler, BED\u002FBEDPE, fasta |\n| `AttributeError` on cooltools fn | pre-0.7 vs 0.7+ API | `help(cooltools.\u003Cfn>)`; update to the `view_df`\u002F`expected_df` signature |\n\n## References\n\n- cooler: Abdennur N, Mirny LA. Cooler: scalable storage for Hi-C data and other genomically labeled arrays. *Bioinformatics* 2020;36(1):311-316.\n- cooltools: Open2C, Abdennur N, Abraham S, Fudenberg G, et al. Cooltools: enabling high-resolution Hi-C analysis in Python. *PLoS Comput Biol* 2024;20(5):e1012067.\n- HiCExplorer: Ramirez F, Bhardwaj V, Arrigoni L, et al. High-resolution TADs reveal DNA sequences underlying genome organization in flies. *Nat Commun* 2018;9(1):189.\n- pyGenomeTracks: Lopez-Delisle L, Rabbani L, Wolff J, et al. pyGenomeTracks: reproducible plots for multivariate genomic datasets. *Bioinformatics* 2021;37(3):422-423.\n- FAN-C: Kruse K, Hug CB, Vaquerizas JM. FAN-C: a feature-rich framework for the analysis and visualisation of chromosome conformation capture data. *Genome Biol* 2020;21(1):303.\n- CoolBox: Xu W, Zhong Q, Lin D, et al. CoolBox: a flexible toolkit for visual analysis of genomics data. *BMC Bioinformatics* 2021;22(1):489.\n- plotgardener: Kramer NE, Davis ES, Wenger CD, et al. Plotgardener: cultivating precise multi-panel figures in R. *Bioinformatics* 2022;38(7):2042-2045.\n- HiGlass: Kerpedjiev P, Abdennur N, Lekschas F, et al. HiGlass: web-based visual exploration and analysis of genome interaction maps. *Genome Biol* 2018;19(1):125.\n- coolpup.py: Flyamer IM, Illingworth RS, Bickmore WA. Coolpup.py: versatile pile-up analysis of Hi-C data. *Bioinformatics* 2020;36(10):2980-2985.\n- A\u002FB compartments: Lieberman-Aiden E, van Berkum NL, Williams L, et al. Comprehensive mapping of long-range interactions reveals folding principles of the human genome. *Science* 2009;326(5950):289-293.\n- TAD directionality index: Dixon JR, Selvaraj S, Yue F, et al. Topological domains in mammalian genomes identified by analysis of chromatin interactions. *Nature* 2012;485(7398):376-380.\n- Loops\u002FHiCCUPS\u002FAPA: Rao SSP, Huntley MH, Durand NC, et al. A 3D map of the human genome at kilobase resolution reveals principles of chromatin looping. *Cell* 2014;159(7):1665-1680.\n\n## Related Skills\n\n- hic-data-io - Load the cooler\u002F.mcool files and zoomify for multires HiGlass tilesets\n- matrix-operations - Balancing and O\u002FE that the divergent map depends on\n- compartment-analysis - Eigenvector phasing behind the saddle plot\n- tad-detection - Insulation\u002Fboundary tracks stacked under the triangle\n- loop-calling - Loop calls and peak-anchored pileup conventions visualized here\n- hic-differential - Replicate-aware testing behind the two-condition comparison\n- data-visualization\u002Fgenome-tracks - Config-driven multi-track stacks (pyGenomeTracks hic_matrix)\n- genome-intervals\u002Fbigwig-tracks - Export eigenvector\u002Finsulation as bigWig for the track stack\n- data-visualization\u002Fheatmaps-clustering - General heatmap color\u002Fnorm conventions\n",{"name":5,"source":24,"license":15,"tool_type":25,"description":7,"imported_at":26,"source_path":27,"primary_tool":28,"source_repository":29},"https:\u002F\u002Fgithub.com\u002FGPTomics\u002FbioSkills","python","2026-09-20","hi-c-analysis\u002Fhic-visualization\u002FSKILL.md","matplotlib","GPTomics\u002FbioSkills","main","2d1750717747097b602acf30bd09a7cbd4b4c6ea","awesome_skills\u002Fbiology\u002Fbio-hi-c-analysis-hic-visualization","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous","2026-11-09 11:45:36",{"source":8,"skillName":5,"commands":37,"prompt":47,"zipAvailable":48},[38,41,44],{"tool":39,"command":40},"npx","npx skills add Mr-Nobody-Anonymous\u002FAll-skills --skill bio-hi-c-analysis-hic-visualization",{"tool":42,"command":43},"bunx","bunx skills add Mr-Nobody-Anonymous\u002FAll-skills --skill bio-hi-c-analysis-hic-visualization",{"tool":45,"command":46},"pnpm","pnpm dlx skills add Mr-Nobody-Anonymous\u002FAll-skills --skill bio-hi-c-analysis-hic-visualization","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fbiology\u002Fbio-hi-c-analysis-hic-visualization\u002FSKILL.md",true,[50,56],{"path":51,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":54,"sourceHtmlUrl":55},"examples\u002Fplot_hic.py","SCRIPT","脚本",3688,"https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fbiology\u002Fbio-hi-c-analysis-hic-visualization\u002Fexamples\u002Fplot_hic.py",{"path":57,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":60,"sourceHtmlUrl":61},"usage-guide.md","REFERENCE","参考文档",5205,"https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fbiology\u002Fbio-hi-c-analysis-hic-visualization\u002Fusage-guide.md",[63,71,78,85,92,99],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":70},"01M7FFFZPC2025JQQHPHDX154J","dei-assessment","Assess diversity, equity, and inclusion with metrics. TRIGGERS - Use when user needs help with dei-assessment related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fdei-assessment\u002FSKILL.md",[],[],"2026-11-16 10:05:34",{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":70},"01M7FFFWN8H4WA7A6Y398QKB6J","dei-action-plan","Create DEI action plans with goals and initiatives. TRIGGERS - Use when user needs help with dei-action-plan related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fdei-action-plan\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":70},"01M7FFFSHTM0QZRVZ2NRJTJ0PY","culture-fit-assessment","Design culture add assessment processes. TRIGGERS - Use when user needs help with culture-fit-assessment related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fculture-fit-assessment\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":70},"01M7FFFMA12RKEQA38KHJSXXPS","cowork-to-code-bridge","Use an already-installed, independently verified cowork-to-code bridge to run narrowly approved actions on the user's own macOS, Linux, or WSL2 machine through a local file queue.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fcowork-to-code-bridge\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":70},"01M7FFFH1F6M8YRGW5V487GH1K","counter-offer-response","Draft counter-offer responses for retention. TRIGGERS - Use when user needs help with counter-offer-response related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fcounter-offer-response\u002FSKILL.md",[],[],{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":70},"01M7FFFDGEHV8Y7J9N40HZXW52","continuous-feedback-system","Design continuous feedback systems. TRIGGERS - Use when user needs help with continuous-feedback-system related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fcontinuous-feedback-system\u002FSKILL.md",[],[]]