Catchxu commited on
Commit
e6b3c98
·
1 Parent(s): 2084d63

Publish scCAFM tutorial datasets

Browse files
.gitattributes CHANGED
@@ -4,9 +4,11 @@
4
  *.bin filter=lfs diff=lfs merge=lfs -text
5
  *.bz2 filter=lfs diff=lfs merge=lfs -text
6
  *.ckpt filter=lfs diff=lfs merge=lfs -text
 
7
  *.ftz filter=lfs diff=lfs merge=lfs -text
8
  *.gz filter=lfs diff=lfs merge=lfs -text
9
  *.h5 filter=lfs diff=lfs merge=lfs -text
 
10
  *.joblib filter=lfs diff=lfs merge=lfs -text
11
  *.lfs.* filter=lfs diff=lfs merge=lfs -text
12
  *.lz4 filter=lfs diff=lfs merge=lfs -text
 
4
  *.bin filter=lfs diff=lfs merge=lfs -text
5
  *.bz2 filter=lfs diff=lfs merge=lfs -text
6
  *.ckpt filter=lfs diff=lfs merge=lfs -text
7
+ *.csv filter=lfs diff=lfs merge=lfs -text
8
  *.ftz filter=lfs diff=lfs merge=lfs -text
9
  *.gz filter=lfs diff=lfs merge=lfs -text
10
  *.h5 filter=lfs diff=lfs merge=lfs -text
11
+ *.h5ad filter=lfs diff=lfs merge=lfs -text
12
  *.joblib filter=lfs diff=lfs merge=lfs -text
13
  *.lfs.* filter=lfs diff=lfs merge=lfs -text
14
  *.lz4 filter=lfs diff=lfs merge=lfs -text
LICENSES.md ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Rights, licences and attribution
2
+
3
+ This repository aggregates tutorial-ready derivatives from multiple public sources. It does not apply the scCAFM software licence to third-party data. Each component retains the terms and attribution requirements of its source.
4
+
5
+ ## Component-specific terms
6
+
7
+ | Repository files | Source | Source terms |
8
+ |---|---|---|
9
+ | `chipseq_grn_recovery/hESC.h5ad`, `chipseq_grn_recovery/mESC.h5ad`, `chipseq_grn_recovery/hESC-ChIP-seq.csv`, `chipseq_grn_recovery/mESC-ChIP-seq.csv` | BEELINE data record, [10.5281/zenodo.3378975](https://doi.org/10.5281/zenodo.3378975) | [CC BY-NC 4.0](https://creativecommons.org/licenses/by-nc/4.0/) as stated by the Zenodo record |
10
+ | `perturbseq_edge_validation/K562.h5ad` | Replogle and Weissman processed Perturb-seq record, [10.25452/figshare.plus.20029387.v1](https://doi.org/10.25452/figshare.plus.20029387.v1) | [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) as stated by the Figshare record |
11
+ | `cell_specific_grns/mPancreas.h5ad` | Bastidas-Ponce *et al.* data, [GSE132188](https://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=GSE132188), distributed in processed form through scVelo | No new licence is asserted by this aggregation; consult the original GEO record, publication and distribution source for applicable terms |
12
+ | `README.md`, `LICENSES.md`, `MANIFEST.tsv` | scCAFM dataset packaging metadata | Provided for attribution and reproducibility with this repository |
13
+
14
+ ## Attribution
15
+
16
+ Users must cite the original data generators and repository records relevant to the files they use. The required source links and study identifiers are provided in the root [`README.md`](README.md).
17
+
18
+ ## No additional grant
19
+
20
+ Except for the repository-authored metadata, this repository does not grant rights beyond those provided by the original data owners and repositories. If the terms displayed here conflict with an original source record, the original source record controls.
MANIFEST.tsv ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ path size_bytes sha256 format records variables source_identifier
2
+ cell_specific_grns/mPancreas.h5ad 52500160 6f5a0dc98295e7c909573fec8058c17a30502882562f258021f04df0a26334d9 H5AD 3696 cells 27998 genes GEO:GSE132188
3
+ chipseq_grn_recovery/hESC.h5ad 45939135 b4913b26e73326a0d8d226edb6dbca9a53c803e82d9d2c85decf1e9271a40427 H5AD 758 cells 17735 genes GEO:GSE75748; DOI:10.5281/zenodo.3378975
4
+ chipseq_grn_recovery/mESC.h5ad 47678592 e8e312befc7c5c7fc4aa23144792a0e3917820fe2020e23f733163047c1e5d11 H5AD 421 cells 18385 genes GEO:GSE98664; DOI:10.5281/zenodo.3378975
5
+ chipseq_grn_recovery/hESC-ChIP-seq.csv 5699096 23fa58c407cb654cd820ff6286e728bf0646b387fcc1c7c7f5d65ac2ee26fa61 CSV 441991 edges 2 columns DOI:10.5281/zenodo.3378975
6
+ chipseq_grn_recovery/mESC-ChIP-seq.csv 13176251 a2ffed3ad8cb33410662e57b49a8300ecdd8e523a0e14cd370c55bc761c28ace CSV 985654 edges 2 columns DOI:10.5281/zenodo.3378975
7
+ perturbseq_edge_validation/K562.h5ad 792811426 f3d20e979e1454dc68381f782d5756b336fdba3dbb642b59cf9cb866ccefa128 H5AD 162751 cells 8563 genes DOI:10.25452/figshare.plus.20029387.v1; GEO:GSE146194
README.md CHANGED
@@ -1,3 +1,193 @@
1
  ---
2
- license: gpl-3.0
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ license: other
3
+ language:
4
+ - en
5
+ pretty_name: scCAFM Tutorial Data
6
+ size_categories:
7
+ - 100K<n<1M
8
+ tags:
9
+ - single-cell
10
+ - scRNA-seq
11
+ - gene-regulatory-network
12
+ - perturb-seq
13
+ - chip-seq
14
+ - genomics
15
+ - biology
16
  ---
17
+
18
+ # scCAFM Tutorial Data
19
+
20
+ This repository contains the prepared datasets used by the executable tutorials for **scCAFM**, a causality-aware single-cell RNA-seq foundation model. The collection supports three workflows:
21
+
22
+ 1. inference of cell-specific gene regulatory networks (GRNs) in developing mouse pancreas;
23
+ 2. pooled-GRN inference and ChIP-seq-based benchmarking in human and mouse embryonic stem cells;
24
+ 3. validation of predicted regulatory edges with CRISPRi Perturb-seq in K562 cells.
25
+
26
+ These files are tutorial-ready derivatives of public research datasets. They are not replacements for the primary archives. Users should cite the relevant original study and repository record listed below.
27
+
28
+ Related resources:
29
+
30
+ - [scCAFM model](https://huggingface.co/kaichenxu/scCAFM)
31
+ - [scCAFM source and tutorials](https://github.com/Catchxu/scCAFM)
32
+ - [scCAFM Space](https://huggingface.co/spaces/kaichenxu/scCAFM)
33
+
34
+ ## Repository structure
35
+
36
+ ```text
37
+ scCAFM-data/
38
+ ├── cell_specific_grns/
39
+ │ └── mPancreas.h5ad
40
+ ├── chipseq_grn_recovery/
41
+ │ ├── hESC.h5ad
42
+ │ ├── mESC.h5ad
43
+ │ ├── hESC-ChIP-seq.csv
44
+ │ └── mESC-ChIP-seq.csv
45
+ ├── perturbseq_edge_validation/
46
+ │ └── K562.h5ad
47
+ ├── LICENSES.md
48
+ └── MANIFEST.tsv
49
+ ```
50
+
51
+ ## Dataset inventory
52
+
53
+ | File | Contents | Dimensions |
54
+ |---|---|---:|
55
+ | `cell_specific_grns/mPancreas.h5ad` | Processed E15.5 mouse pancreatic endocrinogenesis data with cell-population annotations, spliced/unspliced layers, PCA and UMAP coordinates | 3,696 cells × 27,998 genes |
56
+ | `chipseq_grn_recovery/hESC.h5ad` | BEELINE-derived human embryonic stem-cell expression matrix | 758 cells × 17,735 genes |
57
+ | `chipseq_grn_recovery/mESC.h5ad` | BEELINE-derived mouse embryonic stem-cell expression matrix | 421 cells × 18,385 genes |
58
+ | `chipseq_grn_recovery/hESC-ChIP-seq.csv` | Directed human ChIP-seq reference edges (`Gene1` regulator, `Gene2` target) | 441,991 edges |
59
+ | `chipseq_grn_recovery/mESC-ChIP-seq.csv` | Directed mouse ChIP-seq reference edges (`Gene1` regulator, `Gene2` target) | 985,654 edges |
60
+ | `perturbseq_edge_validation/K562.h5ad` | QC-filtered raw-count K562 essential-scale CRISPRi Perturb-seq data | 162,751 cells × 8,563 genes |
61
+
62
+ SHA-256 checksums and exact byte sizes are provided in [`MANIFEST.tsv`](MANIFEST.tsv).
63
+
64
+ ## Data formats
65
+
66
+ ### AnnData files
67
+
68
+ The `.h5ad` files follow the [AnnData](https://anndata.readthedocs.io/) convention:
69
+
70
+ - rows (`obs`) are cells;
71
+ - columns (`var`) are measured genes;
72
+ - `X` stores the expression matrix;
73
+ - additional annotations, layers and embeddings are retained where available.
74
+
75
+ Important fields include:
76
+
77
+ - `mPancreas.h5ad`
78
+ - `obs["clusters"]`: eight detailed cell populations;
79
+ - `obs["clusters_coarse"]`: five broader populations;
80
+ - `obs["species"]`: `mouse`;
81
+ - `layers["spliced"]` and `layers["unspliced"]`;
82
+ - `obsm["X_pca"]` and `obsm["X_umap"]`.
83
+ - `hESC.h5ad` and `mESC.h5ad`
84
+ - `obs["species"]`;
85
+ - `obs["disease"]`, set to `normal`.
86
+ - `K562.h5ad`
87
+ - `X`: raw counts after the recorded filtering and perturbation-QC steps;
88
+ - `obs["gene"]`: perturbed gene or `non-targeting`;
89
+ - `obs["gene_id"]`: Ensembl gene identifier for the perturbation;
90
+ - `obs["sgID_AB"]`: paired guide identifiers;
91
+ - `obs["species"]`, `obs["disease"]`, `obs["cell_line"]`, `obs["cell_type"]` and `obs["tissue"]`;
92
+ - `var["gene_name"]`: gene symbol;
93
+ - `uns["basic_filter"]` and `uns["perturbation_qc"]`: recorded preparation parameters and cell counts.
94
+
95
+ ### ChIP-seq edge tables
96
+
97
+ Both CSV files contain:
98
+
99
+ | Column | Definition |
100
+ |---|---|
101
+ | `Gene1` | Regulator/transcription factor |
102
+ | `Gene2` | Putative target gene supported by the BEELINE ChIP-seq reference |
103
+
104
+ The ChIP-seq networks are experimental reference networks, not absolute biological ground truth.
105
+
106
+ ## Download and load
107
+
108
+ Download the complete snapshot:
109
+
110
+ ```python
111
+ from huggingface_hub import snapshot_download
112
+
113
+ snapshot_download(
114
+ repo_id="kaichenxu/scCAFM-data",
115
+ repo_type="dataset",
116
+ local_dir="tutorial_data",
117
+ )
118
+ ```
119
+
120
+ Load the files:
121
+
122
+ ```python
123
+ import anndata as ad
124
+ import pandas as pd
125
+
126
+ pancreas = ad.read_h5ad(
127
+ "tutorial_data/cell_specific_grns/mPancreas.h5ad"
128
+ )
129
+
130
+ hesc_chip = pd.read_csv(
131
+ "tutorial_data/chipseq_grn_recovery/hESC-ChIP-seq.csv"
132
+ )
133
+ ```
134
+
135
+ For reproducible analyses, pin the dataset repository to a commit revision when calling `snapshot_download`.
136
+
137
+ ## Provenance and preparation
138
+
139
+ ### Mouse pancreatic endocrinogenesis
140
+
141
+ `mPancreas.h5ad` is derived from the processed E15.5 pancreatic endocrinogenesis dataset distributed through scVelo. The underlying experiment is available from GEO under [GSE132188](https://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=GSE132188) and was described by Bastidas-Ponce *et al.* The publication copy corrects an erroneous `obs["species"]` value from `human` to `mouse`; the expression matrix, layers, annotations and embeddings are otherwise unchanged during this packaging step.
142
+
143
+ ### Embryonic stem-cell expression and ChIP-seq references
144
+
145
+ The hESC and mESC materials are reformatted from the experimental expression data and ChIP-seq reference networks distributed with BEELINE:
146
+
147
+ - BEELINE data record: [10.5281/zenodo.3378975](https://doi.org/10.5281/zenodo.3378975)
148
+ - BEELINE study: [10.1038/s41592-019-0690-6](https://doi.org/10.1038/s41592-019-0690-6)
149
+ - hESC source experiment: [GSE75748](https://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=GSE75748)
150
+ - mESC source experiment: [GSE98664](https://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=GSE98664)
151
+
152
+ The expression matrices were placed into cell-by-gene AnnData files and supplied with the species and condition fields required by the scCAFM tutorials. The directed ChIP-seq edge tables retain the BEELINE regulator-target representation.
153
+
154
+ ### K562 Perturb-seq
155
+
156
+ `K562.h5ad` is derived from the K562 essential-scale CRISPRi Perturb-seq experiment sampled at day 6 in Replogle *et al.*:
157
+
158
+ - processed-data record: [10.25452/figshare.plus.20029387.v1](https://doi.org/10.25452/figshare.plus.20029387.v1)
159
+ - study: [10.1016/j.cell.2022.05.013](https://doi.org/10.1016/j.cell.2022.05.013)
160
+ - raw sequencing archive: [GSE146194](https://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=GSE146194)
161
+
162
+ The preparation started from the raw single-cell count object. The stored provenance records 310,385 original cells, 192,648 cells after perturbation-level QC and 162,751 retained cells after cell-level QC. Basic filters require at least 200 detected genes per cell and at least three cells per gene. The stored perturbation-QC metadata records a minimum of more than 25 filtered cells, a maximum knockdown percentage of −0.3 (inclusive), more than 50 differentially expressed genes, and a 10th-percentile control threshold for cell-effect filtering.
163
+
164
+ ## Intended use
165
+
166
+ The collection is intended for:
167
+
168
+ - running the curated scCAFM tutorials;
169
+ - testing scCAFM data loading and preprocessing;
170
+ - reproducing the tutorial-level GRN inference and validation examples;
171
+ - educational exploration of single-cell GRN workflows.
172
+
173
+ It is not intended to serve as a new primary archive, a clinical resource or a comprehensive reprocessing of the source studies.
174
+
175
+ ## Limitations
176
+
177
+ - The files are processed tutorial derivatives; consult the primary repositories for raw data and full experimental metadata.
178
+ - ChIP-seq binding provides population-level regulatory evidence but does not prove that every edge is active in every cell.
179
+ - A Perturb-seq expression shift can be indirect or off-target and does not by itself prove a direct TF-target interaction.
180
+ - The three workflows use different organisms, assays and processing histories; matrices should not be concatenated or compared without an explicit harmonization strategy.
181
+ - The hESC and mESC AnnData files contain only the metadata needed by the tutorial and do not reproduce every field from their primary archives.
182
+
183
+ ## Access, rights and attribution
184
+
185
+ This is a mixed-source collection, so no single software license applies to every data file. The repository therefore uses the Hugging Face `other` license designation. Per-source licenses and attribution requirements are documented in [`LICENSES.md`](LICENSES.md). Redistribution through this repository does not replace the original terms, and users must follow the terms associated with each source dataset.
186
+
187
+ ## Citation
188
+
189
+ When using a file from this repository, cite the corresponding original dataset and study listed in **Provenance and preparation**, as well as the scCAFM model or paper associated with the analysis.
190
+
191
+ Suggested repository reference:
192
+
193
+ > Xu, K. (2026). *scCAFM Tutorial Data*. Hugging Face Datasets. https://huggingface.co/datasets/kaichenxu/scCAFM-data
cell_specific_grns/mPancreas.h5ad ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6f5a0dc98295e7c909573fec8058c17a30502882562f258021f04df0a26334d9
3
+ size 52500160
chipseq_grn_recovery/hESC-ChIP-seq.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:23fa58c407cb654cd820ff6286e728bf0646b387fcc1c7c7f5d65ac2ee26fa61
3
+ size 5699096
chipseq_grn_recovery/hESC.h5ad ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b4913b26e73326a0d8d226edb6dbca9a53c803e82d9d2c85decf1e9271a40427
3
+ size 45939135
chipseq_grn_recovery/mESC-ChIP-seq.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a2ffed3ad8cb33410662e57b49a8300ecdd8e523a0e14cd370c55bc761c28ace
3
+ size 13176251
chipseq_grn_recovery/mESC.h5ad ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e8e312befc7c5c7fc4aa23144792a0e3917820fe2020e23f733163047c1e5d11
3
+ size 47678592
perturbseq_edge_validation/K562.h5ad ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f3d20e979e1454dc68381f782d5756b336fdba3dbb642b59cf9cb866ccefa128
3
+ size 792811426