scDGN
A neural network that embeds single-cell RNA-seq profiles by cell type while suppressing batch effects.
Molecules, proteins and genomics · 15 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
- 23.4M
- Operations
- 15
- Framework
- PyTorch
- Recurrent
- No
- Published
- RECOMB 2020
- Cited by
- 5 (as of 27 October 2026)
- Authors
- Songwei Ge, Haohan Wang, Amir Alavi and others
- Source
- GitHub: SongweiGe/scDGN
- 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
- m21694
- Graph hash
- f06138c9207dfccb972fd08c3dff18cc4d3f572f6fdbe719bf5ade46e88ae135
- Skeleton hash
- e8fbd48e411c9cdfc233a903f9debfd127c0907b909d0b6f87535458e1e127b4
- Architecture hash
- 99c0f620fb432431fa4ba8297921f9fdb69479bcb2402be18994ef094dd6e7b6
- Diagram SHA-256
- 5561a629263e67ec391dddcffed9df638e6e4dd7605eb041780bd8d9af5a07cb
- 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
scDGN is a neural network that reduces the dimensionality of single-cell RNA-seq data while accounting for batch effects, in a supervised setting. The name stands for Single Cell Domain Generalization Network. Batch effects matter because they can make cells profiled in one lab look very different from the same cells profiled at another lab.
The network has three modules: an scRNA encoder, a label classifier and a domain discriminator. The encoder reduces the dimensions of the data with fully connected layers. In the paper's experiments it has two hidden layers with 1136 and 100 units. The label classifier predicts the cell type of an input, while the domain discriminator judges whether a pair of inputs comes from the same domain. The discriminator follows Siamese networks and uses a contrastive loss. A gradient reversal layer lets all three modules be updated together end to end.
Training pairs are chosen under a constraint: positive pairs are samples with different labels from the same domain, and negative pairs are samples with the same label from different domains. The paper says this keeps adversarial training from aligning samples with different labels or separating samples with the same label. The scQuery subset used in the paper has 44,490 samples from 155 experiments, assigned to 39 cell types. On that dataset the paper reports that scDGN improves test accuracy by over 10% over all other methods.
Key idea. scDGN trains an encoder for single-cell RNA-seq data against a pairwise domain discriminator, with conditional pair sampling, so that representations separate cell types while staying invariant to batch.
- scdgn
- single cell domain generalization network
- single-cell rna-seq
- scrna-seq
- batch effects
- domain adversarial training
- domain generalization
- cell type classification
- dimensionality reduction
- gradient reversal layer
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@article{Ge_2020, title={Supervised Adversarial Alignment of Single-Cell RNA-seq Data}, url={http://dx.doi.org/10.1101/2020.01.06.896621}, DOI={10.1101/2020.01.06.896621}, publisher={openRxiv}, author={Ge, Songwei and Wang, Haohan and Alavi, Amir and Xing, Eric and Bar-Joseph, Ziv}, year={2020}, month=Jan }