Usage

ChromBERT-tools can be used in two ways:

  • Command-line interface (CLI) — run commands from a terminal using chrombert-tools <command>.

  • Python API — call the same core functions directly from Python using import chrombert_tools.

Most users can start with the CLI. The Python API is useful for customized workflows, notebooks, or integration into existing pipelines.

For runnable examples, see the example notebooks:

Quick start

List all available commands:

chrombert-tools --help

Get help for a specific command:

chrombert-tools <command> --help

Run the example notebooks with GPU support inside the Apptainer image:

cd ChromBERT-tools/examples/
apptainer exec --nv /path/to/chrombert-tools.sif jupyter-notebook

Command reference

ChromBERT-tools commands are organized into three functional layers and a set of end-to-end application workflows. Each command can be used from the CLI as chrombert-tools <command> or called through the Python API.

Representation generation

Generate context-specific regulatory representations for genomic regions or regulators.

Command

Description

embed_region

Generate embeddings for specified genomic regions or promoter-centered gene regions.

embed_regulator

Generate regulator embeddings for specified regulators across specified genomic regions.

Predictive modeling

Build supervised models on top of ChromBERT-derived representations for region- or gene-level prediction tasks.

Command

Description

region_function_classification

Classify genomic regions into functional classes.

region_activity_regression

Predict quantitative region activity, such as chromatin accessibility or activity fold change.

gene_activity_regression

Predict gene expression or expression fold change from TSS-centered regulatory context.

Regulatory interpretation

Interpret context-specific regulatory representations to infer relationships among regions, regulators, or region groups.

Command

Description

interpret_region_region_interactions

Identify functionally similar genomic regions.

interpret_regulator_regulator_interactions

Identify potentially cooperative regulators.

interpret_regulator_effects_between_region_groups

Compare regulator effects between two groups of genomic regions.

Integrated workflow

ChromBERT-tools also provides an integrated workflow for inferring cell-type-specific enhancer–promoter interactions. This workflow combines region representation generation, cell-type-specific predictive modeling, and region–region interpretation into a single analysis pipeline.

Tutorial notebook:

End-to-end application commands

Run integrated workflows for common biological analysis tasks.

Command

Description

predict_cell_type_master_regulators

Infer cell-type-specific key regulators.

predict_transition_driver_regulators

Identify driver regulators during cell-state transitions.

predict_regulator_context_cofactors

Identify context-specific cofactors for a target regulator.

predict_tf_binding_regions

Predict TF-binding regions in a target cellular context.

Tutorials

Each command page includes a Tutorials section with links to the matching CLI and / or Python API notebook in the examples/ directory.

You can also browse the example notebooks directly on GitHub:

The following tutorial is not tied to a single command:

Next steps

  • Open a command page to view its full options, required inputs, outputs, tips, and tutorials.