Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -16,32 +16,46 @@ size_categories:
|
|
| 16 |
language:
|
| 17 |
- en
|
| 18 |
|
| 19 |
-
# Dataset configurations -
|
| 20 |
configs:
|
| 21 |
- config_name: default
|
| 22 |
data_files:
|
| 23 |
-
- split:
|
| 24 |
path: "aging_fly_head_expression.parquet"
|
| 25 |
-
- split:
|
| 26 |
path: "aging_fly_head_sample_metadata.parquet"
|
| 27 |
-
- split:
|
| 28 |
path: "aging_fly_head_feature_metadata.parquet"
|
| 29 |
-
- split:
|
| 30 |
path: "aging_fly_head_projection_X_pca.parquet"
|
| 31 |
-
- split:
|
| 32 |
path: "aging_fly_head_projection_X_tsne.parquet"
|
| 33 |
-
- split:
|
| 34 |
path: "aging_fly_head_projection_X_umap.parquet"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
|
| 36 |
- config_name: metadata_json
|
| 37 |
data_files:
|
| 38 |
-
- split:
|
| 39 |
path: "aging_fly_head_unstructured_metadata.json"
|
|
|
|
|
|
|
| 40 |
---
|
| 41 |
|
| 42 |
-
# 𧬠Aging Fly Cell Atlas (AFCA) -
|
| 43 |
|
| 44 |
-
> **Comprehensive single-nucleus transcriptomic atlas of aging in Drosophila melanogaster head
|
| 45 |
|
| 46 |
[](https://huggingface.co/datasets/longevity-gpt/aging-fly-cell-atlas)
|
| 47 |
[](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 (
|
| 61 |
-
- **
|
| 62 |
-
- **
|
| 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
|
| 67 |
- **Quality control metrics**: Comprehensive QC data for all cells
|
| 68 |
|
| 69 |
---
|
| 70 |
|
| 71 |
## ποΈ Dataset Structure
|
| 72 |
|
| 73 |
-
The processed AFCA
|
| 74 |
|
| 75 |
```
|
| 76 |
processed/
|
| 77 |
-
|
| 78 |
-
βββ
|
|
|
|
| 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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 84 |
```
|
| 85 |
|
| 86 |
-
### Data Dimensions (
|
| 87 |
-
- **Cells**:
|
| 88 |
- **Genes**: ~16,000 protein-coding and non-coding genes
|
| 89 |
-
- **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**:
|
| 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
|
| 131 |
-
dataset = load_dataset("longevity-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 132 |
|
| 133 |
-
# Access
|
| 134 |
-
|
| 135 |
-
|
| 136 |
-
|
| 137 |
-
|
| 138 |
-
|
| 139 |
-
tsne_coords = dataset['projection_tsne'].to_pandas()
|
| 140 |
|
| 141 |
-
print(f"Head dataset: {
|
| 142 |
-
print(f"
|
| 143 |
-
print(f"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 144 |
|
| 145 |
-
|
| 146 |
-
|
| 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 |
[](https://huggingface.co/datasets/longevity-gpt/aging-fly-cell-atlas)
|
| 61 |
[](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
|