Agent skill

Bio Hi C Analysis Compartment Analysis

by GPTomics in GPTomics/bioSkills

Detects A/B chromatin compartments from balanced Hi-C contact matrices via eigenvector decomposition of the distance-normalized, Pearson-correlated cis matrix with cooltools (eigscis), then orients…

MITAuto-check passed

Install Bio Hi C Analysis Compartment Analysis

skills CLI
$ npx skills add GPTomics/bioSkills --skill bio-hi-c-analysis-compartment-analysis -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install GPTomics/bioSkills bio-hi-c-analysis-compartment-analysis --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/GPTomics/bioSkills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/hi-c-analysis/compartment-analysis .claude/skills/bio-hi-c-analysis-compartment-analysis && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
bio-hi-c-analysis-compartment-analysis
GitHub stars
1.2k
Used in
1 other repo
Token cost
~5.2k tokens
SKILL.md length
2,207 words
Files
3
Skills in repo
559
Repo updated
First seen
Licence
MIT

At a glance

Detects A/B chromatin compartments from balanced Hi-C contact matrices via eigenvector decomposition of the distance-normalized, Pearson-correlated cis matrix with cooltools (eigscis), then orients…

  • Works in 3 steps: E1 is not guaranteed to be the… → The sign is arbitrary until phased.… → Compartments are an equilibrium…
  • Calling A/B compartments
  • SKILL.md covers Version Compatibility, The Single Most Important…, Method / Output Taxonomy and Decision Tree by Scenario, plus 8 more sections
  • Runs Python scripts from its folder; calls pip

What it does

Bio Hi C Analysis Compartment Analysis is an agent skill from GPTomics/bioSkills. Detects A/B chromatin compartments from balanced Hi-C contact matrices via eigenvector decomposition of the distance-normalized, Pearson-correlated cis matrix with cooltools (eigscis), 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 viewdf to remove the centromere gradient; picking the eigenvector by max correlation with activity, not by eigenvalue), GC phasing with bioframe.fracgc…

Its SKILL.md is about 5.2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 3 other files (for example `examples/call_compartments.py` and `usage-guide.md`).

The repository describes itself as: a set of SKILLS.md for doing bioinformatics with agents like claude code. The licence is MIT.

When your agent uses it

  • Calling A/B compartments
  • Computing E1/eigenvectors
  • Phasing the eigenvector
  • Building saddle plots

Example prompts

  • “Use the bio-hi-c-analysis-compartment-analysis skill to detect A/B chromatin compartments from balanced Hi-C contact matrices via eigenvector…”
  • “/bio-hi-c-analysis-compartment-analysis”

Requirements

  • Python 3

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  1. E1 is not guaranteed to be the compartment track. On a whole-chromosome O/E correlation matrix the largest eigenvalue very often belongs…
  2. The sign is arbitrary until phased. Eigenvectors are defined up to sign; the positive lobe is meaningless and can differ per chromosome…
  3. Compartments are an equilibrium phenomenon decoupled from TADs/loops. Compartments = microphase separation of A/B chromatin states…

What it can do on your machine

Read from SKILL.md and the folder at commit d91ed3d. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships script files (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • pip

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use pip, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Bio Hi C Analysis Compartment Analysis loads about 5.2k tokens when it runs. Until then it costs about 255 tokens; SKILL.md has 2,207 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~255
When it runs · the whole SKILL.md, loaded when a task matches
~5.2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from GPTomics/bioSkills at commit d91ed3d, republished under its MIT licence (© GPTomics). 2,207 words, ~5,215 tokens.

Download SKILL.mdSave it as .claude/skills/bio-hi-c-analysis-compartment-analysis/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.
name
bio-hi-c-analysis-compartment-analysis
description
Detects A/B 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/Calder/dcHiC), and cross-condition compartment switching. Use when calling A/B compartments, computing E1/eigenvectors, phasing the eigenvector, building saddle plots, choosing a compartment resolution, quantifying compartment strength, or comparing compartmentalization across conditions.
tool_type
python
primary_tool
cooltools

Version Compatibility

Reference examples tested with: cooler 0.10+, cooltools 0.7+, bioframe 0.7+

Before using code patterns, verify installed versions match. If versions differ:

  • Python: pip show <package> then help(module.function) to check signatures

cooltools had a major API shift around 0.5 -> 0.7+ (functions standardized on view_df/viewframe 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::/resolutions/100000), 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.

A/B Compartment Analysis

"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/gene density so positive = A (active) -- but verify the kept eigenvector is the compartment one, not an arm gradient.

  • Python: cooltools.eigs_cis(clr, gc_track, view_df=arms, n_eigs=3, sort_metric='pearsonr')

The Single Most Important Modern Insight -- E1 Is a Choice, Not an Output, and Its Sign Is Arbitrary Until Phased

The 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.

  1. E1 is not guaranteed to be the compartment track. On a whole-chromosome O/E 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/B 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.

  2. 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/weak phasing flips A<->B silently, and every downstream saddle, switch call, and differential result inverts with no error. This is a classic source of irreproducible compartment papers.

  3. Compartments are an equilibrium phenomenon decoupled from TADs/loops. Compartments = microphase separation of A/B chromatin states (cohesin-independent; survive cohesin loss, Schwarzer 2017 Nature 551:51, and CTCF loss, Nora 2017 Cell 169:930). TADs/loops = 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/Nipbl/RAD21 perturbation is the EXPECTED result, not a bug; compartment-strength and TAD-strength are antagonistic. If a CTCF/cohesin perturbation makes compartments vanish, suspect a phasing artifact, not biology.

Method / Output Taxonomy

OutputTool / callWhat it isWhen
A/B eigenvector (E1)cooltools.eigs_cis (cis, per-arm)leading GC-phased eigenvector of the cis O/E correlation matrix; sign = A/Bstandard A/B call, single map, per chromosome arm
Genome-wide A/Bcooltools.eigs_transeigenvector of inter-chromosomal blocks; immune to the cis arm-gradientwhole-genome A/B consensus with deep trans coverage
Compartment strengthcooltools.saddle + saddle_strength(AA+BB)/(AB+BA) corner ratio of the saddlecomparing compartmentalization across conditions
5-6 subcompartmentsSNIPER (Xiong & Ma 2019 Nat Commun 10:5069)autoencoder imputes inter-chr contacts -> MLP classifies A1/A2/B1/B2/B3 at 100kbdeep inter-chr data; Rao-style subcompartments
Continuous compartment rankCalder (Liu 2021 Nat Commun 12:2439)intra-chr divisive hierarchical clustering -> 0-1 multi-scale rankcross-cell-line repositioning; modest coverage
Differential compartmentsdcHiC (Chakraborty 2022 Nat Commun 13:6827)quantile-normalized scores + multivariate Mahalanobis distance + significance; solves cross-sample sign flips>=2 samples, "which bins switch A<->B"
Single-cell compartmentscA/B (Tan 2018 Dip-C Science)CpG/activity proxy per locus; do NOT eigendecompose one sparse cellscHi-C, ~20-50k contacts/cell

Decision Tree by Scenario

ScenarioRecommendedWhy
Matrix not yet balancedcooler balance first (-> matrix-operations)unbalanced -> O/E is all-NaN; meaningless eigenvector
Standard A/B call, one mapeigs_cis per arm at 100kb-1Mb, phase by GCcompartments are chromosome-scale; arms remove the centromere gradient
E1 looks monotonic / no sign flipsinspect E2/E3, pick by maxcorr
Sign of A/B seems invertedconfirm phasing_track is at the cooler's binningweak/mismatched phasing flips A<->B silently
Want compartment STRENGTHsaddle + saddle_strength, fixed extent across samplesa single eigenvector does not quantify strength
Want 5-6 subcompartmentsSNIPER or Calder, NOT more eigenvectorssubcompartments need inter-chr ML or hierarchical clustering, not n_eigs
Two+ conditions, compartment shift-> hic-differential (dcHiC)replicate-aware, sign-coherent across the cohort; hand-diffing eigenvectors flips signs
Single-cell Hi-CscA/B (Dip-C), not a per-cell eigenvectorone sparse cell is too noisy to eigendecompose
Annotate switched bins with marks-> chip-seq/chromatin-state-segmentation, chip-seq/peak-annotationoverlay ChromHMM/histone state on compartment calls
Render the eigenvector/saddle-> hic-visualization; export bigWig -> genome-intervals/bigwig-trackstrack/heatmap conventions live there

Per-Arm Eigenvector with GC Phasing

Goal: Assign each genomic bin to the active (A) or inactive (B) compartment with a non-arbitrary sign, avoiding the centromere arm-gradient artifact.

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.

python
import cooler
import cooltools
import bioframe

clr = cooler.Cooler('matrix.mcool::/resolutions/100000')   # 100kb: compartments are coarse-scale
chromsizes = clr.chromsizes
cens = bioframe.fetch_centromeres('hg38')
arms = bioframe.make_chromarms(chromsizes, cens)            # per-arm view removes the centromere gradient
arms = arms[arms.chrom.isin(clr.chromnames)].reset_index(drop=True)

genome = bioframe.load_fasta('hg38.fa')                     # FASTA index (.fai) must exist
bins = clr.bins()[:][['chrom', 'start', 'end']]
gc = bioframe.frac_gc(bins, genome)                         # phasing track at the cooler's exact binning

eigvals, eigvecs = cooltools.eigs_cis(clr, gc, view_df=arms, n_eigs=3, sort_metric='pearsonr')
eigvecs['compartment'] = ['A' if e > 0 else 'B' for e in eigvecs['E1']]   # GC-phased: positive E1 = A

After phasing, sanity-check that E1 correlates with gc['GC'] (sign and magnitude). If the strongest correlation is in E2/E3, that component -- not E1 -- is the compartment track; re-derive the call from it.

Compartment Strength via Saddle Plot

Goal: Quantify how strongly the genome demixes into A and B with a single comparable number across conditions.

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/E into a 2D table of same-vs-cross-compartment interactions; then read saddle_strength (the (AA+BB)/(AB+BA) corner ratio) at one fixed extent, applied identically to every sample compared.

python
N_GROUPS = 38            # quantile groups for digitizing E1; ~30-50 is conventional (cooltools tutorial)
Q_LO, Q_HI = 0.025, 0.975   # trim the extreme 2.5% tails before digitizing to resist outlier bins

expected = cooltools.expected_cis(clr, view_df=arms)        # has the 'balanced.avg' column saddle needs
track = eigvecs[['chrom', 'start', 'end', 'E1']]           # the SAME phased E1 used for the A/B call
interaction_sum, interaction_count = cooltools.saddle(
    clr, expected, track, 'cis', n_bins=N_GROUPS, qrange=(Q_LO, Q_HI), view_df=arms
)
strength = cooltools.api.saddle.saddle_strength(interaction_sum, interaction_count)   # 1D array; lives in cooltools.api.saddle, not top level
EXTENT = N_GROUPS // 5   # read strength at the top/bottom ~20% of bins; pick one extent, use it everywhere
score = strength[EXTENT]

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/Nipbl/RAD21 loss is the expected result.

Compare Compartments Across Conditions

Goal: Find bins that switch A<->B between two conditions without being fooled by per-sample sign flips.

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.

python
# Hand-diffing is only safe when you have CONFIRMED both eigenvectors are sign-coherent (same arms phased
# to the same GC track with strong correlation). Otherwise use dcHiC -- see hic-differential.
import pandas as pd
merged = eig1.merge(eig2, on=['chrom', 'start', 'end'], suffixes=('_1', '_2'))
merged['switch'] = (merged['E1_1'] > 0) != (merged['E1_2'] > 0)   # only meaningful if both are phased coherently

Per-Method Failure Modes

Eigenvector captured the arm gradient

Trigger: eigs_cis run per whole chromosome (no per-arm view_df) and/or sort_metric=None. Mechanism: the largest eigenvalue belongs to the smooth p-vs-q arm / centromere gradient, not the A/B 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.

Show full SKILL.md (903 more words)Show less
Eigenvector sign not phased

Trigger: eigs_cis called with phasing_track=None. Mechanism: the sign of an eigenvector is mathematically arbitrary. Symptom: active euchromatin lands in "B"; A/B inverted relative to GC; per-chromosome sign inconsistency. Fix: pass a GC (or gene-density / H3K27ac) phasing_track so positive E1 = A.

Phasing track at the wrong binning

Trigger: GC/activity 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.

Calling compartments at TAD/loop resolution

Trigger: eigs_cis at 5-25kb. Mechanism: compartments are a 100kb-1Mb feature; fine bins are sparse and dominated by TAD/loop 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).

Expecting subcompartments from more eigenvectors

Trigger: raising n_eigs to "get A1/A2/B1/B2/B3". 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.

Hand-diffing independently phased eigenvectors

Trigger: subtracting/comparing 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/arms. Fix: use dcHiC (sign-coherent quantile-normalized framework) -- see hic-differential.

Saddle strengths not comparable across samples

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.

Quantitative Thresholds

ThresholdSourceRationale
Compartment resolution 100kb-1Mb (250kb typical)compartment scale (Lieberman-Aiden 2009)finer bins mix in TAD/loop structure and sparsity noise; A/B is chromosome-scale
Run per chromosome ARMeigenvector-selection (cooltools docs; Mirny lab)removes the centromere/arm gradient that otherwise hijacks E1
sort_metric='pearsonr'cooltools default-mismatchdefault sorts by eigenvalue, so the arm gradient is reported as E1; pearsonr sorts by GC correlation
n_eigs>=3 and inspect eigenvalueseigenvector-selectionn_eigs=1 hides the arm-vs-compartment problem; which component is biology is then undeterminable
clip_percentile=99.9 (cooler eigs_cis default)outlier suppressiondense cis_eig defaults clip_percentile=0; the entry points differ -- do not assume
Saddle quantile groups ~30-50; trim 2.5% tailscooltools tutorialenough groups to resolve the saddle; tail trim resists outlier bins
Saddle strength at a fixed extent (e.g. top/bottom ~20%)saddle_strength is an arrayno canonical scalar; one extent, applied identically across samples
Subcompartments require deep inter-chr dataRao 2014 (4.9B contacts)shallow maps + extra eigenvectors give noise, not subcompartments

Common Errors

Error / symptomCauseSolution
clr.matrix(balance=True) / O/E all NaNcooler not balancedrun cooler balance / cooler.balance_cooler first (-> matrix-operations)
Empty / wrong-resolution result on .mcoolbare .mcool passeduse file.mcool::/resolutions/<bp> URI
A/B compartments invertedeigenvector sign unphased or weak phasingpass a GC/gene-density phasing_track at the cooler's binning
E1 monotonic, no sign flipswhole-chromosome run captured the arm gradientrun per arm (make_chromarms); pick by max
frac_gc / empty eigenvector on some chromschrom naming mismatch (chr1 vs 1) across cooler/FASTA/centromeresharmonize names; subset the view to clr.chromnames
saddle KeyError on balanced.avgwrong/absent expected tablepass cooltools.expected_cis(clr, view_df=...) output and contact_type='cis'
AttributeError on a cooltools functionpre-0.7 vs 0.7+ API changehelp(cooltools.eigs_cis); update to the viewframe signature

References

  • 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.
  • 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.
  • Nora EP, Goloborodko A, et al. 2017. Targeted degradation of CTCF decouples local insulation of chromosome domains from genomic compartmentalization. Cell 169:930-944.
  • Schwarzer W, Abdennur N, et al. 2017. Two independent modes of chromatin organization revealed by cohesin removal. Nature 551:51-56.
  • Rao SSP, Huang S-C, et al. 2017. Cohesin loss eliminates all loop domains. Cell 171:305-320.
  • 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.
  • Xiong K, Ma J. 2019. Revealing Hi-C subcompartments by imputing inter-chromosomal chromatin interactions. Nat Commun 10:5069.
  • 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.
  • 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.
  • Chakraborty A, Wang JG, Ay F. 2022. dcHiC detects differential compartments across multiple Hi-C datasets. Nat Commun 13:6827.
  • 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.
  • Abdennur N, et al. (Open2C). 2024. Cooltools: enabling high-resolution Hi-C analysis in Python. PLoS Comput Biol 20:e1012067.
  • Abdennur N, Mirny LA. 2020. Cooler: scalable storage for Hi-C data and other genomically labeled arrays. Bioinformatics 36:311-316.
  • matrix-operations - Balancing and distance-normalized expected that compartment calling depends on
  • hic-data-io - Load and access the cooler files this skill operates on
  • hic-differential - dcHiC differential compartments and cross-condition switching
  • tad-detection - The loop-extrusion partner of the two-mechanism framework; antagonistic strength
  • hic-visualization - Render the eigenvector track and saddle plot
  • chip-seq/chromatin-state-segmentation - Overlay ChromHMM/histone states on A/B compartments
  • chip-seq/peak-annotation - Annotate switched bins with TF/histone peaks
  • genome-intervals/bigwig-tracks - Export the eigenvector as a bigWig track
  • single-cell/scatac-analysis - Single-cell chromatin context for scHi-C compartment work

© GPTomics, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 2 other files in hi-c-analysis/compartment-analysis of GPTomics/bioSkills.

  • SKILL.md
  • examples/call_compartments.py
  • usage-guide.md

Open the folder on GitHubat commit d91ed3d

Used in 1 other repository

We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in GPTomics/bioSkills, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Bio Hi C Analysis Compartment Analysis next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Bio Hi C Analysis Compartment Analysis compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Bio Hi C Analysis Compartment Analysis this skillGPTomics/bioSkills1.2k1 repos~5.2kAutomated safety check: PassMIT
Bio Hi C Analysis Compartment AnalysisFreedomIntelligence/OpenClaw-Medical-Skills3.1k1 repos~2kAutomated safety check: PassNone
Bio Metagenomics Amr DetectionFreedomIntelligence/OpenClaw-Medical-Skills3.1k1 repos~1.8kAutomated safety check: PassNone
Bio Methylation Dmr DetectionFreedomIntelligence/OpenClaw-Medical-Skills3.1k1 repos~1.5kAutomated safety check: PassNone
Bio Methylation Based DetectionFreedomIntelligence/OpenClaw-Medical-Skills3.1k1 repos~1.7kAutomated safety check: PassNone
Bio Ctdna Mutation DetectionFreedomIntelligence/OpenClaw-Medical-Skills3.1k1 repos~1.7kAutomated safety check: PassNone

Similar skills

  • Bio Hi C Analysis Compartment Analysis

    FreedomIntelligence/OpenClaw-Medical-Skills

    Detect A/B compartments from Hi-C data using cooltools and eigenvector decomposition.

    3.1k GitHub starsUsed in 1 repo~2k tokens
    Research & ScienceAuto-check passed
  • Bio Metagenomics Amr Detection

    FreedomIntelligence/OpenClaw-Medical-Skills

    Detect antimicrobial resistance genes using AMRFinderPlus, ResFinder, and CARD.

    3.1k GitHub starsUsed in 1 repo~1.8k tokens
    Research & ScienceAuto-check passed
  • Bio Methylation Dmr Detection

    FreedomIntelligence/OpenClaw-Medical-Skills

    Differentially methylated region (DMR) detection using methylKit tiles, bsseq BSmooth, and DMRcate.

    3.1k GitHub starsUsed in 1 repo~1.5k tokens
    Research & ScienceAuto-check passed
  • Bio Methylation Based Detection

    FreedomIntelligence/OpenClaw-Medical-Skills

    Analyzes cfDNA methylation patterns for cancer detection using cfMeDIP-seq or bisulfite sequencing with MethylDackel.

    3.1k GitHub starsUsed in 1 repo~1.7k tokens
    Auto-check passed
  • Bio Ctdna Mutation Detection

    FreedomIntelligence/OpenClaw-Medical-Skills

    Detects somatic mutations in circulating tumor DNA using variant callers optimized for low allele fractions with UMI-based error suppression.

    3.1k GitHub starsUsed in 1 repo~1.7k tokens
    Research & ScienceAuto-check passed
  • Bio Flow Cytometry Doublet Detection

    FreedomIntelligence/OpenClaw-Medical-Skills

    Detect and remove doublets from flow and mass cytometry data.

    3.1k GitHub starsUsed in 1 repo~2k tokens
    Auto-check passed

More from GPTomics/bioSkills

All 559 skills in this repo
  • Bio Alignment Io

    GPTomics/bioSkills

    Read, write, and convert multiple sequence alignment files using Biopython Bio.AlignIO.

    1.2k GitHub starsUsed in 3 repos~4.9k tokens
    Auto-check passed
  • bioSkills Installer

    GPTomics/bioSkills

    Installs the bioSkills collection of 425 bioinformatics skills in one step, or only chosen categories, so sequencing, RNA-seq, single-cell and variant tasks get specialized help.

    1.2k GitHub starsUsed in 1 repo~789 tokens
    Auto-check passed
  • Bio Write Sequences

    GPTomics/bioSkills

    Write biological sequences to files (FASTA, FASTQ, GenBank, EMBL) using Biopython Bio.SeqIO.

    1.2k GitHub starsUsed in 3 repos~2.1k tokens
    Auto-check passed
  • Amplicon Primer Clipping

    GPTomics/bioSkills

    Soft- or hard-clips PCR primer footprints from aligned amplicon BAMs so primer bases stop masquerading as confirmed reference sequence.

    1.2k GitHub starsUsed in 2 repos~2.2k tokens
    Auto-check passed
  • Filters BAM alignments by FLAG bits, mapping quality and regions with samtools view or pysam, with recipes for common keep and drop cases.

    1.2k GitHub starsUsed in 2 repos~3.6k tokens
    Auto-check passed
  • Bio Alignment Indexing

    GPTomics/bioSkills

    Create and use BAI/CSI indices for BAM/CRAM files using samtools and pysam.

    1.2k GitHub starsUsed in 2 repos~2.4k tokens
    Auto-check passed

Questions about Bio Hi C Analysis Compartment Analysis

What does Bio Hi C Analysis Compartment Analysis do?

Detects A/B chromatin compartments from balanced Hi-C contact matrices via eigenvector decomposition of the distance-normalized, Pearson-correlated cis matrix with cooltools (eigscis), then orients…. Bio Hi C Analysis Compartment Analysis is an agent skill from GPTomics/bioSkills. Detects A/B chromatin compartments from balanced Hi-C contact matrices via eigenvector decomposition of the distance-normalized, Pearson-correlated cis matrix with cooltools (eigscis), then orients (phases) the compartment eigenvector against a GC or gene-density track so the active (A) sign is not arbitrary.

When should I use Bio Hi C Analysis Compartment Analysis?

Bio Hi C Analysis Compartment Analysis fits situations like: calling A/B compartments; computing E1/eigenvectors; phasing the eigenvector; building saddle plots.

How do I install Bio Hi C Analysis Compartment Analysis in Claude Code?

Run `npx skills add GPTomics/bioSkills --skill bio-hi-c-analysis-compartment-analysis -a claude-code`. Or copy the skill folder (hi-c-analysis/compartment-analysis in GPTomics/bioSkills) into .claude/skills/bio-hi-c-analysis-compartment-analysis in your project. Claude Code loads it when a task matches its description.

How do I install Bio Hi C Analysis Compartment Analysis in Codex?

Run `npx skills add GPTomics/bioSkills --skill bio-hi-c-analysis-compartment-analysis -a codex`. Or copy the skill folder (hi-c-analysis/compartment-analysis in GPTomics/bioSkills) into .agents/skills/bio-hi-c-analysis-compartment-analysis in your project. Codex loads it when a task matches its description.

Can I use Bio Hi C Analysis Compartment Analysis in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add GPTomics/bioSkills --skill bio-hi-c-analysis-compartment-analysis -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/bio-hi-c-analysis-compartment-analysis, .gemini/skills/bio-hi-c-analysis-compartment-analysis, .github/skills/bio-hi-c-analysis-compartment-analysis and .opencode/skills/bio-hi-c-analysis-compartment-analysis in your project.

What does Bio Hi C Analysis Compartment Analysis need to run?

Going by SKILL.md and its folder, Bio Hi C Analysis Compartment Analysis needs Python for the scripts in its folder and the command-line tools its instructions call (pip). Our summary lists: Python 3.

Does Bio Hi C Analysis Compartment Analysis access the network?

SKILL.md contains no URLs. Its commands use pip, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Bio Hi C Analysis Compartment Analysis safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Bio Hi C Analysis Compartment Analysis use?

Bio Hi C Analysis Compartment Analysis is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Bio Hi C Analysis Compartment Analysis use?

About 5.2k tokens (SKILL.md is roughly 21k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Bio Hi C Analysis Compartment Analysis?

Skills that share tags, products or a category with Bio Hi C Analysis Compartment Analysis: Bio Hi C Analysis Compartment Analysis (FreedomIntelligence/OpenClaw-Medical-Skills, 3.1k stars), Bio Metagenomics Amr Detection (FreedomIntelligence/OpenClaw-Medical-Skills, 3.1k stars), Bio Methylation Dmr Detection (FreedomIntelligence/OpenClaw-Medical-Skills, 3.1k stars) and Bio Methylation Based Detection (FreedomIntelligence/OpenClaw-Medical-Skills, 3.1k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Bio Hi C Analysis Compartment Analysis?

GPTomics (a GitHub organization) maintains it in GPTomics/bioSkills, which has 1,218 GitHub stars. The repository holds 559 skills in this directory. The repository was last updated on August 15, 2026.

Source: GPTomics/bioSkills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.