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:
CLI examples: https://github.com/TongjiZhanglab/ChromBERT-tools/tree/main/examples/cli
Python API examples: https://github.com/TongjiZhanglab/ChromBERT-tools/tree/main/examples/api
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 |
|---|---|
Generate embeddings for specified genomic regions or promoter-centered gene regions. |
|
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 |
|---|---|
Classify genomic regions into functional classes. |
|
Predict quantitative region activity, such as chromatin accessibility or activity fold change. |
|
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 |
|---|---|
Identify functionally similar genomic regions. |
|
Identify potentially cooperative regulators. |
|
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 |
|---|---|
Infer cell-type-specific key regulators. |
|
Identify driver regulators during cell-state transitions. |
|
Identify context-specific cofactors for a target regulator. |
|
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:
CLI examples: https://github.com/TongjiZhanglab/ChromBERT-tools/tree/main/examples/cli
Python API examples: https://github.com/TongjiZhanglab/ChromBERT-tools/tree/main/examples/api
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.