|
Download README.md from datavil/cellestial-datasets: direct link, hf CLI and curl.
- Browser
- Download file 5.89 kB
-
https://huggingface.co/datasets/datavil/cellestial-datasets/resolve/main/README.md
- Command line
-
hf download hf://datasets/datavil/cellestial-datasets/README.md
-
curl -L -o README.md https://huggingface.co/datasets/datavil/cellestial-datasets/resolve/main/README.md
5.89 kB
| pretty_name: cellestial datasets | |
| license: other | |
| tags: | |
| - biology | |
| - single-cell | |
| - spatial-transcriptomics | |
| - rna-velocity | |
| - anndata | |
| size_categories: | |
| - 10K<n<100K | |
| # cellestial datasets | |
| Preprocessed example datasets for [cellestial](https://cellestial.datavil.org), an | |
| interactive single-cell and spatial omics visualization library. Each file is an | |
| AnnData `.h5ad` that is ready to plot: normalized, log-transformed, with | |
| embeddings and clusters already computed. | |
| | File | Loader | Cells / spots | Genes | Kind | | |
| | --- | --- | ---: | ---: | --- | | |
| | `bone_marrow_pped.h5ad` | `cl.datasets.bone_marrow()` | 17,041 | 23,427 | scRNA-seq, human bone marrow | | |
| | `pbmc3k_10x_pped.h5ad` | `cl.datasets.pbmc3k()` | 2,638 | 13,714 | scRNA-seq, human blood (PBMC) | | |
| | `endocrinogenesis_day15_pped.h5ad` | `cl.datasets.pancreas()` | 3,696 | 1,945 | scRNA-seq with RNA velocity, mouse pancreas | | |
| | `V1_Human_Lymph_Node_pped.h5ad` | `cl.datasets.human_lymph_node()` | 3,861 | 19,685 | Visium spatial transcriptomics, human lymph node | | |
| ## Usage | |
| ```python | |
| import cellestial as cl | |
| data = cl.datasets.bone_marrow() | |
| cl.umap(data, "cell_type_lvl1") | |
| ``` | |
| The loaders download a file once and cache it. To read a file without | |
| cellestial: | |
| ```python | |
| import anndata | |
| from huggingface_hub import hf_hub_download | |
| path = hf_hub_download( | |
| "datavil/cellestial-datasets", "bone_marrow_pped.h5ad", repo_type="dataset" | |
| ) | |
| data = anndata.read_h5ad(path) | |
| ``` | |
| ## Datasets | |
| ### `bone_marrow_pped.h5ad` | |
| Bone marrow mononuclear cells from healthy human donors, two samples (`s1d1`: | |
| 8,713 cells, `s1d3`: 8,328 cells), measured with the 10x Multiome kit. Only gene | |
| expression is included. These are the cells of the scanpy | |
| ["Preprocessing and clustering"](https://scanpy.scverse.org/en/stable/tutorials/basics/clustering.html) | |
| tutorial, taken from the NeurIPS 2021 multimodal single-cell benchmark. | |
| - Processing follows that tutorial: QC metrics (mitochondrial, ribosomal, | |
| hemoglobin genes), doublet scores, normalization and log1p, highly variable | |
| genes, PCA, neighbors, UMAP and t-SNE, Leiden clustering at resolutions 0.02, | |
| 0.5 and 2.0. | |
| - `cell_type_lvl1` is the tutorial's coarse annotation of `leiden_res_0.02`: | |
| Lymphocytes (9,721), Erythroid (3,510), B Cells (2,300), Monocytes (1,510). | |
| - Raw counts for all 36,601 measured genes are kept in `raw`. | |
| - Embeddings: `X_pca`, `X_umap`, `X_tsne`. | |
| Earlier releases of cellestial (0.62.1 and before) shipped this dataset as | |
| `pbmc3k`. It is not the 10x Genomics PBMC 3k dataset; the name was a mistake and | |
| was changed in cellestial 1.0, where `pbmc3k` now loads the real PBMC 3k below. | |
| ### `pbmc3k_10x_pped.h5ad` | |
| The 10x Genomics PBMC 3k: peripheral blood mononuclear cells from a healthy | |
| donor, the dataset of scanpy's | |
| ["Preprocessing and clustering 3k PBMCs"](https://scanpy.scverse.org/en/stable/tutorials/basics/clustering-2017.html) | |
| tutorial. Rebuilt from the raw counts by `scripts/build_pbmc3k.py` in the | |
| cellestial repository. | |
| - QC as in the tutorial (at least 200 genes per cell, genes in at least 3 cells, | |
| under 2,500 genes and under 5% mitochondrial counts per cell): 2,638 of 2,700 | |
| cells kept. | |
| - Unlike the tutorial, the main matrix keeps every gene that passes QC | |
| (13,714), normalized to 10,000 counts per cell and log1p, so any gene can be | |
| plotted. Regression and scaling were applied only to compute the PCA. | |
| - `cell_type` is the tutorial's annotation, matched by barcode: CD4 T cells | |
| (1,144), CD14+ Monocytes (480), B cells (342), CD8 T cells (316), NK cells | |
| (154), FCGR3A+ Monocytes (150), Dendritic cells (37), Megakaryocytes (15). | |
| - `leiden` clusters, highly variable genes, QC metrics. | |
| - Raw counts of the same cells and genes are kept in `raw`. | |
| - Embeddings: `X_pca`, `X_umap`, `X_tsne`. | |
| ### `endocrinogenesis_day15_pped.h5ad` | |
| Mouse pancreatic endocrinogenesis at embryonic day 15.5, the RNA velocity example | |
| dataset of scVelo. | |
| - `clusters`: Ductal, Ngn3 low EP, Ngn3 high EP, Pre-endocrine, Beta, Alpha, | |
| Delta, Epsilon. `clusters_coarse` groups them. | |
| - Layers: `spliced`, `unspliced`, their moments (`Ms`, `Mu`), `velocity` and | |
| `variance_velocity`. | |
| - Embeddings: `X_pca`, `X_umap`, and the projected velocities `velocity_umap`. | |
| - Cell cycle scores `S_score`, `G2M_score`. | |
| ### `V1_Human_Lymph_Node_pped.h5ad` | |
| A 10x Genomics Visium section of human lymph node (public dataset | |
| "V1_Human_Lymph_Node"). | |
| - Only in-tissue spots. QC metrics, normalization and log1p, highly variable | |
| genes, PCA, neighbors, UMAP and Leiden `clusters` (0 to 9). | |
| - Spot coordinates in `obsm["spatial"]`; the tissue image and scale factors are | |
| stored with the file, so spots can be drawn on the image. | |
| ## Sources and terms | |
| The data were produced by the studies below and are redistributed here, after | |
| preprocessing, as examples for cellestial. Each dataset keeps the license and | |
| terms of its original source; please cite the original work when you use it. | |
| - **Bone marrow:** Luecken, M. D. et al. (2021). A sandbox for prediction and | |
| integration of DNA, RNA, and proteins in single cells. *NeurIPS Datasets and | |
| Benchmarks Track*. | |
| - **PBMC 3k:** 10x Genomics public datasets, "3k PBMCs from a Healthy Donor" | |
| (Chromium Single Cell 3'). Cell type annotation from the scanpy tutorial: | |
| Wolf, F. A. et al. (2018). SCANPY: large-scale single-cell gene expression | |
| data analysis. *Genome Biology* 19. | |
| - **Pancreas:** Bastidas-Ponce, A. et al. (2019). Comprehensive single cell mRNA | |
| profiling reveals a detailed roadmap for pancreatic endocrinogenesis. | |
| *Development* 146(12). Bergen, V. et al. (2020). Generalizing RNA velocity to | |
| transient cell states through dynamical modeling. *Nature Biotechnology* 38. | |
| - **Lymph node:** 10x Genomics public datasets, "Human Lymph Node" (Visium | |
| Spatial Gene Expression). | |
| To cite cellestial itself, see the | |
| [cellestial repository](https://github.com/datavil/cellestial). | |