Add model card
Browse files
README.md
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: gpl-3.0
|
| 3 |
+
library_name: celllucid
|
| 4 |
+
tags:
|
| 5 |
+
- single-cell
|
| 6 |
+
- topic-modeling
|
| 7 |
+
- transcriptomics
|
| 8 |
+
- human-cell-atlas
|
| 9 |
+
- transcriptformer
|
| 10 |
+
---
|
| 11 |
+
|
| 12 |
+
# CellLucid model assets
|
| 13 |
+
|
| 14 |
+
These are the assets for [CellLucid](https://github.com/Catchxu/CellLucid): interpretable topic
|
| 15 |
+
modeling of single-cell atlases, built toward natural-language querying. Each cell is described
|
| 16 |
+
as a mixture of 128 gene programs (topics).
|
| 17 |
+
|
| 18 |
+
## Contents
|
| 19 |
+
|
| 20 |
+
| Path | What it is | Origin |
|
| 21 |
+
| --- | --- | --- |
|
| 22 |
+
| `tf_sapiens/` | TF-Sapiens backbone: `config.json`, `model_weights.pt`, `vocabs/` | **Not trained by CellLucid.** TranscriptFormer weights released by the Chan Zuckerberg Initiative, redistributed unmodified |
|
| 23 |
+
| `topic_banks/default/` | Topic bank whose topics exclude mitochondrial, ribosomal-protein and TCR/BCR V-segment genes | Trained by CellLucid |
|
| 24 |
+
| `topic_banks/all_genes/` | Topic bank trained on every gene | Trained by CellLucid |
|
| 25 |
+
| `gene_symbols.json` | GENCODE v49 gene symbol to Ensembl ID mapping | Built from GENCODE by CellLucid |
|
| 26 |
+
|
| 27 |
+
## Backbone: TranscriptFormer (TF-Sapiens)
|
| 28 |
+
|
| 29 |
+
The files in `tf_sapiens/` come from
|
| 30 |
+
[TranscriptFormer](https://github.com/czi-ai/transcriptformer) by the Chan Zuckerberg Initiative.
|
| 31 |
+
They were downloaded from
|
| 32 |
+
[CZI](https://czi-transcriptformer.s3.amazonaws.com/weights/tf_sapiens.tar.gz) and are
|
| 33 |
+
redistributed here unmodified, so that CellLucid installs from one place. CellLucid keeps the
|
| 34 |
+
backbone frozen and does not train or fine-tune it. TranscriptFormer is released under the
|
| 35 |
+
[MIT license](https://github.com/czi-ai/transcriptformer/blob/main/LICENSE.md), and its use
|
| 36 |
+
follows CZI's [Acceptable Use Policy](https://virtualcellmodels.cziscience.com/acceptable-use-policy).
|
| 37 |
+
If you use these weights, please cite TranscriptFormer:
|
| 38 |
+
|
| 39 |
+
> Pearce et al., *A cross-species generative cell atlas across 1.5 billion years of evolution:
|
| 40 |
+
> The TranscriptFormer single-cell model*, bioRxiv (2025).
|
| 41 |
+
|
| 42 |
+
## Topic banks
|
| 43 |
+
|
| 44 |
+
CellLucid trained both banks on frozen TF-Sapiens embeddings of 7.5 million cells from 22 Human
|
| 45 |
+
Cell Atlas studies, each cell used once; five further studies were held out for evaluation.
|
| 46 |
+
Each bank holds 128 topics: unit vectors in the backbone's embedding space, which assign a cell
|
| 47 |
+
by a temperature-0.05 softmax, plus a topic-by-gene dictionary. Banks store Ensembl IDs
|
| 48 |
+
(`genes.json`) and gene symbols (`symbols.json`).
|
| 49 |
+
|
| 50 |
+
| Bank | Best for |
|
| 51 |
+
| --- | --- |
|
| 52 |
+
| `default` | interpreting programs, comparing cell types across studies, querying |
|
| 53 |
+
| `all_genes` | quality control, technical or sample-level analysis, full-profile reconstruction |
|
| 54 |
+
|
| 55 |
+
## Usage
|
| 56 |
+
|
| 57 |
+
```bash
|
| 58 |
+
hf download kaichenxu/CellLucid --local-dir assets
|
| 59 |
+
```
|
| 60 |
+
|
| 61 |
+
Then follow the [CellLucid README](https://github.com/Catchxu/CellLucid#usage) to preprocess
|
| 62 |
+
counts and assign topics. The topic banks and CellLucid code are released under GPL-3.0.
|