Shaow commited on
Commit
c059df2
·
verified ·
1 Parent(s): 485333e

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +79 -0
README.md ADDED
@@ -0,0 +1,79 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ language:
4
+ - en
5
+ tags:
6
+ - spatial-transcriptomics
7
+ - 10x
8
+ - mus
9
+ pretty_name: Mouse Brain Visium · 3 complementary sections
10
+ size_categories:
11
+ - 10K<n<100K
12
+ ---
13
+
14
+ # Mouse Brain Visium · 3 complementary sections
15
+
16
+ Curated, ready-to-load spatial transcriptomics dataset.
17
+
18
+ ## Source
19
+
20
+ - Paper: [10x Genomics public datasets](https://www.10xgenomics.com/datasets)
21
+ - Canonical download: cf.10xgenomics.com/samples/spatial-exp/1.1.0/V1_*
22
+
23
+ ## Scale
24
+
25
+ | Property | Value |
26
+ |---|---|
27
+ | Technology | 10x Genomics Visium |
28
+ | Species | Mus musculus |
29
+ | Tissue | Mouse brain (sagittal anterior, sagittal posterior, coronal) |
30
+ | Sections / slices | 3 |
31
+ | Total cells / spots | 8,816 |
32
+
33
+ ## Files
34
+
35
+ - `Visium_sagittal-anterior2/V1_Mouse_Brain_Sagittal_Anterior_Section_2_filtered_feature_bc_matrix.h5`
36
+ - `Visium_sagittal-posterior2/V1_Mouse_Brain_Sagittal_Posterior_Section_2_filtered_feature_bc_matrix.h5`
37
+ - `Visium_coronal/V1_Adult_Mouse_Brain_filtered_feature_bc_matrix.h5`
38
+
39
+ Each `.h5ad` follows the AnnData spec:
40
+ - `.X` — gene expression matrix (cells × genes), sparse where natural
41
+ - `.obs` — per-cell annotations (see "Metadata" below)
42
+ - `.obsm['spatial']` — `(n_cells, 2)` float32 spatial coordinates
43
+ - (where present) `.layers['count']` — raw integer counts
44
+ - (where present) `.obsm['spatial3d']` — `(n_cells, 3)` float32 (x, y, z=section)
45
+
46
+ ## Metadata (`obs` columns)
47
+
48
+ `in_tissue`, `array_row`, `array_col`
49
+
50
+ ## Notes
51
+
52
+ Three 10x Visium mouse-brain serial sections offering complementary tissue views. Original 10x outputs (filtered h5 + spatial/) kept in conventional subfolders so `sc.read_visium(folder)` works directly. After filtering to in_tissue==1: 2825 / 3289 / 2702 spots respectively.
53
+
54
+ ## Usage
55
+
56
+ ```python
57
+ import scanpy as sc
58
+ from huggingface_hub import snapshot_download
59
+ d = snapshot_download(repo_id='Shaow/mousebrain_visium_3section', repo_type='dataset')
60
+ adata_st_list = []
61
+ for sub, h5 in [
62
+ ('Visium_sagittal-anterior2', 'V1_Mouse_Brain_Sagittal_Anterior_Section_2_filtered_feature_bc_matrix.h5'),
63
+ ('Visium_sagittal-posterior2', 'V1_Mouse_Brain_Sagittal_Posterior_Section_2_filtered_feature_bc_matrix.h5'),
64
+ ('Visium_coronal', 'V1_Adult_Mouse_Brain_filtered_feature_bc_matrix.h5'),
65
+ ]:
66
+ a = sc.read_visium(f'{d}/{sub}', count_file=h5)
67
+ a.var_names_make_unique()
68
+ adata_st_list.append(a[a.obs['in_tissue'] == 1].copy())
69
+ ```
70
+
71
+
72
+ ## Citation
73
+
74
+ If you use this dataset, please cite the source paper above.
75
+
76
+ ## License
77
+
78
+ MIT for the curation/preparation. Underlying data inherits the license of
79
+ the upstream publication (typically CC-BY-4.0); please see the source paper.