[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EDPZDVNAT2DDFCV9RXQFCH":3,"skill-same:01M7EDPZDVNAT2DDFCV9RXQFCH":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},"01M7EDPZDVNAT2DDFCV9RXQFCH","bio-hi-c-analysis-compartment-analysis",null,"Detects A\u002FB chromatin compartments from balanced Hi-C contact matrices via eigenvector decomposition of the distance-normalized, Pearson-correlated cis matrix with cooltools (eigs_cis), then orients (phases) the compartment eigenvector against a GC or gene-density track so the active (A) sign is not arbitrary. Covers the eigenvector-is-a-choice problem (per-arm view_df to remove the centromere gradient; picking the eigenvector by max correlation with activity, not by eigenvalue), GC phasing with bioframe.frac_gc, resolution choice (100kb-1Mb), saddle plots and saddle_strength for compartmentalization strength, the cohesin-loss-strengthens-compartments result, subcompartments (SNIPER\u002FCalder\u002FdcHiC), and cross-condition compartment switching. Use when calling A\u002FB compartments, computing E1\u002Feigenvectors, phasing the eigenvector, building saddle plots, choosing a compartment resolution, quantifying compartment strength, or comparing compartmentalization across 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-compartment-analysis\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: bio-hi-c-analysis-compartment-analysis\ndescription: Detects A\u002FB chromatin compartments from balanced Hi-C contact matrices via eigenvector decomposition of the distance-normalized, Pearson-correlated cis matrix with cooltools (eigs_cis), then orients (phases) the compartment eigenvector against a GC or gene-density track so the active (A) sign is not arbitrary. Covers the eigenvector-is-a-choice problem (per-arm view_df to remove the centromere gradient; picking the eigenvector by max correlation with activity, not by eigenvalue), GC phasing with bioframe.frac_gc, resolution choice (100kb-1Mb), saddle plots and saddle_strength for compartmentalization strength, the cohesin-loss-strengthens-compartments result, subcompartments (SNIPER\u002FCalder\u002FdcHiC), and cross-condition compartment switching. Use when calling A\u002FB compartments, computing E1\u002Feigenvectors, phasing the eigenvector, building saddle plots, choosing a compartment resolution, quantifying compartment strength, or comparing compartmentalization across conditions.\ntool_type: python\nprimary_tool: cooltools\nsource: \"https:\u002F\u002Fgithub.com\u002FGPTomics\u002FbioSkills\"\nsource_repository: \"GPTomics\u002FbioSkills\"\nsource_path: \"hi-c-analysis\u002Fcompartment-analysis\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+, bioframe 0.7+\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\ncooltools had a major API shift around 0.5 -> 0.7+ (functions standardized on `view_df`\u002Fviewframe arguments; `eigs_cis`, `expected_cis`, `saddle` signatures changed). The cooler MUST be balanced before any compartment analysis: `clr.matrix(balance=True)` requires a stored `weight` column. A `.mcool` is multi-resolution -- pass a single-resolution URI (`file.mcool::\u002Fresolutions\u002F100000`), not the bare `.mcool`. The `phasing_track` MUST share the cooler's exact binning or phasing silently no-ops. If code throws ImportError, AttributeError, or TypeError, introspect the installed package and adapt the example to match the actual API rather than retrying.\n\n# A\u002FB Compartment Analysis\n\n**\"Which regions of my genome are in the active vs inactive compartment?\"** -> Distance-normalize the cis matrix, take an eigenvector of its Pearson correlation matrix, then orient it by GC\u002Fgene density so positive = A (active) -- but verify the kept eigenvector is the compartment one, not an arm gradient.\n- Python: `cooltools.eigs_cis(clr, gc_track, view_df=arms, n_eigs=3, sort_metric='pearsonr')`\n\n## The Single Most Important Modern Insight -- E1 Is a Choice, Not an Output, and Its Sign Is Arbitrary Until Phased\n\nThe two most damaging beginner assumptions are \"E1 = compartments\" and \"positive E1 = active.\" Both are false out of the box, and both fail *silently* -- the pipeline runs, returns a track, and is wrong.\n\n1. **E1 is not guaranteed to be the compartment track.** On a *whole-chromosome* O\u002FE correlation matrix the largest eigenvalue very often belongs to a smooth p-arm-vs-q-arm or centromere-to-telomere GRADIENT, not the plaid A\u002FB checkerboard -- the real compartment signal then lands in E2 or E3. cooltools' own docs concede the first eigenvector \"occasionally describes chromosomal arms or translocation blowouts.\" The compartment eigenvector is the one with the largest |correlation| to an activity track (GC, gene density, H3K27ac), not the one with the largest eigenvalue. The structural fix removes the gradient at the source: run `eigs_cis` per chromosome ARM (a `view_df` split at centromeres, from `bioframe.make_chromarms`), so the arm gradient is never in the within-arm matrix. Set `sort_metric='pearsonr'` so the returned eigenvectors are ordered by GC correlation, not eigenvalue -- otherwise the arm gradient is reported as \"E1.\" A monotonic \"compartment track\" with no sign flips across a chromosome is the failure signature of a captured arm gradient.\n\n2. **The sign is arbitrary until phased.** Eigenvectors are defined up to sign; the positive lobe is meaningless and can differ per chromosome AND per sample. The eigenvector MUST be oriented with an external active-chromatin track via the `phasing_track` argument so A = positive. GC content is the field default (it needs no extra assay and tracks compartment A; Lieberman-Aiden 2009 *Science* 326:289) -- compute it with `bioframe.frac_gc` at the compartment resolution, exactly matching the cooler's binning. Wrong\u002Fweak phasing flips A\u003C->B silently, and every downstream saddle, switch call, and differential result inverts with no error. This is a classic source of irreproducible compartment papers.\n\n3. **Compartments are an equilibrium phenomenon decoupled from TADs\u002Floops.** Compartments = microphase separation of A\u002FB chromatin states (cohesin-independent; survive cohesin loss, Schwarzer 2017 *Nature* 551:51, and CTCF loss, Nora 2017 *Cell* 169:930). TADs\u002Floops = ATP-driven loop extrusion stalled at CTCF. Removing cohesin reinforces compartments while erasing TADs (Schwarzer 2017 reports reinforced compartmentalization on Nipbl loss; Rao 2017 *Cell* 171:305 eliminates all loop domains with compartments retained) -- loop extrusion actively mixes chromatin across compartment boundaries, so removing the extruder lets microphase separation run to completion (Nuebler 2018 *PNAS* 115:E6697). A preserved-or-stronger saddle after a cohesin\u002FNipbl\u002FRAD21 perturbation is the EXPECTED result, not a bug; compartment-strength and TAD-strength are antagonistic. If a CTCF\u002Fcohesin perturbation makes compartments *vanish*, suspect a phasing artifact, not biology.\n\n## Method \u002F Output Taxonomy\n\n| Output | Tool \u002F call | What it is | When |\n|--------|-------------|-----------|------|\n| A\u002FB eigenvector (E1) | `cooltools.eigs_cis` (cis, per-arm) | leading GC-phased eigenvector of the cis O\u002FE correlation matrix; sign = A\u002FB | standard A\u002FB call, single map, per chromosome arm |\n| Genome-wide A\u002FB | `cooltools.eigs_trans` | eigenvector of inter-chromosomal blocks; immune to the cis arm-gradient | whole-genome A\u002FB consensus with deep trans coverage |\n| Compartment strength | `cooltools.saddle` + `saddle_strength` | (AA+BB)\u002F(AB+BA) corner ratio of the saddle | comparing compartmentalization across conditions |\n| 5-6 subcompartments | SNIPER (Xiong & Ma 2019 *Nat Commun* 10:5069) | autoencoder imputes inter-chr contacts -> MLP classifies A1\u002FA2\u002FB1\u002FB2\u002FB3 at 100kb | deep inter-chr data; Rao-style subcompartments |\n| Continuous compartment rank | Calder (Liu 2021 *Nat Commun* 12:2439) | intra-chr divisive hierarchical clustering -> 0-1 multi-scale rank | cross-cell-line repositioning; modest coverage |\n| Differential compartments | dcHiC (Chakraborty 2022 *Nat Commun* 13:6827) | quantile-normalized scores + multivariate Mahalanobis distance + significance; solves cross-sample sign flips | >=2 samples, \"which bins switch A\u003C->B\" |\n| Single-cell compartment | scA\u002FB (Tan 2018 Dip-C *Science*) | CpG\u002Factivity proxy per locus; do NOT eigendecompose one sparse cell | scHi-C, ~20-50k contacts\u002Fcell |\n\n## Decision Tree by Scenario\n\n| Scenario | Recommended | Why |\n|----------|-------------|-----|\n| Matrix not yet balanced | `cooler balance` first (-> matrix-operations) | unbalanced -> O\u002FE is all-NaN; meaningless eigenvector |\n| Standard A\u002FB call, one map | `eigs_cis` per arm at 100kb-1Mb, phase by GC | compartments are chromosome-scale; arms remove the centromere gradient |\n| E1 looks monotonic \u002F no sign flips | inspect E2\u002FE3, pick by max |corr| with GC; or split by arm | E1 captured an arm\u002Ftranslocation gradient, not compartments |\n| Sign of A\u002FB seems inverted | confirm `phasing_track` is at the cooler's binning | weak\u002Fmismatched phasing flips A\u003C->B silently |\n| Want compartment STRENGTH | `saddle` + `saddle_strength`, fixed extent across samples | a single eigenvector does not quantify strength |\n| Want 5-6 subcompartments | SNIPER or Calder, NOT more eigenvectors | subcompartments need inter-chr ML or hierarchical clustering, not `n_eigs` |\n| Two+ conditions, compartment shift | -> hic-differential (dcHiC) | replicate-aware, sign-coherent across the cohort; hand-diffing eigenvectors flips signs |\n| Single-cell Hi-C | scA\u002FB (Dip-C), not a per-cell eigenvector | one sparse cell is too noisy to eigendecompose |\n| Annotate switched bins with marks | -> chip-seq\u002Fchromatin-state-segmentation, chip-seq\u002Fpeak-annotation | overlay ChromHMM\u002Fhistone state on compartment calls |\n| Render the eigenvector\u002Fsaddle | -> hic-visualization; export bigWig -> genome-intervals\u002Fbigwig-tracks | track\u002Fheatmap conventions live there |\n\n## Per-Arm Eigenvector with GC Phasing\n\n**Goal:** Assign each genomic bin to the active (A) or inactive (B) compartment with a non-arbitrary sign, avoiding the centromere arm-gradient artifact.\n\n**Approach:** Build a per-arm `view_df` (split at centromeres) so the arm gradient never enters the matrix; compute a GC-content phasing track at the cooler's exact binning; run `eigs_cis` with the GC track and `sort_metric='pearsonr'` so eigenvectors are ordered by GC correlation; then take the GC-correlated eigenvector as the compartment track.\n\n```python\nimport cooler\nimport cooltools\nimport bioframe\n\nclr = cooler.Cooler('matrix.mcool::\u002Fresolutions\u002F100000')   # 100kb: compartments are coarse-scale\nchromsizes = clr.chromsizes\ncens = bioframe.fetch_centromeres('hg38')\narms = bioframe.make_chromarms(chromsizes, cens)            # per-arm view removes the centromere gradient\narms = arms[arms.chrom.isin(clr.chromnames)].reset_index(drop=True)\n\ngenome = bioframe.load_fasta('hg38.fa')                     # FASTA index (.fai) must exist\nbins = clr.bins()[:][['chrom', 'start', 'end']]\ngc = bioframe.frac_gc(bins, genome)                         # phasing track at the cooler's exact binning\n\neigvals, eigvecs = cooltools.eigs_cis(clr, gc, view_df=arms, n_eigs=3, sort_metric='pearsonr')\neigvecs['compartment'] = ['A' if e > 0 else 'B' for e in eigvecs['E1']]   # GC-phased: positive E1 = A\n```\n\nAfter phasing, sanity-check that `E1` correlates with `gc['GC']` (sign and magnitude). If the strongest correlation is in `E2`\u002F`E3`, that component -- not `E1` -- is the compartment track; re-derive the call from it.\n\n## Compartment Strength via Saddle Plot\n\n**Goal:** Quantify how strongly the genome demixes into A and B with a single comparable number across conditions.\n\n**Approach:** Compute the distance-decay expected; pass the cooler, the expected, and the *phased* E1 eigenvector to `saddle`, which digitizes E1 into quantile groups internally (via `qrange`) and aggregates O\u002FE into a 2D table of same-vs-cross-compartment interactions; then read `saddle_strength` (the (AA+BB)\u002F(AB+BA) corner ratio) at one fixed extent, applied identically to every sample compared.\n\n```python\nN_GROUPS = 38            # quantile groups for digitizing E1; ~30-50 is conventional (cooltools tutorial)\nQ_LO, Q_HI = 0.025, 0.975   # trim the extreme 2.5% tails before digitizing to resist outlier bins\n\nexpected = cooltools.expected_cis(clr, view_df=arms)        # has the 'balanced.avg' column saddle needs\ntrack = eigvecs[['chrom', 'start', 'end', 'E1']]           # the SAME phased E1 used for the A\u002FB call\ninteraction_sum, interaction_count = cooltools.saddle(\n    clr, expected, track, 'cis', n_bins=N_GROUPS, qrange=(Q_LO, Q_HI), view_df=arms\n)\nstrength = cooltools.api.saddle.saddle_strength(interaction_sum, interaction_count)   # 1D array; lives in cooltools.api.saddle, not top level\nEXTENT = N_GROUPS \u002F\u002F 5   # read strength at the top\u002Fbottom ~20% of bins; pick one extent, use it everywhere\nscore = strength[EXTENT]\n```\n\n`saddle_strength` returns an ARRAY (cumulative corner ratio over increasing extent), not a scalar -- there is no canonical single number, so choose an extent and apply it identically across compared samples. Mismatched `n_bins`, resolution, `qrange`, or extent make strengths incomparable. Remember: a preserved-or-*higher* strength after cohesin\u002FNipbl\u002FRAD21 loss is the expected result.\n\n## Compare Compartments Across Conditions\n\n**Goal:** Find bins that switch A\u003C->B between two conditions without being fooled by per-sample sign flips.\n\n**Approach:** Do NOT independently phase two eigenvectors and diff them bin-by-bin -- a weak per-chromosome GC correlation can flip the sign in one sample only, manufacturing fake \"switches.\" Use dcHiC, which computes eigenvectors on quantile-normalized scores in a shared framework (sign-coherent across the cohort) and reports a multivariate significance per bin. Route this to hic-differential.\n\n```python\n# Hand-diffing is only safe when you have CONFIRMED both eigenvectors are sign-coherent (same arms phased\n# to the same GC track with strong correlation). Otherwise use dcHiC -- see hic-differential.\nimport pandas as pd\nmerged = eig1.merge(eig2, on=['chrom', 'start', 'end'], suffixes=('_1', '_2'))\nmerged['switch'] = (merged['E1_1'] > 0) != (merged['E1_2'] > 0)   # only meaningful if both are phased coherently\n```\n\n## Per-Method Failure Modes\n\n### Eigenvector captured the arm gradient\n**Trigger:** `eigs_cis` run per whole chromosome (no per-arm `view_df`) and\u002For `sort_metric=None`. **Mechanism:** the largest eigenvalue belongs to the smooth p-vs-q arm \u002F centromere gradient, not the A\u002FB checkerboard. **Symptom:** a monotonic \"compartment track\" across a chromosome with no sign flips; weak correlation of E1 with GC. **Fix:** run per chromosome arm (`bioframe.make_chromarms`); set `sort_metric='pearsonr'`; pick the eigenvector with the largest |corr| to GC.\n\n### Eigenvector sign not phased\n**Trigger:** `eigs_cis` called with `phasing_track=None`. **Mechanism:** the sign of an eigenvector is mathematically arbitrary. **Symptom:** active euchromatin lands in \"B\"; A\u002FB inverted relative to GC; per-chromosome sign inconsistency. **Fix:** pass a GC (or gene-density \u002F H3K27ac) `phasing_track` so positive E1 = A.\n\n### Phasing track at the wrong binning\n**Trigger:** GC\u002Factivity track computed at a different resolution than the cooler. **Mechanism:** cooltools aligns the track to the cooler bins; a mismatch yields garbage correlations or a silent no-op. **Symptom:** phasing has no effect, or signs are random. **Fix:** compute the track on `clr.bins()` at the exact compartment resolution.\n\n### Calling compartments at TAD\u002Floop resolution\n**Trigger:** `eigs_cis` at 5-25kb. **Mechanism:** compartments are a 100kb-1Mb feature; fine bins are sparse and dominated by TAD\u002Floop structure and noise. **Symptom:** a noisy, jagged E1 that does not correlate with GC. **Fix:** call at 100kb-1Mb (250kb common; up to 1Mb for shallow data).\n\n### Expecting subcompartments from more eigenvectors\n**Trigger:** raising `n_eigs` to \"get A1\u002FA2\u002FB1\u002FB2\u002FB3\". **Mechanism:** Rao's 6 subcompartments came from clustering inter-chromosomal patterns in a 4.9-billion-contact map, not from extra eigenvectors. **Symptom:** higher eigenvectors are noise, not finer biology. **Fix:** use SNIPER (inter-chr ML) or Calder (hierarchical); for differential use dcHiC.\n\n### Hand-diffing independently phased eigenvectors\n**Trigger:** subtracting\u002Fcomparing two per-sample eigenvectors bin-by-bin. **Mechanism:** a weak GC correlation can flip the sign in one sample only. **Symptom:** spurious \"compartment switches\" concentrated on whole chromosomes\u002Farms. **Fix:** use dcHiC (sign-coherent quantile-normalized framework) -- see hic-differential.\n\n### Saddle strengths not comparable across samples\n**Trigger:** different `n_bins`, `qrange`, resolution, or extent between compared saddles. **Mechanism:** `saddle_strength` is an extent-dependent array, not an absolute scalar. **Symptom:** strength differences that track the settings, not the biology. **Fix:** fix `n_bins`, `qrange`, resolution, and the corner extent; apply identically to all samples.\n\n## Quantitative Thresholds\n\n| Threshold | Source | Rationale |\n|-----------|--------|-----------|\n| Compartment resolution 100kb-1Mb (250kb typical) | compartment scale (Lieberman-Aiden 2009) | finer bins mix in TAD\u002Floop structure and sparsity noise; A\u002FB is chromosome-scale |\n| Run per chromosome ARM | eigenvector-selection (cooltools docs; Mirny lab) | removes the centromere\u002Farm gradient that otherwise hijacks E1 |\n| `sort_metric='pearsonr'` | cooltools default-mismatch | default sorts by eigenvalue, so the arm gradient is reported as E1; pearsonr sorts by GC correlation |\n| `n_eigs>=3` and inspect eigenvalues | eigenvector-selection | n_eigs=1 hides the arm-vs-compartment problem; which component is biology is then undeterminable |\n| `clip_percentile=99.9` (cooler `eigs_cis` default) | outlier suppression | dense `cis_eig` defaults `clip_percentile=0`; the entry points differ -- do not assume |\n| Saddle quantile groups ~30-50; trim 2.5% tails | cooltools tutorial | enough groups to resolve the saddle; tail trim resists outlier bins |\n| Saddle strength at a fixed extent (e.g. top\u002Fbottom ~20%) | saddle_strength is an array | no canonical scalar; one extent, applied identically across samples |\n| Subcompartments require deep inter-chr data | Rao 2014 (4.9B contacts) | shallow maps + extra eigenvectors give noise, not subcompartments |\n\n## Common Errors\n\n| Error \u002F symptom | Cause | Solution |\n|-----------------|-------|----------|\n| `clr.matrix(balance=True)` \u002F O\u002FE all NaN | cooler not balanced | run `cooler balance` \u002F `cooler.balance_cooler` first (-> matrix-operations) |\n| Empty \u002F wrong-resolution result on `.mcool` | bare `.mcool` passed | use `file.mcool::\u002Fresolutions\u002F\u003Cbp>` URI |\n| A\u002FB compartments inverted | eigenvector sign unphased or weak phasing | pass a GC\u002Fgene-density `phasing_track` at the cooler's binning |\n| E1 monotonic, no sign flips | whole-chromosome run captured the arm gradient | run per arm (`make_chromarms`); pick by max |corr| with GC |\n| `frac_gc` \u002F empty eigenvector on some chroms | chrom naming mismatch (`chr1` vs `1`) across cooler\u002FFASTA\u002Fcentromeres | harmonize names; subset the view to `clr.chromnames` |\n| `saddle` KeyError on `balanced.avg` | wrong\u002Fabsent expected table | pass `cooltools.expected_cis(clr, view_df=...)` output and `contact_type='cis'` |\n| `AttributeError` on a cooltools function | pre-0.7 vs 0.7+ API change | `help(cooltools.eigs_cis)`; update to the viewframe signature |\n\n## References\n\n- Lieberman-Aiden E, van Berkum NL, et al. 2009. Comprehensive mapping of long-range interactions reveals folding principles of the human genome. *Science* 326:289-293.\n- Rao SSP, Huntley MH, et al. 2014. A 3D map of the human genome at kilobase resolution reveals principles of chromatin looping. *Cell* 159:1665-1680.\n- Nora EP, Goloborodko A, et al. 2017. Targeted degradation of CTCF decouples local insulation of chromosome domains from genomic compartmentalization. *Cell* 169:930-944.\n- Schwarzer W, Abdennur N, et al. 2017. Two independent modes of chromatin organization revealed by cohesin removal. *Nature* 551:51-56.\n- Rao SSP, Huang S-C, et al. 2017. Cohesin loss eliminates all loop domains. *Cell* 171:305-320.\n- Nuebler J, Fudenberg G, Imakaev M, Abdennur N, Mirny LA. 2018. Chromatin organization by an interplay of loop extrusion and compartmental segregation. *PNAS* 115:E6697-E6706.\n- Xiong K, Ma J. 2019. Revealing Hi-C subcompartments by imputing inter-chromosomal chromatin interactions. *Nat Commun* 10:5069.\n- Tan L, Xing D, Chang C-H, Li H, Xie XS. 2018. Three-dimensional genome structures of single diploid human cells. *Science* 361(6405):924-928.\n- Liu Y, Nanni L, et al. 2021. Systematic inference and comparison of multi-scale chromatin sub-compartments connects spatial organization to cell phenotypes. *Nat Commun* 12:2439.\n- Chakraborty A, Wang JG, Ay F. 2022. dcHiC detects differential compartments across multiple Hi-C datasets. *Nat Commun* 13:6827.\n- Chen Y, Zhang Y, et al. 2018. Mapping 3D genome organization relative to nuclear compartments using TSA-Seq as a cytological ruler. *J Cell Biol* 217:4025-4048.\n- Abdennur N, et al. (Open2C). 2024. Cooltools: enabling high-resolution Hi-C analysis in Python. *PLoS Comput Biol* 20:e1012067.\n- Abdennur N, Mirny LA. 2020. Cooler: scalable storage for Hi-C data and other genomically labeled arrays. *Bioinformatics* 36:311-316.\n\n## Related Skills\n\n- matrix-operations - Balancing and distance-normalized expected that compartment calling depends on\n- hic-data-io - Load and access the cooler files this skill operates on\n- hic-differential - dcHiC differential compartments and cross-condition switching\n- tad-detection - The loop-extrusion partner of the two-mechanism framework; antagonistic strength\n- hic-visualization - Render the eigenvector track and saddle plot\n- chip-seq\u002Fchromatin-state-segmentation - Overlay ChromHMM\u002Fhistone states on A\u002FB compartments\n- chip-seq\u002Fpeak-annotation - Annotate switched bins with TF\u002Fhistone peaks\n- genome-intervals\u002Fbigwig-tracks - Export the eigenvector as a bigWig track\n- single-cell\u002Fscatac-analysis - Single-cell chromatin context for scHi-C compartment work\n","## Version Compatibility\n\nReference examples tested with: cooler 0.10+, cooltools 0.7+, bioframe 0.7+\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\ncooltools had a major API shift around 0.5 -> 0.7+ (functions standardized on `view_df`\u002Fviewframe arguments; `eigs_cis`, `expected_cis`, `saddle` signatures changed). The cooler MUST be balanced before any compartment analysis: `clr.matrix(balance=True)` requires a stored `weight` column. A `.mcool` is multi-resolution -- pass a single-resolution URI (`file.mcool::\u002Fresolutions\u002F100000`), not the bare `.mcool`. The `phasing_track` MUST share the cooler's exact binning or phasing silently no-ops. If code throws ImportError, AttributeError, or TypeError, introspect the installed package and adapt the example to match the actual API rather than retrying.\n\n# A\u002FB Compartment Analysis\n\n**\"Which regions of my genome are in the active vs inactive compartment?\"** -> Distance-normalize the cis matrix, take an eigenvector of its Pearson correlation matrix, then orient it by GC\u002Fgene density so positive = A (active) -- but verify the kept eigenvector is the compartment one, not an arm gradient.\n- Python: `cooltools.eigs_cis(clr, gc_track, view_df=arms, n_eigs=3, sort_metric='pearsonr')`\n\n## The Single Most Important Modern Insight -- E1 Is a Choice, Not an Output, and Its Sign Is Arbitrary Until Phased\n\nThe two most damaging beginner assumptions are \"E1 = compartments\" and \"positive E1 = active.\" Both are false out of the box, and both fail *silently* -- the pipeline runs, returns a track, and is wrong.\n\n1. **E1 is not guaranteed to be the compartment track.** On a *whole-chromosome* O\u002FE correlation matrix the largest eigenvalue very often belongs to a smooth p-arm-vs-q-arm or centromere-to-telomere GRADIENT, not the plaid A\u002FB checkerboard -- the real compartment signal then lands in E2 or E3. cooltools' own docs concede the first eigenvector \"occasionally describes chromosomal arms or translocation blowouts.\" The compartment eigenvector is the one with the largest |correlation| to an activity track (GC, gene density, H3K27ac), not the one with the largest eigenvalue. The structural fix removes the gradient at the source: run `eigs_cis` per chromosome ARM (a `view_df` split at centromeres, from `bioframe.make_chromarms`), so the arm gradient is never in the within-arm matrix. Set `sort_metric='pearsonr'` so the returned eigenvectors are ordered by GC correlation, not eigenvalue -- otherwise the arm gradient is reported as \"E1.\" A monotonic \"compartment track\" with no sign flips across a chromosome is the failure signature of a captured arm gradient.\n\n2. **The sign is arbitrary until phased.** Eigenvectors are defined up to sign; the positive lobe is meaningless and can differ per chromosome AND per sample. The eigenvector MUST be oriented with an external active-chromatin track via the `phasing_track` argument so A = positive. GC content is the field default (it needs no extra assay and tracks compartment A; Lieberman-Aiden 2009 *Science* 326:289) -- compute it with `bioframe.frac_gc` at the compartment resolution, exactly matching the cooler's binning. Wrong\u002Fweak phasing flips A\u003C->B silently, and every downstream saddle, switch call, and differential result inverts with no error. This is a classic source of irreproducible compartment papers.\n\n3. **Compartments are an equilibrium phenomenon decoupled from TADs\u002Floops.** Compartments = microphase separation of A\u002FB chromatin states (cohesin-independent; survive cohesin loss, Schwarzer 2017 *Nature* 551:51, and CTCF loss, Nora 2017 *Cell* 169:930). TADs\u002Floops = ATP-driven loop extrusion stalled at CTCF. Removing cohesin reinforces compartments while erasing TADs (Schwarzer 2017 reports reinforced compartmentalization on Nipbl loss; Rao 2017 *Cell* 171:305 eliminates all loop domains with compartments retained) -- loop extrusion actively mixes chromatin across compartment boundaries, so removing the extruder lets microphase separation run to completion (Nuebler 2018 *PNAS* 115:E6697). A preserved-or-stronger saddle after a cohesin\u002FNipbl\u002FRAD21 perturbation is the EXPECTED result, not a bug; compartment-strength and TAD-strength are antagonistic. If a CTCF\u002Fcohesin perturbation makes compartments *vanish*, suspect a phasing artifact, not biology.\n\n## Method \u002F Output Taxonomy\n\n| Output | Tool \u002F call | What it is | When |\n|--------|-------------|-----------|------|\n| A\u002FB eigenvector (E1) | `cooltools.eigs_cis` (cis, per-arm) | leading GC-phased eigenvector of the cis O\u002FE correlation matrix; sign = A\u002FB | standard A\u002FB call, single map, per chromosome arm |\n| Genome-wide A\u002FB | `cooltools.eigs_trans` | eigenvector of inter-chromosomal blocks; immune to the cis arm-gradient | whole-genome A\u002FB consensus with deep trans coverage |\n| Compartment strength | `cooltools.saddle` + `saddle_strength` | (AA+BB)\u002F(AB+BA) corner ratio of the saddle | comparing compartmentalization across conditions |\n| 5-6 subcompartments | SNIPER (Xiong & Ma 2019 *Nat Commun* 10:5069) | autoencoder imputes inter-chr contacts -> MLP classifies A1\u002FA2\u002FB1\u002FB2\u002FB3 at 100kb | deep inter-chr data; Rao-style subcompartments |\n| Continuous compartment rank | Calder (Liu 2021 *Nat Commun* 12:2439) | intra-chr divisive hierarchical clustering -> 0-1 multi-scale rank | cross-cell-line repositioning; modest coverage |\n| Differential compartments | dcHiC (Chakraborty 2022 *Nat Commun* 13:6827) | quantile-normalized scores + multivariate Mahalanobis distance + significance; solves cross-sample sign flips | >=2 samples, \"which bins switch A\u003C->B\" |\n| Single-cell compartment | scA\u002FB (Tan 2018 Dip-C *Science*) | CpG\u002Factivity proxy per locus; do NOT eigendecompose one sparse cell | scHi-C, ~20-50k contacts\u002Fcell |\n\n## Decision Tree by Scenario\n\n| Scenario | Recommended | Why |\n|----------|-------------|-----|\n| Matrix not yet balanced | `cooler balance` first (-> matrix-operations) | unbalanced -> O\u002FE is all-NaN; meaningless eigenvector |\n| Standard A\u002FB call, one map | `eigs_cis` per arm at 100kb-1Mb, phase by GC | compartments are chromosome-scale; arms remove the centromere gradient |\n| E1 looks monotonic \u002F no sign flips | inspect E2\u002FE3, pick by max |corr| with GC; or split by arm | E1 captured an arm\u002Ftranslocation gradient, not compartments |\n| Sign of A\u002FB seems inverted | confirm `phasing_track` is at the cooler's binning | weak\u002Fmismatched phasing flips A\u003C->B silently |\n| Want compartment STRENGTH | `saddle` + `saddle_strength`, fixed extent across samples | a single eigenvector does not quantify strength |\n| Want 5-6 subcompartments | SNIPER or Calder, NOT more eigenvectors | subcompartments need inter-chr ML or hierarchical clustering, not `n_eigs` |\n| Two+ conditions, compartment shift | -> hic-differential (dcHiC) | replicate-aware, sign-coherent across the cohort; hand-diffing eigenvectors flips signs |\n| Single-cell Hi-C | scA\u002FB (Dip-C), not a per-cell eigenvector | one sparse cell is too noisy to eigendecompose |\n| Annotate switched bins with marks | -> chip-seq\u002Fchromatin-state-segmentation, chip-seq\u002Fpeak-annotation | overlay ChromHMM\u002Fhistone state on compartment calls |\n| Render the eigenvector\u002Fsaddle | -> hic-visualization; export bigWig -> genome-intervals\u002Fbigwig-tracks | track\u002Fheatmap conventions live there |\n\n## Per-Arm Eigenvector with GC Phasing\n\n**Goal:** Assign each genomic bin to the active (A) or inactive (B) compartment with a non-arbitrary sign, avoiding the centromere arm-gradient artifact.\n\n**Approach:** Build a per-arm `view_df` (split at centromeres) so the arm gradient never enters the matrix; compute a GC-content phasing track at the cooler's exact binning; run `eigs_cis` with the GC track and `sort_metric='pearsonr'` so eigenvectors are ordered by GC correlation; then take the GC-correlated eigenvector as the compartment track.\n\n```python\nimport cooler\nimport cooltools\nimport bioframe\n\nclr = cooler.Cooler('matrix.mcool::\u002Fresolutions\u002F100000')   # 100kb: compartments are coarse-scale\nchromsizes = clr.chromsizes\ncens = bioframe.fetch_centromeres('hg38')\narms = bioframe.make_chromarms(chromsizes, cens)            # per-arm view removes the centromere gradient\narms = arms[arms.chrom.isin(clr.chromnames)].reset_index(drop=True)\n\ngenome = bioframe.load_fasta('hg38.fa')                     # FASTA index (.fai) must exist\nbins = clr.bins()[:][['chrom', 'start', 'end']]\ngc = bioframe.frac_gc(bins, genome)                         # phasing track at the cooler's exact binning\n\neigvals, eigvecs = cooltools.eigs_cis(clr, gc, view_df=arms, n_eigs=3, sort_metric='pearsonr')\neigvecs['compartment'] = ['A' if e > 0 else 'B' for e in eigvecs['E1']]   # GC-phased: positive E1 = A\n```\n\nAfter phasing, sanity-check that `E1` correlates with `gc['GC']` (sign and magnitude). If the strongest correlation is in `E2`\u002F`E3`, that component -- not `E1` -- is the compartment track; re-derive the call from it.\n\n## Compartment Strength via Saddle Plot\n\n**Goal:** Quantify how strongly the genome demixes into A and B with a single comparable number across conditions.\n\n**Approach:** Compute the distance-decay expected; pass the cooler, the expected, and the *phased* E1 eigenvector to `saddle`, which digitizes E1 into quantile groups internally (via `qrange`) and aggregates O\u002FE into a 2D table of same-vs-cross-compartment interactions; then read `saddle_strength` (the (AA+BB)\u002F(AB+BA) corner ratio) at one fixed extent, applied identically to every sample compared.\n\n```python\nN_GROUPS = 38            # quantile groups for digitizing E1; ~30-50 is conventional (cooltools tutorial)\nQ_LO, Q_HI = 0.025, 0.975   # trim the extreme 2.5% tails before digitizing to resist outlier bins\n\nexpected = cooltools.expected_cis(clr, view_df=arms)        # has the 'balanced.avg' column saddle needs\ntrack = eigvecs[['chrom', 'start', 'end', 'E1']]           # the SAME phased E1 used for the A\u002FB call\ninteraction_sum, interaction_count = cooltools.saddle(\n    clr, expected, track, 'cis', n_bins=N_GROUPS, qrange=(Q_LO, Q_HI), view_df=arms\n)\nstrength = cooltools.api.saddle.saddle_strength(interaction_sum, interaction_count)   # 1D array; lives in cooltools.api.saddle, not top level\nEXTENT = N_GROUPS \u002F\u002F 5   # read strength at the top\u002Fbottom ~20% of bins; pick one extent, use it everywhere\nscore = strength[EXTENT]\n```\n\n`saddle_strength` returns an ARRAY (cumulative corner ratio over increasing extent), not a scalar -- there is no canonical single number, so choose an extent and apply it identically across compared samples. Mismatched `n_bins`, resolution, `qrange`, or extent make strengths incomparable. Remember: a preserved-or-*higher* strength after cohesin\u002FNipbl\u002FRAD21 loss is the expected result.\n\n## Compare Compartments Across Conditions\n\n**Goal:** Find bins that switch A\u003C->B between two conditions without being fooled by per-sample sign flips.\n\n**Approach:** Do NOT independently phase two eigenvectors and diff them bin-by-bin -- a weak per-chromosome GC correlation can flip the sign in one sample only, manufacturing fake \"switches.\" Use dcHiC, which computes eigenvectors on quantile-normalized scores in a shared framework (sign-coherent across the cohort) and reports a multivariate significance per bin. Route this to hic-differential.\n\n```python\n# Hand-diffing is only safe when you have CONFIRMED both eigenvectors are sign-coherent (same arms phased\n# to the same GC track with strong correlation). Otherwise use dcHiC -- see hic-differential.\nimport pandas as pd\nmerged = eig1.merge(eig2, on=['chrom', 'start', 'end'], suffixes=('_1', '_2'))\nmerged['switch'] = (merged['E1_1'] > 0) != (merged['E1_2'] > 0)   # only meaningful if both are phased coherently\n```\n\n## Per-Method Failure Modes\n\n### Eigenvector captured the arm gradient\n**Trigger:** `eigs_cis` run per whole chromosome (no per-arm `view_df`) and\u002For `sort_metric=None`. **Mechanism:** the largest eigenvalue belongs to the smooth p-vs-q arm \u002F centromere gradient, not the A\u002FB checkerboard. **Symptom:** a monotonic \"compartment track\" across a chromosome with no sign flips; weak correlation of E1 with GC. **Fix:** run per chromosome arm (`bioframe.make_chromarms`); set `sort_metric='pearsonr'`; pick the eigenvector with the largest |corr| to GC.\n\n### Eigenvector sign not phased\n**Trigger:** `eigs_cis` called with `phasing_track=None`. **Mechanism:** the sign of an eigenvector is mathematically arbitrary. **Symptom:** active euchromatin lands in \"B\"; A\u002FB inverted relative to GC; per-chromosome sign inconsistency. **Fix:** pass a GC (or gene-density \u002F H3K27ac) `phasing_track` so positive E1 = A.\n\n### Phasing track at the wrong binning\n**Trigger:** GC\u002Factivity track computed at a different resolution than the cooler. **Mechanism:** cooltools aligns the track to the cooler bins; a mismatch yields garbage correlations or a silent no-op. **Symptom:** phasing has no effect, or signs are random. **Fix:** compute the track on `clr.bins()` at the exact compartment resolution.\n\n### Calling compartments at TAD\u002Floop resolution\n**Trigger:** `eigs_cis` at 5-25kb. **Mechanism:** compartments are a 100kb-1Mb feature; fine bins are sparse and dominated by TAD\u002Floop structure and noise. **Symptom:** a noisy, jagged E1 that does not correlate with GC. **Fix:** call at 100kb-1Mb (250kb common; up to 1Mb for shallow data).\n\n### Expecting subcompartments from more eigenvectors\n**Trigger:** raising `n_eigs` to \"get A1\u002FA2\u002FB1\u002FB2\u002FB3\". **Mechanism:** Rao's 6 subcompartments came from clustering inter-chromosomal patterns in a 4.9-billion-contact map, not from extra eigenvectors. **Symptom:** higher eigenvectors are noise, not finer biology. **Fix:** use SNIPER (inter-chr ML) or Calder (hierarchical); for differential use dcHiC.\n\n### Hand-diffing independently phased eigenvectors\n**Trigger:** subtracting\u002Fcomparing two per-sample eigenvectors bin-by-bin. **Mechanism:** a weak GC correlation can flip the sign in one sample only. **Symptom:** spurious \"compartment switches\" concentrated on whole chromosomes\u002Farms. **Fix:** use dcHiC (sign-coherent quantile-normalized framework) -- see hic-differential.\n\n### Saddle strengths not comparable across samples\n**Trigger:** different `n_bins`, `qrange`, resolution, or extent between compared saddles. **Mechanism:** `saddle_strength` is an extent-dependent array, not an absolute scalar. **Symptom:** strength differences that track the settings, not the biology. **Fix:** fix `n_bins`, `qrange`, resolution, and the corner extent; apply identically to all samples.\n\n## Quantitative Thresholds\n\n| Threshold | Source | Rationale |\n|-----------|--------|-----------|\n| Compartment resolution 100kb-1Mb (250kb typical) | compartment scale (Lieberman-Aiden 2009) | finer bins mix in TAD\u002Floop structure and sparsity noise; A\u002FB is chromosome-scale |\n| Run per chromosome ARM | eigenvector-selection (cooltools docs; Mirny lab) | removes the centromere\u002Farm gradient that otherwise hijacks E1 |\n| `sort_metric='pearsonr'` | cooltools default-mismatch | default sorts by eigenvalue, so the arm gradient is reported as E1; pearsonr sorts by GC correlation |\n| `n_eigs>=3` and inspect eigenvalues | eigenvector-selection | n_eigs=1 hides the arm-vs-compartment problem; which component is biology is then undeterminable |\n| `clip_percentile=99.9` (cooler `eigs_cis` default) | outlier suppression | dense `cis_eig` defaults `clip_percentile=0`; the entry points differ -- do not assume |\n| Saddle quantile groups ~30-50; trim 2.5% tails | cooltools tutorial | enough groups to resolve the saddle; tail trim resists outlier bins |\n| Saddle strength at a fixed extent (e.g. top\u002Fbottom ~20%) | saddle_strength is an array | no canonical scalar; one extent, applied identically across samples |\n| Subcompartments require deep inter-chr data | Rao 2014 (4.9B contacts) | shallow maps + extra eigenvectors give noise, not subcompartments |\n\n## Common Errors\n\n| Error \u002F symptom | Cause | Solution |\n|-----------------|-------|----------|\n| `clr.matrix(balance=True)` \u002F O\u002FE all NaN | cooler not balanced | run `cooler balance` \u002F `cooler.balance_cooler` first (-> matrix-operations) |\n| Empty \u002F wrong-resolution result on `.mcool` | bare `.mcool` passed | use `file.mcool::\u002Fresolutions\u002F\u003Cbp>` URI |\n| A\u002FB compartments inverted | eigenvector sign unphased or weak phasing | pass a GC\u002Fgene-density `phasing_track` at the cooler's binning |\n| E1 monotonic, no sign flips | whole-chromosome run captured the arm gradient | run per arm (`make_chromarms`); pick by max |corr| with GC |\n| `frac_gc` \u002F empty eigenvector on some chroms | chrom naming mismatch (`chr1` vs `1`) across cooler\u002FFASTA\u002Fcentromeres | harmonize names; subset the view to `clr.chromnames` |\n| `saddle` KeyError on `balanced.avg` | wrong\u002Fabsent expected table | pass `cooltools.expected_cis(clr, view_df=...)` output and `contact_type='cis'` |\n| `AttributeError` on a cooltools function | pre-0.7 vs 0.7+ API change | `help(cooltools.eigs_cis)`; update to the viewframe signature |\n\n## References\n\n- Lieberman-Aiden E, van Berkum NL, et al. 2009. Comprehensive mapping of long-range interactions reveals folding principles of the human genome. *Science* 326:289-293.\n- Rao SSP, Huntley MH, et al. 2014. A 3D map of the human genome at kilobase resolution reveals principles of chromatin looping. *Cell* 159:1665-1680.\n- Nora EP, Goloborodko A, et al. 2017. Targeted degradation of CTCF decouples local insulation of chromosome domains from genomic compartmentalization. *Cell* 169:930-944.\n- Schwarzer W, Abdennur N, et al. 2017. Two independent modes of chromatin organization revealed by cohesin removal. *Nature* 551:51-56.\n- Rao SSP, Huang S-C, et al. 2017. Cohesin loss eliminates all loop domains. *Cell* 171:305-320.\n- Nuebler J, Fudenberg G, Imakaev M, Abdennur N, Mirny LA. 2018. Chromatin organization by an interplay of loop extrusion and compartmental segregation. *PNAS* 115:E6697-E6706.\n- Xiong K, Ma J. 2019. Revealing Hi-C subcompartments by imputing inter-chromosomal chromatin interactions. *Nat Commun* 10:5069.\n- Tan L, Xing D, Chang C-H, Li H, Xie XS. 2018. Three-dimensional genome structures of single diploid human cells. *Science* 361(6405):924-928.\n- Liu Y, Nanni L, et al. 2021. Systematic inference and comparison of multi-scale chromatin sub-compartments connects spatial organization to cell phenotypes. *Nat Commun* 12:2439.\n- Chakraborty A, Wang JG, Ay F. 2022. dcHiC detects differential compartments across multiple Hi-C datasets. *Nat Commun* 13:6827.\n- Chen Y, Zhang Y, et al. 2018. Mapping 3D genome organization relative to nuclear compartments using TSA-Seq as a cytological ruler. *J Cell Biol* 217:4025-4048.\n- Abdennur N, et al. (Open2C). 2024. Cooltools: enabling high-resolution Hi-C analysis in Python. *PLoS Comput Biol* 20:e1012067.\n- Abdennur N, Mirny LA. 2020. Cooler: scalable storage for Hi-C data and other genomically labeled arrays. *Bioinformatics* 36:311-316.\n\n## Related Skills\n\n- matrix-operations - Balancing and distance-normalized expected that compartment calling depends on\n- hic-data-io - Load and access the cooler files this skill operates on\n- hic-differential - dcHiC differential compartments and cross-condition switching\n- tad-detection - The loop-extrusion partner of the two-mechanism framework; antagonistic strength\n- hic-visualization - Render the eigenvector track and saddle plot\n- chip-seq\u002Fchromatin-state-segmentation - Overlay ChromHMM\u002Fhistone states on A\u002FB compartments\n- chip-seq\u002Fpeak-annotation - Annotate switched bins with TF\u002Fhistone peaks\n- genome-intervals\u002Fbigwig-tracks - Export the eigenvector as a bigWig track\n- single-cell\u002Fscatac-analysis - Single-cell chromatin context for scHi-C compartment work\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\u002Fcompartment-analysis\u002FSKILL.md","cooltools","GPTomics\u002FbioSkills","main","2d1750717747097b602acf30bd09a7cbd4b4c6ea","awesome_skills\u002Fbiology\u002Fbio-hi-c-analysis-compartment-analysis","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-compartment-analysis",{"tool":42,"command":43},"bunx","bunx skills add Mr-Nobody-Anonymous\u002FAll-skills --skill bio-hi-c-analysis-compartment-analysis",{"tool":45,"command":46},"pnpm","pnpm dlx skills add Mr-Nobody-Anonymous\u002FAll-skills --skill bio-hi-c-analysis-compartment-analysis","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fbiology\u002Fbio-hi-c-analysis-compartment-analysis\u002FSKILL.md",true,[50,56],{"path":51,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":54,"sourceHtmlUrl":55},"examples\u002Fcall_compartments.py","SCRIPT","脚本",3063,"https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fbiology\u002Fbio-hi-c-analysis-compartment-analysis\u002Fexamples\u002Fcall_compartments.py",{"path":57,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":60,"sourceHtmlUrl":61},"usage-guide.md","REFERENCE","参考文档",5153,"https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fbiology\u002Fbio-hi-c-analysis-compartment-analysis\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",[],[]]