jkh commited on
Commit
b04fd8e
Β·
verified Β·
1 Parent(s): e65f88a

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +76 -42
README.md CHANGED
@@ -16,32 +16,46 @@ size_categories:
16
  language:
17
  - en
18
 
19
- # Dataset configurations - Head dataset only (Body dataset WIP)
20
  configs:
21
  - config_name: default
22
  data_files:
23
- - split: expression
24
  path: "aging_fly_head_expression.parquet"
25
- - split: sample_metadata
26
  path: "aging_fly_head_sample_metadata.parquet"
27
- - split: feature_metadata
28
  path: "aging_fly_head_feature_metadata.parquet"
29
- - split: projection_pca
30
  path: "aging_fly_head_projection_X_pca.parquet"
31
- - split: projection_tsne
32
  path: "aging_fly_head_projection_X_tsne.parquet"
33
- - split: projection_umap
34
  path: "aging_fly_head_projection_X_umap.parquet"
 
 
 
 
 
 
 
 
 
 
 
 
35
 
36
  - config_name: metadata_json
37
  data_files:
38
- - split: unstructured_metadata
39
  path: "aging_fly_head_unstructured_metadata.json"
 
 
40
  ---
41
 
42
- # 🧬 Aging Fly Cell Atlas (AFCA) - Head Dataset (Body WIP)
43
 
44
- > **Comprehensive single-nucleus transcriptomic atlas of aging in Drosophila melanogaster head tissue for longevity research and machine learning applications**
45
 
46
  [![Dataset](https://img.shields.io/badge/πŸ€—%20Dataset-Aging%20Fly%20Cell%20Atlas-blue)](https://huggingface.co/datasets/longevity-gpt/aging-fly-cell-atlas)
47
  [![Paper](https://img.shields.io/badge/πŸ“–%20Paper-Science%202023-red)](https://www.science.org/doi/10.1126/science.adg0934)
@@ -57,42 +71,50 @@ configs:
57
 
58
  This dataset provides the most comprehensive single-nucleus transcriptomic atlas of aging in _Drosophila melanogaster_, covering the entire organism across the lifespan. The Aging Fly Cell Atlas (AFCA) enables unprecedented insights into cellular aging, longevity mechanisms, and age-related disease processes.
59
 
60
- ### Key Features (Head Dataset)
61
- - **~290,000 single nuclei** from fly head tissue (Body dataset: WIP)
62
- - **40 distinct head cell types** with detailed annotations
63
  - **Multiple age timepoints**: 5, 30, 50, 70 days across lifespan
64
  - **Sex-stratified data**: Male and female flies analyzed separately
65
  - **Rich annotations**: AFCA, FCA, and broad cell type classifications
66
- - **Pre-computed embeddings**: PCA (50D), t-SNE, and UMAP coordinates
67
  - **Quality control metrics**: Comprehensive QC data for all cells
68
 
69
  ---
70
 
71
  ## πŸ—‚οΈ Dataset Structure
72
 
73
- The processed AFCA head dataset contains optimized parquet files ready for HuggingFace:
74
 
75
  ```
76
  processed/
77
- β”œβ”€β”€ aging_fly_head_expression.parquet # Expression matrix (962MB)
78
- β”œβ”€β”€ aging_fly_head_sample_metadata.parquet # Cell metadata (5.6MB)
 
79
  β”œβ”€β”€ aging_fly_head_feature_metadata.parquet # Gene annotations (220KB)
80
- β”œβ”€β”€ aging_fly_head_projection_X_pca.parquet # PCA embeddings (258MB)
81
- β”œβ”€β”€ aging_fly_head_projection_X_umap.parquet # UMAP coordinates (5.8MB)
82
- β”œβ”€β”€ aging_fly_head_projection_X_tsne.parquet # t-SNE coordinates (5.8MB)
83
- └── aging_fly_head_unstructured_metadata.json # Processing metadata (1.4KB)
 
 
 
 
 
 
 
 
 
84
  ```
85
 
86
- ### Data Dimensions (Head Dataset)
87
- - **Cells**: ~290,000 single nuclei from head tissue
88
  - **Genes**: ~16,000 protein-coding and non-coding genes
89
- - **Cell Types**: 40 distinct head cell types
90
  - **Ages**: Multiple timepoints (5, 30, 50, 70 days across lifespan)
91
  - **Sexes**: Male and female flies
92
  - **Annotations**: 3 levels (AFCA, FCA, and broad classifications)
93
- - **File Size**: 1.2GB total (optimized parquet format)
94
-
95
- **Note**: Body dataset processing is in progress and will be added in future release.
96
 
97
  ---
98
 
@@ -127,24 +149,36 @@ processed/
127
  from datasets import load_dataset
128
  import pandas as pd
129
 
130
- # Load the AFCA head dataset from HuggingFace
131
- dataset = load_dataset("longevity-gpt/aging-fly-cell-atlas")
 
 
 
 
 
 
 
132
 
133
- # Access the data splits
134
- expression = dataset['expression'].to_pandas()
135
- sample_metadata = dataset['sample_metadata'].to_pandas()
136
- feature_metadata = dataset['feature_metadata'].to_pandas()
137
- pca_coords = dataset['projection_pca'].to_pandas()
138
- umap_coords = dataset['projection_umap'].to_pandas()
139
- tsne_coords = dataset['projection_tsne'].to_pandas()
140
 
141
- print(f"Head dataset: {expression.shape[0]:,} cells Γ— {expression.shape[1]:,} genes")
142
- print(f"Ages available: {sorted(sample_metadata['age'].unique())}")
143
- print(f"Cell types: {sample_metadata['afca_annotation'].nunique()}")
 
 
 
 
 
 
 
144
 
145
- # Alternative: Load directly from parquet files
146
- # expression = pd.read_parquet("aging_fly_head_expression.parquet")
147
- # sample_metadata = pd.read_parquet("aging_fly_head_sample_metadata.parquet")
148
  ```
149
 
150
  ### Aging Analysis Example
 
16
  language:
17
  - en
18
 
19
+ # Dataset configurations - Complete head and body datasets
20
  configs:
21
  - config_name: default
22
  data_files:
23
+ - split: head_expression
24
  path: "aging_fly_head_expression.parquet"
25
+ - split: head_sample_metadata
26
  path: "aging_fly_head_sample_metadata.parquet"
27
+ - split: head_feature_metadata
28
  path: "aging_fly_head_feature_metadata.parquet"
29
+ - split: head_projection_pca
30
  path: "aging_fly_head_projection_X_pca.parquet"
31
+ - split: head_projection_tsne
32
  path: "aging_fly_head_projection_X_tsne.parquet"
33
+ - split: head_projection_umap
34
  path: "aging_fly_head_projection_X_umap.parquet"
35
+ - split: body_expression
36
+ path: "aging_fly_body_expression.parquet"
37
+ - split: body_sample_metadata
38
+ path: "aging_fly_body_sample_metadata.parquet"
39
+ - split: body_feature_metadata
40
+ path: "aging_fly_body_feature_metadata.parquet"
41
+ - split: body_projection_pca
42
+ path: "aging_fly_body_projection_X_pca.parquet"
43
+ - split: body_projection_tsne
44
+ path: "aging_fly_body_projection_X_tsne.parquet"
45
+ - split: body_projection_umap
46
+ path: "aging_fly_body_projection_X_umap.parquet"
47
 
48
  - config_name: metadata_json
49
  data_files:
50
+ - split: head_unstructured_metadata
51
  path: "aging_fly_head_unstructured_metadata.json"
52
+ - split: body_unstructured_metadata
53
+ path: "aging_fly_body_unstructured_metadata.json"
54
  ---
55
 
56
+ # 🧬 Aging Fly Cell Atlas (AFCA) - Complete Dataset
57
 
58
+ > **Comprehensive single-nucleus transcriptomic atlas of aging in Drosophila melanogaster covering both head and body tissues for longevity research and machine learning applications**
59
 
60
  [![Dataset](https://img.shields.io/badge/πŸ€—%20Dataset-Aging%20Fly%20Cell%20Atlas-blue)](https://huggingface.co/datasets/longevity-gpt/aging-fly-cell-atlas)
61
  [![Paper](https://img.shields.io/badge/πŸ“–%20Paper-Science%202023-red)](https://www.science.org/doi/10.1126/science.adg0934)
 
71
 
72
  This dataset provides the most comprehensive single-nucleus transcriptomic atlas of aging in _Drosophila melanogaster_, covering the entire organism across the lifespan. The Aging Fly Cell Atlas (AFCA) enables unprecedented insights into cellular aging, longevity mechanisms, and age-related disease processes.
73
 
74
+ ### Key Features (Complete Dataset)
75
+ - **566,273 single nuclei** from both head and body tissues
76
+ - **78 distinct cell types** with detailed annotations (40 head + 38 body types)
77
  - **Multiple age timepoints**: 5, 30, 50, 70 days across lifespan
78
  - **Sex-stratified data**: Male and female flies analyzed separately
79
  - **Rich annotations**: AFCA, FCA, and broad cell type classifications
80
+ - **Pre-computed embeddings**: PCA, t-SNE, and UMAP coordinates for both tissues
81
  - **Quality control metrics**: Comprehensive QC data for all cells
82
 
83
  ---
84
 
85
  ## πŸ—‚οΈ Dataset Structure
86
 
87
+ The processed AFCA complete dataset contains optimized parquet files ready for HuggingFace:
88
 
89
  ```
90
  processed/
91
+ # HEAD TISSUE
92
+ β”œβ”€β”€ aging_fly_head_expression.parquet # Head expression matrix (962MB)
93
+ β”œβ”€β”€ aging_fly_head_sample_metadata.parquet # Head cell metadata (5.6MB)
94
  β”œβ”€β”€ aging_fly_head_feature_metadata.parquet # Gene annotations (220KB)
95
+ β”œβ”€β”€ aging_fly_head_projection_X_pca.parquet # Head PCA embeddings (258MB)
96
+ β”œβ”€β”€ aging_fly_head_projection_X_umap.parquet # Head UMAP coordinates (5.8MB)
97
+ β”œβ”€β”€ aging_fly_head_projection_X_tsne.parquet # Head t-SNE coordinates (5.8MB)
98
+ β”œβ”€β”€ aging_fly_head_unstructured_metadata.json # Head processing metadata
99
+
100
+ # BODY TISSUE
101
+ β”œβ”€β”€ aging_fly_body_expression.parquet # Body expression matrix (916MB)
102
+ β”œβ”€β”€ aging_fly_body_sample_metadata.parquet # Body cell metadata (5.5MB)
103
+ β”œβ”€β”€ aging_fly_body_feature_metadata.parquet # Gene annotations (220KB)
104
+ β”œβ”€β”€ aging_fly_body_projection_X_pca.parquet # Body PCA embeddings (85MB)
105
+ β”œβ”€β”€ aging_fly_body_projection_X_umap.parquet # Body UMAP coordinates (5.6MB)
106
+ └── aging_fly_body_projection_X_tsne.parquet # Body t-SNE coordinates (5.6MB)
107
+ └── aging_fly_body_unstructured_metadata.json # Body processing metadata
108
  ```
109
 
110
+ ### Data Dimensions (Complete Dataset)
111
+ - **Cells**: 566,273 single nuclei (289,981 head + 276,273 body)
112
  - **Genes**: ~16,000 protein-coding and non-coding genes
113
+ - **Cell Types**: 78 distinct cell types (40 head + 38 body)
114
  - **Ages**: Multiple timepoints (5, 30, 50, 70 days across lifespan)
115
  - **Sexes**: Male and female flies
116
  - **Annotations**: 3 levels (AFCA, FCA, and broad classifications)
117
+ - **File Size**: 2.2GB total (optimized parquet format)
 
 
118
 
119
  ---
120
 
 
149
  from datasets import load_dataset
150
  import pandas as pd
151
 
152
+ # Load the complete AFCA dataset from HuggingFace
153
+ dataset = load_dataset("longevity-db/aging-fly-cell-atlas")
154
+
155
+ # Access HEAD tissue data
156
+ head_expression = dataset['head_expression'].to_pandas()
157
+ head_metadata = dataset['head_sample_metadata'].to_pandas()
158
+ head_features = dataset['head_feature_metadata'].to_pandas()
159
+ head_pca = dataset['head_projection_pca'].to_pandas()
160
+ head_umap = dataset['head_projection_umap'].to_pandas()
161
 
162
+ # Access BODY tissue data
163
+ body_expression = dataset['body_expression'].to_pandas()
164
+ body_metadata = dataset['body_sample_metadata'].to_pandas()
165
+ body_features = dataset['body_feature_metadata'].to_pandas()
166
+ body_pca = dataset['body_projection_pca'].to_pandas()
167
+ body_umap = dataset['body_projection_umap'].to_pandas()
 
168
 
169
+ print(f"Head dataset: {head_expression.shape[0]:,} cells Γ— {head_expression.shape[1]:,} genes")
170
+ print(f"Body dataset: {body_expression.shape[0]:,} cells Γ— {body_expression.shape[1]:,} genes")
171
+ print(f"Total cells: {head_expression.shape[0] + body_expression.shape[0]:,}")
172
+
173
+ # Combine datasets if needed
174
+ import pandas as pd
175
+ combined_metadata = pd.concat([
176
+ head_metadata.assign(tissue='head'),
177
+ body_metadata.assign(tissue='body')
178
+ ], ignore_index=True)
179
 
180
+ print(f"Cell types: {combined_metadata['afca_annotation'].nunique()}")
181
+ print(f"Ages available: {sorted(combined_metadata['age'].unique())}")
 
182
  ```
183
 
184
  ### Aging Analysis Example