Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- .gitattributes +2 -0
- README.md +309 -0
- bmg_gene_index.csv +0 -0
- cell_metadata_with_mappings.csv +3 -0
- cell_metadata_with_mappings.parquet +3 -0
- expression_matrix/braincellatlas_brain_part_0.npy +3 -0
- expression_matrix/braincellatlas_brain_part_1.npy +3 -0
- expression_matrix/cellxgene_abdomen_part_0.npy +3 -0
- expression_matrix/cellxgene_adipose_tissue_part_0.npy +3 -0
- expression_matrix/cellxgene_adrenal_gland_part_0.npy +3 -0
- expression_matrix/cellxgene_blood_part_0.npy +3 -0
- expression_matrix/cellxgene_blood_part_2.npy +3 -0
- expression_matrix/cellxgene_blood_part_3.npy +3 -0
- expression_matrix/cellxgene_blood_part_4.npy +3 -0
- expression_matrix/cellxgene_blood_part_5.npy +3 -0
- expression_matrix/cellxgene_bone_marrow_part_0.npy +3 -0
- expression_matrix/cellxgene_brain_part_10.npy +3 -0
- expression_matrix/cellxgene_brain_part_4.npy +3 -0
- expression_matrix/cellxgene_brain_part_5.npy +3 -0
- expression_matrix/cellxgene_brain_part_6.npy +3 -0
- expression_matrix/cellxgene_brain_part_7.npy +3 -0
- expression_matrix/cellxgene_breast_part_0.npy +3 -0
- expression_matrix/cellxgene_breast_part_1.npy +3 -0
- expression_matrix/cellxgene_central_nervous_system_part_0.npy +3 -0
- expression_matrix/cellxgene_embryo_part_0.npy +3 -0
- expression_matrix/cellxgene_exocrine_gland_part_0.npy +3 -0
- expression_matrix/cellxgene_eye_part_0.npy +3 -0
- expression_matrix/cellxgene_head_part_0.npy +3 -0
- expression_matrix/cellxgene_heart_part_0.npy +3 -0
- expression_matrix/cellxgene_heart_part_1.npy +3 -0
- expression_matrix/cellxgene_hindlimb_part_0.npy +3 -0
- expression_matrix/cellxgene_intestine_part_0.npy +3 -0
- expression_matrix/cellxgene_liver_part_0.npy +3 -0
- expression_matrix/cellxgene_lung_part_2.npy +3 -0
- expression_matrix/cellxgene_neck_part_0.npy +3 -0
- expression_matrix/cellxgene_nose_part_0.npy +3 -0
- expression_matrix/cellxgene_ovary_part_0.npy +3 -0
- expression_matrix/cellxgene_pancreas_part_0.npy +3 -0
- expression_matrix/cellxgene_paracolic_gutter_part_0.npy +3 -0
- expression_matrix/cellxgene_scalp_part_0.npy +3 -0
- expression_matrix/cellxgene_small_intestine_part_0.npy +3 -0
- expression_matrix/cellxgene_spleen_part_0.npy +3 -0
- expression_matrix/cellxgene_tendon_of_semitendinosus_part_0.npy +3 -0
- expression_matrix/cellxgene_vasculature_part_0.npy +3 -0
- expression_matrix/geo_blood_part_0.npy +3 -0
- expression_matrix/hepatitisCatlas_liver_part_0.npy +3 -0
- internal_edge_index.npy +3 -0
- s_desc.csv +3 -0
- x_bio_emb.npy +3 -0
- x_desc_emb.npy +3 -0
.gitattributes
CHANGED
|
@@ -57,3 +57,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 57 |
# Video files - compressed
|
| 58 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 59 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
| 57 |
# Video files - compressed
|
| 58 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 59 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
| 60 |
+
s_desc.csv filter=lfs diff=lfs merge=lfs -text
|
| 61 |
+
cell_metadata_with_mappings.csv filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,309 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
pretty_name: OmniCellTOSG
|
| 3 |
+
dataset_name: omnicelltosg
|
| 4 |
+
dataset_summary: |
|
| 5 |
+
OmniCellTOSG is a large-scale Text–Omic Signaling Graph (TOSG) dataset for single-cell learning.
|
| 6 |
+
It integrates sharded expression matrices, graph topology (full/internal/PPI edges), and textual
|
| 7 |
+
entity metadata (names, descriptions, sequences) with optional precomputed embeddings. It supports
|
| 8 |
+
graph-aware pretraining and downstream tasks such as cell-type annotation, disease status, and sex classification.
|
| 9 |
+
|
| 10 |
+
# 🏷️ Taxonomy (use standard HF enums where possible)
|
| 11 |
+
annotations_creators: [no-annotation]
|
| 12 |
+
language_creators: [found]
|
| 13 |
+
language: [en]
|
| 14 |
+
multilinguality: [monolingual]
|
| 15 |
+
source_datasets: [original, external]
|
| 16 |
+
size_categories: [">1M"] # change if needed: n<1K | 1K<n<10K | 10K<n<100K | 100K<n<1M | >1M
|
| 17 |
+
|
| 18 |
+
# 📚 Tasks (use “other” if your task isn’t in HF’s standard list)
|
| 19 |
+
task_categories: [other]
|
| 20 |
+
task_ids:
|
| 21 |
+
- multi-label-classification
|
| 22 |
+
- explanation-generation
|
| 23 |
+
|
| 24 |
+
# 🔖 Tags (free-form keywords)
|
| 25 |
+
tags:
|
| 26 |
+
- single-cell
|
| 27 |
+
- transcriptomics
|
| 28 |
+
- foundation-models
|
| 29 |
+
|
| 30 |
+
# 📄 Licensing & attribution
|
| 31 |
+
license: other
|
| 32 |
+
license_url:
|
| 33 |
+
- https://cellxgene.cziscience.com/tos
|
| 34 |
+
- https://doi.org/10.1038/s41591-024-03150-z
|
| 35 |
+
- https://www.ncbi.nlm.nih.gov/geo/info/citations.html#third-party
|
| 36 |
+
|
| 37 |
+
# 🔗 Project links (optional but recommended)
|
| 38 |
+
homepage: https://github.com/FuhaiLiAiLab/OmniCellTOSG
|
| 39 |
+
repository: https://github.com/FuhaiLiAiLab/OmniCellTOSG
|
| 40 |
+
paper: "https://arxiv.org/pdf/2504.02148"
|
| 41 |
+
point_of_contact: "Heming Zhang"
|
| 42 |
+
|
| 43 |
+
# 🧩 Dataset structure hints (optional)
|
| 44 |
+
dataset_type: multimodal-graph
|
| 45 |
+
configs:
|
| 46 |
+
- config_name: default
|
| 47 |
+
data_files: cell_metadata_with_mappings.csv
|
| 48 |
+
|
| 49 |
+
# ✅ Maintenance
|
| 50 |
+
pretty_format: true
|
| 51 |
+
---
|
| 52 |
+
|
| 53 |
+
|
| 54 |
+
# OmniCellTOSG
|
| 55 |
+
|
| 56 |
+
<!-- markdownlint-disable first-line-h1 -->
|
| 57 |
+
<!-- markdownlint-disable html -->
|
| 58 |
+
<!-- markdownlint-disable no-duplicate-header -->
|
| 59 |
+
|
| 60 |
+
<div align="center">
|
| 61 |
+
<img src="https://github.com/FuhaiLiAiLab/OmniCellTOSG/blob/main/Figures/OmniCell-logo.png?raw=true" width="55%" alt="OmniCellTOSG Logo" />
|
| 62 |
+
</div>
|
| 63 |
+
|
| 64 |
+
<div align="center">
|
| 65 |
+
<a href="https://github.com/FuhaiLiAiLab/OmniCellTOSG">
|
| 66 |
+
<img alt="GitHub" src="https://img.shields.io/badge/GitHub-OmniCellTOSG-181717?logo=github">
|
| 67 |
+
</a>
|
| 68 |
+
<a href="https://huggingface.co/FuhaiLiAiLab">
|
| 69 |
+
<img alt="Hugging Face" src="https://img.shields.io/badge/%F0%9F%A4%97%20Hugging%20Face-FuhaiLiAiLab-ffcc00?color=ffcc00&logoColor=white">
|
| 70 |
+
</a>
|
| 71 |
+
<a href="https://arxiv.org/pdf/2504.02148" target="_blank">
|
| 72 |
+
<img alt="Paper" src="https://img.shields.io/badge/arXiv-2504.02148-b31b1b?logo=arxiv&logoColor=white">
|
| 73 |
+
</a>
|
| 74 |
+
</div>
|
| 75 |
+
|
| 76 |
+
---
|
| 77 |
+
|
| 78 |
+
## 🧭 Overview
|
| 79 |
+
|
| 80 |
+
**OmniCellTOSG** is a large-scale **Text–Omic Signaling Graph (TOSG)** resource for **single-cell foundation model pretraining** and **omics analysis**. It combines:
|
| 81 |
+
- **Expression matrices** (sharded `.npy` for scalable IO)
|
| 82 |
+
- **Graph topology** (full, internal, and PPI edges)
|
| 83 |
+
- **Textual metadata** (entity names, descriptions, sequences) with **precomputed embeddings**
|
| 84 |
+
|
| 85 |
+
Supported tasks include **graph–language foundation model pretraining**, **cell-type annotation**, **disease status** and **sex** classification, plus **core signaling inference**.
|
| 86 |
+
|
| 87 |
+
<div align="center">
|
| 88 |
+
<img src="https://github.com/FuhaiLiAiLab/OmniCellTOSG/blob/main/Figures/Figure2.png?raw=true" alt="Dataset Overview" />
|
| 89 |
+
</div>
|
| 90 |
+
|
| 91 |
+
---
|
| 92 |
+
|
| 93 |
+
## 📁 Dataset Structure
|
| 94 |
+
|
| 95 |
+
```text
|
| 96 |
+
OmniCellTOSG_Dataset/
|
| 97 |
+
├── expression_matrix/
|
| 98 |
+
│ ├── braincellatlas_brain_part_0.npy
|
| 99 |
+
│ ├── braincellatlas_brain_part_1.npy
|
| 100 |
+
│ ├── cellxgene_blood_part_0.npy
|
| 101 |
+
│ ├── cellxgene_blood_part_1.npy
|
| 102 |
+
│ ├── cellxgene_lung_part_0.npy
|
| 103 |
+
│ ├── cellxgene_small_intestine_part_0.npy
|
| 104 |
+
│ └── ... (additional *.npy shards)
|
| 105 |
+
├── cell_metadata_with_mappings.csv
|
| 106 |
+
├── cell_metadata_with_mappings.parquet
|
| 107 |
+
├── edge_index.npy
|
| 108 |
+
├── internal_edge_index.npy
|
| 109 |
+
├── ppi_edge_index.npy
|
| 110 |
+
├── s_bio.csv
|
| 111 |
+
├── s_desc.csv
|
| 112 |
+
├── s_name.csv
|
| 113 |
+
├── x_bio_emb.npy
|
| 114 |
+
├── x_desc_emb.npy
|
| 115 |
+
└── x_name_emb.csv
|
| 116 |
+
```
|
| 117 |
+
|
| 118 |
+
> **Notes:**
|
| 119 |
+
> - Files in `expression_matrix/*.npy` are **sharded partitions** of single-cell expression matrices; merge shards (concatenate/stack) to reconstruct the full matrix for a given source/organ.
|
| 120 |
+
> - `cell_metadata_with_mappings.csv` contains **standardized per-cell annotations** (e.g., tissue, disease, sex, cell type, ontology mappings).
|
| 121 |
+
> - `edge_index.npy`, `s_bio.csv`, `s_name.csv`, and `s_desc.csv` provide the **graph topology** (COO `[2, E]`) and **entity metadata** (biological sequences, names, descriptions).
|
| 122 |
+
> - `x_bio_emb.npy`, `x_desc_emb.npy`, and `x_name_emb.csv` are **precomputed entity embeddings** (`[#entities × D]`, encoder-dependent) aligned to the CSVs—use these to **skip on-the-fly embedding**.
|
| 123 |
+
|
| 124 |
+
---
|
| 125 |
+
|
| 126 |
+
## ⚙️ Installation
|
| 127 |
+
|
| 128 |
+
If you only need dataset loading/extraction, download the standalone loader package from the [Releases](https://github.com/FuhaiLiAiLab/OmniCellTOSG/releases/tag/v2.1.0) page.
|
| 129 |
+
|
| 130 |
+
---
|
| 131 |
+
|
| 132 |
+
## 🚀 Quick Start
|
| 133 |
+
|
| 134 |
+
```python
|
| 135 |
+
from CellTOSG_Loader import CellTOSGDataLoader
|
| 136 |
+
|
| 137 |
+
conditions = {"tissue_general": "brain", "disease_name": "Alzheimer's Disease"}
|
| 138 |
+
|
| 139 |
+
ddataset = CellTOSGDataLoader(
|
| 140 |
+
root=args.dataset_root,
|
| 141 |
+
conditions=conditions,
|
| 142 |
+
task=args.task, # "disease" | "sex" | "cell_type"
|
| 143 |
+
label_column=args.label_column, # "disease" | "sex" | "cell_type"
|
| 144 |
+
sample_ratio=args.sample_ratio, # mutually exclusive with sample_size
|
| 145 |
+
sample_size=args.sample_size,
|
| 146 |
+
shuffle=args.shuffle,
|
| 147 |
+
stratified_balancing=args.stratified_balancing,
|
| 148 |
+
extract_mode=args.extract_mode, # "inference" | "train"
|
| 149 |
+
random_state=args.random_state,
|
| 150 |
+
train_text=args.train_text,
|
| 151 |
+
train_bio=args.train_bio,
|
| 152 |
+
correction_method=args.correction_method, # None | "combat_seq"
|
| 153 |
+
output_dir=args.output_dir,
|
| 154 |
+
)
|
| 155 |
+
|
| 156 |
+
# --- Access outputs ---
|
| 157 |
+
if args.extract_mode == "inference":
|
| 158 |
+
X = dataset.data # pandas.DataFrame (expression/features)
|
| 159 |
+
y = dataset.labels # pandas.DataFrame
|
| 160 |
+
metadata = dataset.metadata # pandas.DataFrame (row-aligned metadata)
|
| 161 |
+
else:
|
| 162 |
+
X = dataset.data # dict: {"train": X_train, "test": X_test}
|
| 163 |
+
y = dataset.labels # dict: {"train": y_train, "test": y_test}
|
| 164 |
+
metadata = dataset.metadata # dict: {"train": meta_train, "test": meta_test}
|
| 165 |
+
|
| 166 |
+
all_edge_index = dataset.edge_index # full graph (COO [2, E])
|
| 167 |
+
internal_edge_index = dataset.internal_edge_index # optional transcript–protein edges
|
| 168 |
+
ppi_edge_index = dataset.ppi_edge_index # optional PPI edges
|
| 169 |
+
x_name_emb, x_desc_emb, x_bio_emb = pre_embed_text(args, dataset, pretrain_model, device) # Prepare text and seq embeddings
|
| 170 |
+
```
|
| 171 |
+
|
| 172 |
+
### Parameters (`CellTOSGDataLoader`)
|
| 173 |
+
- **root** *(str, required)* — Filesystem path to the dataset root (e.g., `../OmniCellTOSG/CellTOSG_dataset_v2`).
|
| 174 |
+
- **conditions** *(dict, required)* — Metadata filters used to subset rows
|
| 175 |
+
(e.g., `{"tissue_general": "brain", "disease": "Alzheimer's disease"}`).
|
| 176 |
+
- **task** *(str, required)* — Downstream task type: `"disease"` | `"sex"` | `"cell_type"`.
|
| 177 |
+
- **label_column** *(str, required)* — Target label column (e.g., `"disease"`, `"sex"`, `"cell_type"`).
|
| 178 |
+
- **extract_mode** *(str, required)* — Extraction mode:
|
| 179 |
+
- `"inference"`: extract a single dataset for inference/analysis (no train/test split)
|
| 180 |
+
- `"train"`: extract a training-ready dataset and generate splits (e.g., train/test)
|
| 181 |
+
- **sample_ratio** *(float, optional)* — Fraction of rows to sample (0–1). Mutually exclusive with `sample_size`.
|
| 182 |
+
- **sample_size** *(int, optional)* — Absolute number of rows to sample. Mutually exclusive with `sample_ratio`.
|
| 183 |
+
- **shuffle** *(bool, default: `False`)* — Shuffle rows during sampling/composition.
|
| 184 |
+
- **stratified_balancing** *(bool, default: `False`)* — Enable stratified sampling / class balancing based on `label_column`.
|
| 185 |
+
- **random_state** *(int, default: `2025`)* — Random seed for reproducibility (sampling, shuffling, splitting).
|
| 186 |
+
- **train_text** *(bool, default: `False`)* — Controls text feature output:
|
| 187 |
+
- `False`: return precomputed text embeddings (if available)
|
| 188 |
+
- `True`: return raw text fields for custom embedding
|
| 189 |
+
- **train_bio** *(bool, default: `False`)* — Controls biological sequence feature output:
|
| 190 |
+
- `False`: return precomputed sequence embeddings (if available)
|
| 191 |
+
- `True`: return raw sequences for custom embedding
|
| 192 |
+
- **correction_method** *(str or None, default: `None`)* — Correction method:
|
| 193 |
+
- `None`: no correction
|
| 194 |
+
- `"combat_seq"`: apply ComBat-Seq
|
| 195 |
+
- **output_dir** *(str, optional)* — Directory for loader outputs (extracted expression matrix, label,splits).
|
| 196 |
+
|
| 197 |
+
> **Returns:**
|
| 198 |
+
> - `extract_mode="inference"`:
|
| 199 |
+
> - `dataset.data`: `pandas.DataFrame`
|
| 200 |
+
> - `dataset.labels`: `pandas.DataFrame`
|
| 201 |
+
> - `dataset.metadata`: `pandas.DataFrame`
|
| 202 |
+
> - `extract_mode="train"`:
|
| 203 |
+
> - `dataset.data`: `dict` (`{"train": X_train, "test": X_test}`)
|
| 204 |
+
> - `dataset.labels`: `dict` (`{"train": y_train, "test": y_test}`)
|
| 205 |
+
> - `dataset.metadata`: `dict` (`{"train": meta_train, "test": meta_test}`)
|
| 206 |
+
> - `edge_index`, `internal_edge_index`, `ppi_edge_index`: graph topological information
|
| 207 |
+
> - Either raw text/sequence fields (`s_name`, `s_desc`, `s_bio`) **or** their precomputed embeddings (`x_name_emb`, `x_desc_emb`, `x_bio_emb`), returned according to the `train_text`/`train_bio` flags.
|
| 208 |
+
|
| 209 |
+
---
|
| 210 |
+
|
| 211 |
+
## 🧪 Pretraining
|
| 212 |
+
|
| 213 |
+
```bash
|
| 214 |
+
python pretrain.py
|
| 215 |
+
```
|
| 216 |
+
|
| 217 |
+
---
|
| 218 |
+
|
| 219 |
+
## 🏋️ Training Examples (CLI)
|
| 220 |
+
|
| 221 |
+
**Disease status (AD, brain)**
|
| 222 |
+
```bash
|
| 223 |
+
# Alzheimer's Disease (Take AD as an example)
|
| 224 |
+
python train.py \
|
| 225 |
+
--downstream_task disease \
|
| 226 |
+
--label_column disease \
|
| 227 |
+
--tissue_general brain \
|
| 228 |
+
--disease_name "Alzheimer's Disease" \
|
| 229 |
+
--sample_ratio 0.1 \
|
| 230 |
+
--train_base_layer gat \
|
| 231 |
+
--train_lr 0.0005 \
|
| 232 |
+
--train_batch_size 3 \
|
| 233 |
+
--random_state 42 \
|
| 234 |
+
--dataset_output_dir ./Data/train_ad_disease_0.1_42
|
| 235 |
+
```
|
| 236 |
+
|
| 237 |
+
**Sex (AD, brain)**
|
| 238 |
+
```bash
|
| 239 |
+
# Alzheimer's Disease (Take AD as an example)
|
| 240 |
+
python train.py \
|
| 241 |
+
--downstream_task sex \
|
| 242 |
+
--label_column sex \
|
| 243 |
+
--tissue_general brain \
|
| 244 |
+
--disease_name "Alzheimer's Disease" \
|
| 245 |
+
--sample_ratio 0.1 \
|
| 246 |
+
--train_base_layer gat \
|
| 247 |
+
--train_lr 0.0005 \
|
| 248 |
+
--train_batch_size 2 \
|
| 249 |
+
--random_state 42 \
|
| 250 |
+
--dataset_output_dir ./Data/train_ad_sex_0.1_42
|
| 251 |
+
```
|
| 252 |
+
|
| 253 |
+
**Cell type annotation (LUAD, lung)**
|
| 254 |
+
```bash
|
| 255 |
+
# Lung (LUAD) (Take LUAD as an example)
|
| 256 |
+
python train.py \
|
| 257 |
+
--downstream_task cell_type \
|
| 258 |
+
--label_column cell_type \
|
| 259 |
+
--tissue_general "lung" \
|
| 260 |
+
--disease_name "Lung Adenocarcinoma" \
|
| 261 |
+
--sample_ratio 0.2 \
|
| 262 |
+
--train_base_layer gat \
|
| 263 |
+
--train_lr 0.0001 \
|
| 264 |
+
--train_batch_size 3 \
|
| 265 |
+
--random_state 42 \
|
| 266 |
+
--dataset_output_dir ./Data/train_luad_celltype_0.2_42
|
| 267 |
+
```
|
| 268 |
+
|
| 269 |
+
**Signaling inference**
|
| 270 |
+
```bash
|
| 271 |
+
python analysis.py
|
| 272 |
+
```
|
| 273 |
+
|
| 274 |
+
---
|
| 275 |
+
|
| 276 |
+
## ⚖️ Licensing & Attribution
|
| 277 |
+
|
| 278 |
+
This dataset aggregates data from **CellxGENE**, the **Brain Cell Atlas**, **GEO** and **HCA**. Use of these resources is governed by their respective terms and citation policies:
|
| 279 |
+
|
| 280 |
+
- **CellxGENE Terms of Service** — Follow the platform’s ToS for data access, reuse, and sharing.
|
| 281 |
+
🔗 https://cellxgene.cziscience.com/tos
|
| 282 |
+
|
| 283 |
+
- **Brain Cell Atlas (citation required)**
|
| 284 |
+
*Cite:*
|
| 285 |
+
Xinyue Chen#, Yin Huang#, Liangfeng Huang#, Ziliang Huang#, Zhao-Zhe Hao#, Lahong Xu, Nana Xu, Zhi Li, Yonggao Mou, Mingli Ye, Renke You, Xuegong Zhang, Sheng Liu*, Zhichao Miao*. **A brain cell atlas integrating single-cell transcriptomes across human brain regions.** *Nat Med* (2024). https://doi.org/10.1038/s41591-024-03150-z
|
| 286 |
+
|
| 287 |
+
- **GEO Citation Policy** — Follow NCBI GEO guidelines for citing datasets and third-party analyses.
|
| 288 |
+
🔗 https://www.ncbi.nlm.nih.gov/geo/info/citations.html#third-party
|
| 289 |
+
|
| 290 |
+
- **HCA Data Use Agreement**
|
| 291 |
+
🔗 https://data.humancellatlas.org/about/data-use-agreement
|
| 292 |
+
|
| 293 |
+
> **Note:** You are responsible for ensuring compliance with the licenses/terms and for providing appropriate attribution to each source in any publications or derived works.
|
| 294 |
+
|
| 295 |
+
---
|
| 296 |
+
|
| 297 |
+
## 📚 Citation
|
| 298 |
+
|
| 299 |
+
If you use **OmniCellTOSG**, please cite:
|
| 300 |
+
|
| 301 |
+
```bibtex
|
| 302 |
+
@misc{omnicelltosg2025,
|
| 303 |
+
title = {OmniCellTOSG: A Text–Omic Signaling Graph Dataset for Single-Cell Learning},
|
| 304 |
+
author = {Zhang, Heming and Li, Fuhai and collaborators},
|
| 305 |
+
year = {2025},
|
| 306 |
+
note = {Dataset on Hugging Face},
|
| 307 |
+
url = {https://huggingface.co/FuhaiLiAiLab}
|
| 308 |
+
}
|
| 309 |
+
```
|
bmg_gene_index.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
cell_metadata_with_mappings.csv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cc1c93d20ac7b17aaab825d645dad2b204dceb13ddcaed565edcf4e0167b8200
|
| 3 |
+
size 115567301
|
cell_metadata_with_mappings.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b88890b99f8266ac83c7a583e0f49755895f05df91bb60f5f21924abdcb6bd9f
|
| 3 |
+
size 3118391
|
expression_matrix/braincellatlas_brain_part_0.npy
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0f44efb4195146317419a1f90039c4396b2064ad14e08adfdbdc0f4ca91f0754
|
| 3 |
+
size 16481560128
|
expression_matrix/braincellatlas_brain_part_1.npy
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:295d8f96d0b1edfe5ec080eec6a401fc48743b5a9a443edd17edc5ad0d2e8e0a
|
| 3 |
+
size 16481560128
|
expression_matrix/cellxgene_abdomen_part_0.npy
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:73f755be6f5f4b0f30c5b97bc5e5ebf17541adfa61591413a8e7cb789b7c3af9
|
| 3 |
+
size 2000861512
|
expression_matrix/cellxgene_adipose_tissue_part_0.npy
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3139bc23f323e744005bed7c9c865bd15705a42e84d434b315ae3a33f9c829f9
|
| 3 |
+
size 3751203184
|
expression_matrix/cellxgene_adrenal_gland_part_0.npy
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d09c634db7d973281535d41277a4cccf0a99be47ced6bb41554f48e0ce602eb6
|
| 3 |
+
size 3284775036
|
expression_matrix/cellxgene_blood_part_0.npy
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bb664929acafe8adb91ecd41ab29ea5bec90eaad4fa17b0c32b698dc9d44e7ef
|
| 3 |
+
size 16481560128
|
expression_matrix/cellxgene_blood_part_2.npy
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3b25409c034839d5cdf59ef49650fa3fc895e5061e93cb0436088785cff54ad7
|
| 3 |
+
size 16481560128
|
expression_matrix/cellxgene_blood_part_3.npy
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d9686e46cff5c23ae5d4b39345b80e618237ff36e3011fa37c9d6d1219d9a184
|
| 3 |
+
size 16481560128
|
expression_matrix/cellxgene_blood_part_4.npy
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:250408221aeed852015af4baef14cfe8f26f859cda9e084e1964c32afdc2b1ce
|
| 3 |
+
size 16481560128
|
expression_matrix/cellxgene_blood_part_5.npy
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0d1aa5e501497a85b78a4c6d992092f91548b796c74c30ff0b19fe75e82c9d56
|
| 3 |
+
size 9348340960
|
expression_matrix/cellxgene_bone_marrow_part_0.npy
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e24f40e21ee26b9b4267bba11e38763becc18f1215acc04a3e045d6c8f9ab83e
|
| 3 |
+
size 7197497380
|
expression_matrix/cellxgene_brain_part_10.npy
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:94bf6745095701c4c7747588d51b6c06bebfe9a36556b351a00dff53cb2322f6
|
| 3 |
+
size 13452249400
|
expression_matrix/cellxgene_brain_part_4.npy
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:eb6b635a4dc8df624f6313fc3a9335e23e69553093284640bdab4b6ab0c213e9
|
| 3 |
+
size 16481560128
|
expression_matrix/cellxgene_brain_part_5.npy
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ff80ab66f95f6c4a90b08208e16f78a0a2c9f6957256b3b9ccf4c5095c3fa998
|
| 3 |
+
size 16481560128
|
expression_matrix/cellxgene_brain_part_6.npy
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8a74e82771507666e1d2a7d7e2f9fc53f78468313d7d675da693fea8039e52bc
|
| 3 |
+
size 16481560128
|
expression_matrix/cellxgene_brain_part_7.npy
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8790a55b862dfc677bc072952214ad297a037a069c69521f85a05671d089521e
|
| 3 |
+
size 16481560128
|
expression_matrix/cellxgene_breast_part_0.npy
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8655629291abb2398773ceffe2a035094780cfe931389f7e934d028e96fcc9b6
|
| 3 |
+
size 16481560128
|
expression_matrix/cellxgene_breast_part_1.npy
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1dee58f0924d0efd92bae1d789e82ae7f235612ac77d4d809968d5c4cf03881e
|
| 3 |
+
size 16481560128
|
expression_matrix/cellxgene_central_nervous_system_part_0.npy
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:84f1256aba7bcf6b9e6438ceb80dee289abad37e8d5a03bb672a9dae18e256bc
|
| 3 |
+
size 130204452
|
expression_matrix/cellxgene_embryo_part_0.npy
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7fcbee33de0db633d027e18f499f7897aa16922306bba991fab0c545334d1d31
|
| 3 |
+
size 1361376984
|
expression_matrix/cellxgene_exocrine_gland_part_0.npy
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6dd22ad95b77cc4d2b066b6947dec6eae75c6113f800dd8698338114388d6b8e
|
| 3 |
+
size 2162380800
|
expression_matrix/cellxgene_eye_part_0.npy
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b43f33364f81da14a33edade4284723654db3606b780ce70ecdba7cdd9b1dfd9
|
| 3 |
+
size 16481560128
|
expression_matrix/cellxgene_head_part_0.npy
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:eb5a433b3958549b16d37baa76103ac8857b1685e55e3ac54f7d62c0eaef8962
|
| 3 |
+
size 56037432
|
expression_matrix/cellxgene_heart_part_0.npy
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c555bfa84aded33baa9b1868d20cc536d0ad570c3b16eec5cc79f418cc120b82
|
| 3 |
+
size 16481560128
|
expression_matrix/cellxgene_heart_part_1.npy
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e93c6e4cd777a672fc640ac94df85493cb5823727f4fb3e7504104455f29284c
|
| 3 |
+
size 16481560128
|
expression_matrix/cellxgene_hindlimb_part_0.npy
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ddad79cd8976db3411f5eb2614f3ffdce64db49a28b4bde60f021c72aaaab44b
|
| 3 |
+
size 1363025140
|
expression_matrix/cellxgene_intestine_part_0.npy
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4ab99b7bc531bfff5e77fc6b6b9fa327a4b8902f803d12f26ff2d2f03354255f
|
| 3 |
+
size 3947333748
|
expression_matrix/cellxgene_liver_part_0.npy
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5ac768b65d4ca9339af7dade8e3ec61dd9d09374ef6a103091f75cd7978cfb0b
|
| 3 |
+
size 13088006924
|
expression_matrix/cellxgene_lung_part_2.npy
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5ccc05669678e82c4306361197531b16d466790009a9af16c7bff405870e4084
|
| 3 |
+
size 16481560128
|
expression_matrix/cellxgene_neck_part_0.npy
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:623bfd2a0ee4386a4e33e089652cb0e1a1695c33a3a11e7455c4956ed7cdd3b5
|
| 3 |
+
size 112074736
|
expression_matrix/cellxgene_nose_part_0.npy
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:82f448cd27ccb4206536ed8a0b87b25e0b9e5ade31cad23d88f13f470cb0f7da
|
| 3 |
+
size 4206094240
|
expression_matrix/cellxgene_ovary_part_0.npy
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:126d1950097588a9df4a52f8690f58418943b0c0c137e7dcd68016d9505ed8fd
|
| 3 |
+
size 2170621580
|
expression_matrix/cellxgene_pancreas_part_0.npy
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:872b7084483c5545274f816d142a4f47e3ac5356ad9a0a6b14670285c6243892
|
| 3 |
+
size 1959657612
|
expression_matrix/cellxgene_paracolic_gutter_part_0.npy
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:34097da00efb84e84f9d65af3e25255c7f06be71371fa9c439f64516d7cac1c7
|
| 3 |
+
size 65926368
|
expression_matrix/cellxgene_scalp_part_0.npy
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:61b488913adfa0e6d59bfd49febb4b10b415dc100fff4d46d5181cb6f0a9f7cd
|
| 3 |
+
size 24722468
|
expression_matrix/cellxgene_small_intestine_part_0.npy
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:62fb54de7396ea8b2da383771e799791d217716515890cb9119103ee4df55b36
|
| 3 |
+
size 12097465168
|
expression_matrix/cellxgene_spleen_part_0.npy
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:64cad35a0fc2f169b62b5c6b7143ee5fef2354c45c42aabdf5f477778da165b4
|
| 3 |
+
size 4947764440
|
expression_matrix/cellxgene_tendon_of_semitendinosus_part_0.npy
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:31d7ff5f98c626e5648eb2f848486584939fbf574c9766384d41718deb513509
|
| 3 |
+
size 85704240
|
expression_matrix/cellxgene_vasculature_part_0.npy
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:91287e583785d0c9e273c2a6d1253da5c3724c5a3f6e33647216da242ce2efd6
|
| 3 |
+
size 3070514756
|
expression_matrix/geo_blood_part_0.npy
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:dac8770c2ddd9b98c23c6b194d54f72d93f3addd39bd50848e39613abcc2ecf8
|
| 3 |
+
size 4100612256
|
expression_matrix/hepatitisCatlas_liver_part_0.npy
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ebe46b6c66f49e3cc32bea00e9fd3636f025f6bac0790e1ce4781869448273fe
|
| 3 |
+
size 62630056
|
internal_edge_index.npy
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:524acf84bde5a38c51b3f513336db09a188002a0bb7104ecc686ec127f2364ff
|
| 3 |
+
size 2441488
|
s_desc.csv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:82bcab6e1cbf8be6e56c7209fbf300b0e06125110315e2baab4ef1dd969c7000
|
| 3 |
+
size 46202329
|
x_bio_emb.npy
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:60eed90040a1dcbd2d71892f816970f0f5b7a4a1f161e82fc1e97e2daeb13b72
|
| 3 |
+
size 2133960
|
x_desc_emb.npy
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:03ba3f6c5832cbacfbb684e5cddc587b110d6bf7d862a2f4fb3ad296e1c542ee
|
| 3 |
+
size 2133960
|