uchrom.strc.enrichment¶
Structural feature enrichment helpers for ChromData.
This module wraps existing structure callers and projects their interval
outputs back onto the spot axis. It is deliberately independent of
uchrom.auto_discovery so browser, plotting, notebooks, and discovery can
share the same structural feature layer.
- uchrom.strc.enrichment.add_structural_features(cdata, *, tads: DataFrame | None = None, loops: DataFrame | None = None, compartments: DataFrame | None = None, tads_key: str = 'tads', loops_key: str = 'loops', compartments_key: str = 'compartments', prefix: str = 'strc', result_key: str = 'bin_features', project: bool = True, store: bool = True, overwrite: bool = False) DataFrame[source]¶
Project TAD/loop/compartment outputs into
cdata.tracks.
- uchrom.strc.enrichment.call_compartments_multi(cdata, *, chroms: Sequence[str] | None = None, params=None, device: str = 'auto', result_key: str = 'compartments', store: bool = True, verbose: bool = False) DataFrame[source]¶
Call compartments on multiple chromosomes and store one merged table.
- uchrom.strc.enrichment.call_loops_multi(cdata, *, chroms: Sequence[str] | None = None, params=None, device: str = 'auto', result_key: str = 'loops', store: bool = True, verbose: bool = False) DataFrame[source]¶
Call loops on multiple chromosomes and optionally store one merged table.
- uchrom.strc.enrichment.call_structures_multi(cdata, *, structures: Sequence[str] = ('tads', 'loops', 'compartments'), chroms: Sequence[str] | None = None, device: str = 'auto', store: bool = True, verbose: bool = False) dict[str, DataFrame][source]¶
Run selected structural callers on multiple chromosomes.