Update README.md
Browse files1234567891011121314151 unmodified line171819202122232425262728291 unmodified line313233343536376 unmodified lines44454647---tags:- model_hub_mixin- pytorch_model_hub_mixin---# sCellTransformersCellTransformer (sCT) is a long-range foundation model designed for zero-shot prediction tasksin single-cell RNA-seq and spatial transcriptomics data. It processes raw gene expression profiles across multiple cells to predict discretizedgene expression levels for unseen cells without retraining. The model handles up to 20,000 protein-coding genes and outputs around a milliongene expression tokens, mitigating the sparsity typical in single-cell datasets.**Developed by:** [InstaDeep](https://huggingface.co/InstaDeepAI)1 unmodified line<!-- Provide the basic links for the model. -->- **Repository:** [Nucleotide Transformer](https://github.com/instadeepai/nucleotide-transformer)- **Paper:** [A long range foundation model for zero-shot predictions in single-cell and spatial transcriptomics data](https://openreview.net/pdf?id=VdX9tL3VXH)### How to useUntil its next release, the transformers library needs to be installed from source with the following command in order to use the models.PyTorch should also be installed.```1 unmodified linepip install torch```A small snippet of code is given here in order to infer with the model from random input.```import torch6 unmodified linesnum_cells = model.config.num_cellsdummy_gene_expressions = torch.randint(0, 5, (1, 19968 * num_cells))torch_output = model(dummy_gene_expressions)```12345678910111213141516171819202122231 unmodified line2526272829303132333435363738391 unmodified line41424344454647486 unmodified lines55565758596061626364656667686970717273747576777879808182838485868788899091929394---tags:- model_hub_mixin- pytorch_model_hub_mixin---# sCellTransformersCellTransformer (sCT) is a long-range foundation model designed for zero-shotprediction tasks in single-cell RNA-seq and spatial transcriptomics data. It processesraw gene expression profiles across multiple cells to predict discretized geneexpression levels for unseen cells without retraining. The model can handle up to 20,000protein-coding genes and a bag of 50 cells in the same sample. This ability(around a million-gene expressions tokens) allows it to learn cross-cellrelationships and capture long-range dependencies in gene expression data,and to mitigate the sparsity typical in single-cell datasets.sCT is trained on a large dataset of single-cell RNA-seq and finetuned on spatialtranscriptomics data. Evaluation tasks include zero-shot imputation of masked geneexpression, and zero-shot prediction of cell types.**Developed by:** [InstaDeep](https://huggingface.co/InstaDeepAI)1 unmodified line<!-- Provide the basic links for the model. -->- **Repository:** [Nucleotide Transformer](https://github.com/instadeepai/nucleotide-transformer)- **Paper:** [A long range foundation model for zero-shot predictions in single-cell and spatial transcriptomics data](https://openreview.net/pdf?id=VdX9tL3VXH)### How to useUntil its next release, the transformers library needs to be installed from source withthe following command in order to use the models.PyTorch should also be installed.```1 unmodified linepip install torch```A small snippet of code is given here in order to infer with the model from randominput.```import torch6 unmodified linesnum_cells = model.config.num_cellsdummy_gene_expressions = torch.randint(0, 5, (1, 19968 * num_cells))torch_output = model(dummy_gene_expressions)```A more concrete example is provided in the notebook example on one of the downstreamevaluation dataset.#### Training dataThe model was trained following a two-step procedure:pre-training on single-cell data, then finetuning on spatial transcriptomics data.The single-cell data used for pre-training, comes from the[Cellxgene Census collection datasets](https://cellxgene.cziscience.com/)used to train the scGPT models. It consists of around 50 millionscells and approximately 60,000 genes. The spatial data comes from both the [humanbreast cell atlas](https://cellxgene.cziscience.com/collections/4195ab4c-20bd-4cd3-8b3d-65601277e731)and [the human heart atlas](https://www.heartcellatlas.org/).#### Training procedureAs detailed in the paper, the gene expressions are first binned into a pre-definednumber of bins. This allows the model to better learn the distribution of the geneexpressions through sparsity mitigation, noise reduction, and extreme-values handling.Then, the training objective is to predict the masked gene expressions in a cell,following a BERT-like style training.### BibTeX entry and citation info```@misc{joshi2025a,title={A long range foundation model for zero-shot predictions in single-cell andspatial transcriptomics data},author={Ameya Joshi and Raphael Boige and Lee Zamparo and Ugo Tanielian and Juan JoseGarau-Luis and Michail Chatzianastasis and Priyanka Pandey and Janik Sielemann andAlexander Seifert and Martin Brand and Maren Lang and Karim Beguir and Thomas PIERROT},year={2025},url={https://openreview.net/forum?id=VdX9tL3VXH}}```
README.md+58-11