Install GCEN2
GCEN2 is distributed on PyPI with pre-built wheels, on Bioconda and as source code, for Linux, Windows and macOS on Apple Silicon, with Python 3.9 to 3.14.
Platforms
| Method | Linux (x86‑64) | Windows (x86‑64) | macOS (Apple Silicon) |
|---|---|---|---|
| PyPI (pre-built wheels) | ✓ | ✓ | ✓ |
| Bioconda | ✓ | — | ✓ |
| Source code | ✓ | ✓ | ✓ |
— Bioconda does not build for Windows.
From PyPI
Pre-built wheels for the three platforms; no compiler needed.
$ pip install "gcen2[all]"
From Bioconda
On Linux and macOS. Bioconda does not build packages for Windows; use pip there.
$ conda install -c conda-forge -c bioconda gcen2
From the source code
Needs a C++17 compiler and CMake (pip fetches CMake if it is missing): GCC or Clang on Linux, Xcode command-line tools on macOS, Visual Studio Build Tools on Windows.
$ git clone https://github.com/wen-chen/GCEN2
$ cd GCEN2
$ pip install ".[all]"
Optional parts
The core package has the network, module and function analyses. The extras add the rest; all installs everything.
| Extra | Adds | Packages |
|---|---|---|
gcen2[single-cell] | single-cell and spatial analyses, .h5ad files | anndata, scanpy |
gcen2[visualization] | figures (gcen2 plot) and interactive network views | matplotlib, seaborn, pyvis, networkx |
gcen2[report] | HTML and PDF reports (gcen2 report) | Jinja2, weasyprint |
gcen2[all] | everything above | the four extras |
Check the installation
$ gcen2 --help
$ python -c "import gcen2; print(gcen2.__version__)"
Example data
The repository has example data for every tutorial in data/example/:
- bulk/ — the GCEN sample data (expression matrix, GO and KEGG annotation, gene lists);
- single_cell/ — 1,800 cells of three cell types from the 10x PBMC 10k data set (
.h5ad); - spatial/ — a 10x Visium section of the mouse brain, 2,695 spots and 2,000 genes (
.h5ad).
GO and KEGG annotation
GO annotations for most model organisms are available from the Gene Ontology Consortium, and go-basic.obo with them. KEGG annotations of protein-coding genes can be obtained with KAAS; InterProScan gives both for proteins. The GCEN download page provides annotation files for human, mouse and zebrafish and the KEGG information file K2ko.tsv; GCEN2 reads them unchanged.