GeneVector
A shallow embedding network that learns gene vectors from mutual information between gene pairs.
Molecules, proteins and genomics · 4 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Parameters
- 400K
- Operations
- 4
- Framework
- PyTorch
- Recurrent
- No
- Published
- 2022, Nature Communications
- Cited by
- 10 (as of 27 October 2026)
- Authors
- Nicholas Ceglia, Zachary Sethna, Samuel S. Freeman and others
- Source
- GitHub: nceglia/genevector
- License
- MIT
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m17055
- Graph hash
- 45e03e8f872def0763d99466f8d8bfcfdd1cfd8e4562348309150bd3b79f8827
- Skeleton hash
- 23f7e09f7b766f3ec154c2809951be949968145450d2016ed92f8faace1e6a08
- Architecture hash
- 596ac0dc8d60846a4501d7dce8c193cb28a1e5c65c7b155c7af92d51b52c6e33
- Diagram SHA-256
- ac9c760b213268bccea26b7ee2d5f53861406d0ff3b7b699b6542a26a12719a0
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
GeneVector learns a vector representation for each gene from single-cell RNA sequencing data, based on how genes are co-expressed. The paper describes it as a framework for dimensionality reduction, implemented as a vector space model that uses mutual information between gene expression. The approach borrows from natural language processing, where vector space models represent similarities between words in a lower dimensional space, and it builds the embedding with respect to each gene where other methods work with respect to each cell.
The network has a single hidden layer the size of the latent vectors and two weight matrices, w1 and w2, each of N expressed genes by I hidden units. Each co-expressed gene pair is one training example, and the loss is the mean squared error between the mutual information of the pair and the model output, defined as w1Tw2. The weights are updated with ADADELTA, and the final gene embedding is the vector average of w1 and w2.
From the trained weights the framework builds a gene embedding, a cell embedding and a co-expression similarity graph, and uses vector space arithmetic to identify metagenes, correct batch effects and classify cell types. The paper shows these uses on four single cell RNA-seq datasets. The library can also train on targets other than mutual information, including Pearson, Spearman, Jaccard and cosine scores.
Key idea. GeneVector trains a single layer neural network on mutual information between gene pairs to produce a low dimensional gene embedding used to identify transcriptional programs and classify cell types.
- GeneVector
- gene embedding
- single-cell RNA-seq
- scRNA-seq
- mutual information
- gene co-expression
- metagenes
- cell type annotation
- transcriptional programs
- batch effect correction
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@article{Ceglia_2023, title={Identification of transcriptional programs using dense vector representations defined by mutual information with GeneVector}, volume={14}, ISSN={2041-1723}, url={http://dx.doi.org/10.1038/s41467-023-39985-2}, DOI={10.1038/s41467-023-39985-2}, number={1}, journal={Nature Communications}, publisher={Springer Science and Business Media LLC}, author={Ceglia, Nicholas and Sethna, Zachary and Freeman, Samuel S. and Uhlitz, Florian and Bojilova, Viktoria and Rusk, Nicole and Burman, Bharat and Chow, Andrew and Salehi, Sohrab and Kabeer, Farhia and Aparicio, Samuel and Greenbaum, Benjamin D. and Shah, Sohrab P. and McPherson, Andrew}, year={2023}, month=July }