Skip to content

Frequently asked questions

GCEN2 is a toolkit for gene co-expression network analysis: a command-line program, gcen2, and a Python package, with C++ kernels for speed. It covers bulk transcriptomes, single cells, spatial transcriptomes, trajectories and multi-omics networks, and makes publication figures and reports.

GCEN2 is the successor of GCEN. It keeps every GCEN command and file format, with the same results, and adds WGCNA and hdWGCNA module analysis, single-cell and spatial workflows, differential co-expression, trajectory and multi-omics networks, figures and reports. GCEN was a set of C++ programs; GCEN2 is one Python package with the same C++ speed where it matters.

Yes, with the gcen2 prefix: network_build becomes gcen2 build, module_identify becomes gcen2 module, and so on, with the same options and output files. The migration guide maps every command, including the utilities, and lists the few deliberate differences.

Each analysis is one command with a few options, and the tutorials run on example data that come with GCEN2. Everything is also available from Python for those who prefer notebooks.

Expression matrices as tab-separated text (genes in rows, samples in columns, as in GCEN), and single-cell or spatial data as AnnData (.h5ad) files, including Visium, Visium HD and Slide-seq. Networks, modules and annotations use GCEN's text formats. CSV files can be read in Python with gcen2.read_csv and written as TSV with gcen2.write_tsv.

Yes. GCEN2 is built and tested on Linux (x86-64), Windows (x86-64) and macOS (Apple Silicon). Use pip on Windows; Bioconda does not build Windows packages.

Yes. The results do not depend on the number of threads, and the test suite checks that they are the same on Linux, Windows and macOS. Random steps such as metacells take a seed.

The single-cell workflow ran on the 584,944 cells of the Human Lung Cell Atlas, all 49 cell types with at least 100 cells, in about eight minutes on one 16-core machine. Large .h5ad files can be read in backed mode, without loading the whole matrix.

GO annotations for most model organisms are available from the Gene Ontology Consortium; KEGG annotations of protein-coding genes can be obtained with KAAS, and InterProScan gives both for proteins. The GCEN download page provides annotation files for human, mouse and zebrafish, which GCEN2 reads unchanged.

gcen2 plot has 43 figures for the files the analyses write, in journal column widths, as PDF, PNG and SVG with editable text; see the gallery. gcen2 report collects an analysis into one HTML or PDF report.

See Cite. Please also cite WGCNA and hdWGCNA when you use their methods.

Open an issue on GitHub or write to chenwen@biochen.org. Questions and suggestions are welcome.