# Single-Cell Transcriptomics

> Single-cell gene expression overview, scGPT whole-human readout, and hPancreas annotation results.

---

LLMS index: [llms.txt](/Sage-SciPerception/llms.txt)

---

## Overview

Single-cell RNA sequencing (scRNA-seq) profiles thousands of genes per individual cell to resolve fine-grained cell states, rare populations, and cross-donor / cross-assay variation in complex tissues.

For `sc-rna/hpancreas`, Sage-SciPerception extracts 33 contextualized token states per cell (`[CLS]` plus ranked expressed genes, 512-dimensional standardized float16) alongside calibrated 10-class readout probabilities (`side.npy`, `temperature = 0.8975`) from a fine-tuned B0 **scGPT whole-human** readout encoder (`encoders/sc-rna/hpancreas/`). Training updates only the `side` branch (`SCIP_TRAIN_SIDE_ONLY=1`) on frozen GLM-5.3-Flash FP8 routed experts.

## Common datasets

| Dataset | Scope and characteristics | Usage in Sage-SciPerception |
| --- | --- | --- |
| **hPancreas (`demo_test.h5ad`)** | 4,218 human pancreas cells spanning 11 cell types across multiple protocols, including held-out `"MHC class II"` | `hpancreas` (`scgpt-hpancreas-v1` official holdout evaluation) |
| **Baron + Muraro + curated CELLxGENE** | 8,406 Baron (`inDrop`) + 2,122 Muraro (`CEL-Seq2`) + 28,592 curated primary human pancreas CELLxGENE cells | B0 readout calibration (`Muraro` validation) and Wave 2 training pool (`42,000` weighted rows) |

## Sage-SciPerception capabilities & results

| Benchmark / task | Metric ↑ | Score | Checkpoint & files |
| --- | --- | ---: | --- |
| [`hpancreas`](/docs/tasks/sc-rna-hpancreas/)<br>Human pancreas cell-type annotation | 11-class Macro-F1 (%) | **79.73** | [HF projector & B0 encoder (`yuhangzang/Sage-SciPerception`)](https://huggingface.co/yuhangzang/Sage-SciPerception/tree/main/projectors/glm-5.3-flash/sc-rna/hpancreas) |

On the frozen 4,218-cell query split, the side-only B0 checkpoint reaches **79.73%** 11-class Macro-F1, **87.70%** 10-seen Macro-F1, and **94.93%** accuracy (`4,210 / 4,218` valid outputs). See the [`examples/hpancreas/` guide](https://github.com/InternLM/Sage-SciPerception/blob/main/examples/hpancreas/README.md) for end-to-end pure-PyTorch feature extraction and vLLM inference.
