danielle-miller-sayag commited on
Commit
04d199d
·
verified ·
1 Parent(s): c049d8c

add dataset card

Browse files
Files changed (1) hide show
  1. README.md +124 -39
README.md CHANGED
@@ -1,39 +1,124 @@
1
- ---
2
- dataset_info:
3
- features:
4
- - name: input_ids
5
- sequence:
6
- sequence: float32
7
- - name: attention_mask
8
- sequence: bool
9
- - name: entity_id
10
- dtype: int64
11
- - name: augmentation_id
12
- dtype: int64
13
- - name: cell_types
14
- sequence: string
15
- - name: labels
16
- dtype: int64
17
- - name: sample_id
18
- dtype: string
19
- - name: tissue
20
- dtype: string
21
- - name: disease
22
- dtype: string
23
- splits:
24
- - name: train
25
- num_bytes: 1464492698.909091
26
- num_examples: 40
27
- - name: validation
28
- num_bytes: 549184762.0909091
29
- num_examples: 15
30
- download_size: 166251037
31
- dataset_size: 2013677461.0
32
- configs:
33
- - config_name: default
34
- data_files:
35
- - split: train
36
- path: data/train-*
37
- - split: validation
38
- path: data/validation-*
39
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Virtual Cell — Patient Example Dataset
2
+
3
+ A minimal sample dataset for verifying the data format and running quick
4
+ end-to-end checks with
5
+ [ConvergeBio/virtual-cell-patient](https://huggingface.co/ConvergeBio/virtual-cell-patient).
6
+
7
+ > **This dataset is not intended for training or evaluation.** It contains a
8
+ > small number of patients and is not representative of a real distribution.
9
+ > Metrics produced from this dataset should not be interpreted.
10
+
11
+ ## Dataset contents
12
+
13
+ Derived from a public type 1 diabetes scRNA-seq study (GSE148073). Preprocessed
14
+ into the model's input format as a minimal working example.
15
+
16
+ | Split | Patients | Rows |
17
+ |---|---|---|
18
+ | train | 8 | 40 |
19
+ | validation | 3 | 15 |
20
+
21
+ Each row is one augmented view of a patient (5 augmentations per patient).
22
+
23
+ ## Loading
24
+
25
+ ```python
26
+ from datasets import load_dataset
27
+
28
+ ds = load_dataset("ConvergeBio/virtual-cell-patient-example", token="...")
29
+ train_ds = ds["train"]
30
+ val_ds = ds["validation"]
31
+ ```
32
+
33
+ ## Schema
34
+
35
+ | Column | Shape | Type | Description |
36
+ |---|---|---|---|
37
+ | `input_ids` | [500, 18301] | float32 | Log-normalized gene expression matrix, aligned to `gene_names.txt` |
38
+ | `attention_mask` | [500] | bool | Cell mask (all ones for fixed cell count) |
39
+ | `labels` | scalar | int | Class index |
40
+ | `entity_id` | scalar | int | Patient identifier — groups augmented views of the same patient |
41
+ | `sample_id` | scalar | str | Original sample accession ID |
42
+
43
+ ## Preparing your own dataset
44
+
45
+ ### Input format
46
+
47
+ Each patient is a single `.h5ad` (AnnData) file:
48
+
49
+ ```
50
+ adata.X — cell × gene expression matrix (float32, log-normalized)
51
+ adata.obs — cell-level metadata (cell_type optional)
52
+ adata.var — gene metadata (index must be HGNC gene symbols)
53
+ ```
54
+
55
+ Values should be library-size normalized (target sum 10,000) and `log1p`
56
+ transformed. The gene axis must be aligned to the 18,301 genes in
57
+ `gene_names.txt` (from the model repo) — missing genes are zero-filled,
58
+ extra genes are dropped.
59
+
60
+ ### Quality control (optional)
61
+
62
+ Recommended filters before building the dataset:
63
+
64
+ | Parameter | Default | Description |
65
+ |---|---|---|
66
+ | min genes per cell | 200 | Remove low-complexity cells |
67
+ | max genes per cell | 5,000 | Remove likely doublets |
68
+ | max mitochondrial % | 10% | Remove dying cells |
69
+
70
+ ### Building the HuggingFace dataset
71
+
72
+ For each patient, randomly sample 500 cells into a `[500, 18301]` float32
73
+ matrix. Repeat this sampling independently multiple times per patient to
74
+ create augmented views — each view becomes a separate row with the same
75
+ `entity_id`.
76
+
77
+ **Augmentation is strongly encouraged.** The model aggregates predictions
78
+ across views at inference time, producing more robust results. A factor of
79
+ 5 augmentations per patient is a good default; 1 is supported but not
80
+ recommended.
81
+
82
+ Assign each patient a unique integer `entity_id`. All augmented views of
83
+ the same patient must share the same `entity_id`.
84
+
85
+ The final dataset should be saved in HuggingFace Datasets format:
86
+
87
+ ```python
88
+ from datasets import DatasetDict
89
+ dd = DatasetDict({"train": train_ds, "validation": val_ds})
90
+ dd.save_to_disk("my_dataset")
91
+ # or push directly:
92
+ dd.push_to_hub("my-org/my-dataset")
93
+ ```
94
+
95
+ ## Citation
96
+
97
+ If you use this dataset, please cite the original study:
98
+
99
+ ```bibtex
100
+ @article{sachs2022singlecell,
101
+ author = {Fasolino, Maria and others},
102
+ title = {Single-cell multi-omics analysis of human pancreatic islets reveals
103
+ novel cellular states in type 1 diabetes},
104
+ journal = {Nature Metabolism},
105
+ year = {2022},
106
+ doi = {10.1038/s42255-022-00531-x},
107
+ note = {GEO accession: GSE148073},
108
+ }
109
+ ```
110
+
111
+ If you use the Virtual Cell patient model, please also cite:
112
+
113
+ ```bibtex
114
+ @article{convergecell2026,
115
+ author = {ConvergeBio},
116
+ title = {ConvergeCELL: An end-to-end platform from patient transcriptomics to therapeutic hypotheses},
117
+ year = {2026},
118
+ note = {Preprint available on bioRxiv},
119
+ }
120
+ ```
121
+
122
+ ## License
123
+
124
+ [TBD]