Venkatachalam commited on
Commit
7dac9a7
·
1 Parent(s): 7fdff06

Initial commit: Add Mouse Skeletal Muscle Aging Atlas sn/scRNA-seq dataset

Browse files
README.md ADDED
@@ -0,0 +1,227 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ annotations_creators:
3
+ - found
4
+ language:
5
+ - en
6
+ license: cc-by-4.0 # Or the specific license provided by the Muscle Ageing Cell Atlas
7
+ multilinguality: monolingual
8
+ pretty_name: Mouse Skeletal Muscle Aging Atlas (sn/scRNA-seq)
9
+ size_categories:
10
+ - 100K<n<1M # Based on ~96K cells, this category fits
11
+ source_datasets:
12
+ - original
13
+ tags:
14
+ - single-cell
15
+ - single-nucleus
16
+ - snRNA-seq
17
+ - scRNA-seq
18
+ - mouse
19
+ - skeletal-muscle
20
+ - aging
21
+ - longevity
22
+ - cell-atlas
23
+ - anndata
24
+ - gene-expression
25
+ - pca
26
+ - umap
27
+ - dimensionality-reduction
28
+ - highly-variable-genes
29
+ ---
30
+
31
+ # Mouse Skeletal Muscle Aging Atlas (sn/scRNA-seq) Dataset
32
+
33
+ ## Dataset Overview
34
+
35
+ This dataset comprises single-nucleus and single-cell RNA sequencing (sn/scRNA-seq) data specifically focusing on the **mouse skeletal muscle** across different age groups. It serves as a valuable resource for investigating cell-type-specific gene expression changes and cellular composition shifts that occur during the aging process in a crucial mammalian model system.
36
+
37
+ The data was sourced from the **Mouse Muscle Ageing Cell Atlas project**, a comprehensive effort to map the aging process in skeletal muscle at single-cell resolution. This processed version has been converted into standardized `.h5ad` and `.parquet` formats, enhancing its usability for machine learning, bioinformatics pipelines, and enabling high-resolution insights into the molecular hallmarks of muscle aging.
38
+
39
+ ### Relevance to Aging and Longevity Research
40
+
41
+ Skeletal muscle undergoes significant functional and structural decline with age in mice, mirroring sarcopenia in humans. Mouse models are instrumental in longevity research, offering a controlled environment to study the intricate molecular and cellular mechanisms of aging. Insights gained from this dataset can inform human aging research and the development of interventions to promote healthy aging and extend healthspan.
42
+
43
+ This dataset offers an unprecedented opportunity to:
44
+ * Identify **age-specific molecular signatures** within various skeletal muscle cell types (e.g., muscle stem cells, fibroblasts, immune cells).
45
+ * Uncover how cellular processes like muscle regeneration, metabolism, inflammation, and cellular senescence change with age at the single-cell level.
46
+ * Discover **biomarkers** or **therapeutic targets** for age-associated muscle decline.
47
+ * Investigate the contribution of different cell types to the overall aging process of skeletal muscle and their interplay.
48
+ * Analyze shifts in cellular composition within the muscle tissue with advancing age.
49
+
50
+ This dataset is therefore a powerful resource for understanding the intricate molecular mechanisms of aging within a vital mammalian tissue, with direct implications for longevity and healthspan research.
51
+
52
+ ---
53
+
54
+ ## Data Details
55
+
56
+ * **Organism:** *Mus musculus* (Mouse)
57
+ * **Tissue:** Skeletal Muscle
58
+ * **Cell Types:** Various (e.g., muscle stem cells, fibroblasts, immune cells, endothelial cells, myofibers). *Specific cell type annotations should be found in `cell_metadata.parquet`.*
59
+ * **Technology:** 10x Genomics scRNA-seq and snRNA-seq
60
+ * **Condition:** Healthy individuals across different age groups (e.g., young vs. old mice)
61
+ * **Number of Cells:** 96,529 (based on `SKM_mouse_pp_cells2nuclei_2022-03-30.h5ad`)
62
+ * **Original AnnData File Used:** `SKM_mouse_pp_cells2nuclei_2022-03-30.h5ad` (downloaded from Mouse Muscle Ageing Cell Atlas portal)
63
+
64
+ **Primary Data Source Link:**
65
+ [https://www.muscleageingcellatlas.org/mouse-pp/](https://www.muscleageingcellatlas.org/mouse-pp/)
66
+
67
+ Please refer to the original project website and associated publications for full details on experimental design, data collection, and initial processing.
68
+
69
+ ---
70
+
71
+ ## Dataset Structure
72
+
73
+ The dataset is provided in formats commonly used in single-cell genomics and tabular data analysis. After processing, the following files are generated:
74
+
75
+ * **`expression.parquet`**: A tabular representation of the gene expression matrix (`adata.X`), where rows are cells and columns are genes. Ideal for direct use as input features in machine learning models.
76
+ * **`gene_metadata.parquet`**: A tabular representation of the gene (feature) metadata (`adata.var`), providing details about each gene.
77
+ * **`cell_metadata.parquet`**: Contains comprehensive metadata for each cell (`adata.obs`), including donor information, potentially age, sex, and cell type annotations. This is crucial for labeling and grouping cells in ML tasks.
78
+ * **`pca_embeddings.parquet`**: Contains the data after **Principal Component Analysis (PCA)**. This is a linear dimensionality reduction, where each row corresponds to a cell, and columns represent the principal components.
79
+ * **`pca_explained_variance.parquet`**: A table showing the proportion of variance explained by each principal component, useful for assessing the PCA's effectiveness.
80
+ * **`umap_embeddings.parquet`**: Contains the data after **UMAP (Uniform Manifold Approximation and Projection)**. This is a non-linear dimensionality reduction, providing 2D or 3D embeddings excellent for visualization and capturing complex cell relationships. (This dataset utilizes pre-computed UMAP embeddings from the original `.h5ad` file if available).
81
+ * **`highly_variable_gene_metadata.parquet`**: Metadata specifically for genes identified as highly variable across cells during preprocessing. These genes often capture the most biological signal and are commonly used for dimensionality reduction and feature selection.
82
+ * **`gene_statistics.parquet`**: Basic statistics per gene, such as mean expression and the number of cells a gene is expressed in.
83
+
84
+ *(Note: Cell type proportions and donor metadata aggregation were skipped in processing this specific dataset due to standard column names not being found in the original `adata.obs`. Please inspect `cell_metadata.parquet` for relevant columns to perform these analyses manually.)*
85
+
86
+ ---
87
+
88
+ ## Data Cleaning and Processing
89
+
90
+ The data was accessed from the Mouse Muscle Ageing Cell Atlas project. The processing steps, performed using a Python script, are designed to prepare the data for machine learning and in-depth bioinformatics analysis:
91
+
92
+ 1. **AnnData Loading:** The original `.h5ad` file was loaded into an AnnData object. Sparse expression matrices were converted to dense format for broader compatibility.
93
+ 2. **Pre-computed Embeddings Check:** The script checks for and prioritizes existing PCA (`X_pca`) and UMAP (`X_umap`) embeddings within the `.h5ad` file's `adata.obsm` to leverage pre-processed results.
94
+ 3. **Mitochondrial Gene QC:** Calculated the percentage of counts originating from mitochondrial genes (`pct_counts_mt`), a common quality control metric for single-cell data.
95
+ 4. **Highly Variable Gene (HVG) Identification:** If not pre-identified, `scanpy.pp.highly_variable_genes` was used to identify a subset of genes (defaulting to the top 4000) that show significant biological variation. This subset is then used for efficient dimensionality reduction.
96
+ 5. **Principal Component Analysis (PCA):** Performed on the (optionally scaled) highly variable gene expression data to generate `pca_embeddings.parquet` and `pca_explained_variance.parquet`.
97
+ 6. **UMAP Embeddings:** The pre-computed UMAP embeddings from the `adata.obsm` were directly extracted and saved as `umap_embeddings.parquet`.
98
+ 7. **Metadata Extraction & Conversion:** `adata.obs` (cell metadata) and `adata.var` (gene metadata) were extracted and saved as `cell_metadata.parquet` and `gene_metadata.parquet` respectively, with categorical columns converted to strings for Parquet compatibility.
99
+ 8. **Basic Gene Statistics:** Calculated mean expression and number of cells expressed for each gene, saved to `gene_statistics.parquet`.
100
+
101
+ ---
102
+
103
+ ## Usage
104
+
105
+ This dataset is ideal for a variety of research and machine learning tasks in the context of mouse muscle aging and longevity:
106
+
107
+ ### Single-Cell Analysis
108
+ Explore cellular heterogeneity, identify novel cell states, and characterize gene expression patterns within the aging mouse skeletal muscle.
109
+
110
+ ### Aging & Longevity Research
111
+ * Investigate age-related changes in gene expression, cellular processes (e.g., inflammation, senescence, regeneration), and cellular composition within muscle.
112
+ * Identify molecular signatures that define "healthy" vs. "unhealthy" muscle aging phenotypes.
113
+ * Discover biomarkers or therapeutic targets for sarcopenia and other age-related muscle pathologies.
114
+
115
+ ### Machine Learning
116
+ * **Clustering:** Apply clustering algorithms (e.g., K-Means, Leiden) on `pca_embeddings.parquet` or `umap_embeddings.parquet` to identify distinct cell populations or sub-populations.
117
+ * **Classification:** Build models to classify cell types, age groups (e.g., young vs. old mice), or other relevant phenotypes using `pca_embeddings.parquet` or `umap_embeddings.parquet` as features. `cell_metadata.parquet` provides the necessary labels.
118
+ * **Regression:** Predict the biological age of a cell or donor based on gene expression or derived features.
119
+ * **Dimensionality Reduction & Visualization:** Use the PCA and UMAP embeddings for generating 2D or 3D plots to visualize complex cell relationships and age-related trends.
120
+ * **Feature Selection:** Identify key genes or principal components relevant to muscle aging processes.
121
+
122
+ ### **Direct Download and Loading from Hugging Face Hub**
123
+ This dataset is hosted on the Hugging Face Hub, allowing for easy programmatic download and loading of its component files.
124
+
125
+ ```python
126
+ import pandas as pd
127
+ from huggingface_hub import hf_hub_download
128
+ import os
129
+ import anndata as ad # Needed if you download the .h5ad file
130
+
131
+ # Define the Hugging Face repository ID and the local directory for downloads
132
+ HF_REPO_ID = "longevity-db/your-new-mouse-muscle-dataset-name" # <<<--- REPLACE with your actual HF repo name
133
+ LOCAL_DATA_DIR = "downloaded_mouse_muscle_data"
134
+
135
+ os.makedirs(LOCAL_DATA_DIR, exist_ok=True)
136
+ print(f"Created local download directory: {LOCAL_DATA_DIR}")
137
+
138
+ # List of files to download
139
+ data_files = [
140
+ "expression.parquet",
141
+ "gene_metadata.parquet",
142
+ "cell_metadata.parquet",
143
+ "pca_embeddings.parquet",
144
+ "pca_explained_variance.parquet",
145
+ "umap_embeddings.parquet",
146
+ "highly_variable_gene_metadata.parquet",
147
+ "gene_statistics.parquet",
148
+ # Add the original .h5ad if you upload it
149
+ # "SKM_mouse_pp_cells2nuclei_2022-03-30.h5ad",
150
+ ]
151
+
152
+ # Download each file
153
+ downloaded_paths = {}
154
+ for file_name in data_files:
155
+ try:
156
+ path = hf_hub_download(repo_id=HF_REPO_ID, filename=file_name, local_dir=LOCAL_DATA_DIR)
157
+ downloaded_paths[file_name] = path
158
+ print(f"Downloaded {file_name} to: {path}")
159
+ except Exception as e:
160
+ print(f"Warning: Could not download {file_name}. It might not be in the repository. Error: {e}")
161
+
162
+ # Load key Parquet files into Pandas DataFrames
163
+ df_expression = pd.read_parquet(downloaded_paths["expression.parquet"])
164
+ df_pca_embeddings = pd.read_parquet(downloaded_paths["pca_embeddings.parquet"])
165
+ df_umap_embeddings = pd.read_parquet(downloaded_paths["umap_embeddings.parquet"])
166
+ df_cell_metadata = pd.read_parquet(downloaded_paths["cell_metadata.parquet"])
167
+ df_gene_metadata = pd.read_parquet(downloaded_paths["gene_metadata.parquet"])
168
+
169
+ print("\n--- Data Loaded from Hugging Face Hub ---")
170
+ print("Expression data shape:", df_expression.shape)
171
+ print("PCA embeddings shape:", df_pca_embeddings.shape)
172
+ print("UMAP embeddings shape:", df_umap_embeddings.shape)
173
+ print("Cell metadata shape:", df_cell_metadata.shape)
174
+ print("Gene metadata shape:", df_gene_metadata.shape)
175
+
176
+
177
+ # Example: Prepare data for an age prediction model
178
+ # IMPORTANT: You need to inspect `df_cell_metadata.columns` to find the actual age and cell type columns.
179
+ print("\nAvailable columns in cell_metadata.parquet:")
180
+ print(df_cell_metadata.columns.tolist())
181
+
182
+ # --- USER ACTION REQUIRED ---
183
+ # Replace 'your_age_column_name' and 'your_cell_type_column_name'
184
+ # with the actual column names found in your df_cell_metadata.columns output.
185
+ # Common names might be 'age', 'Age_Group', 'Age_in_weeks', 'cell_type_annotation', 'CellType' etc.
186
+ age_column_name = 'age' # <<<--- UPDATE THIS with the actual age column name
187
+ cell_type_column_name = 'cell_type' # <<<--- UPDATE THIS with the actual cell type column name
188
+ # --- END USER ACTION REQUIRED ---
189
+
190
+
191
+ # Example: Using age for a prediction task
192
+ if age_column_name in df_cell_metadata.columns:
193
+ X_features_age_prediction = df_pca_embeddings # Or df_umap_embeddings, or df_expression (if manageable)
194
+ y_labels_age_prediction = df_cell_metadata[age_column_name]
195
+ print(f"\nPrepared X (features) for age prediction with shape {X_features_age_prediction.shape} and y (labels) with shape {y_labels_age_prediction.shape}")
196
+ else:
197
+ print(f"\nWarning: Column '{age_column_name}' not found in cell metadata for age prediction example.")
198
+
199
+ # Example: Using cell type for a classification task
200
+ if cell_type_column_name in df_cell_metadata.columns:
201
+ X_features_cell_type = df_pca_embeddings # Or df_umap_embeddings, or df_expression
202
+ y_labels_cell_type = df_cell_metadata[cell_type_column_name]
203
+ print(f"Prepared X (features) for cell type classification with shape {X_features_cell_type.shape} and y (labels) with shape {y_labels_cell_type.shape}")
204
+ else:
205
+ print(f"Warning: Column '{cell_type_column_name}' not found in cell metadata for cell type classification example.")
206
+
207
+ # This data can then be split into train/test sets and used to train various ML models.
208
+ ```
209
+
210
+ ## Citation
211
+
212
+ Please ensure you cite the original source of the Mouse Muscle Ageing Cell Atlas data. Refer to the project's official website for the most up-to-date citation information for the atlas and its associated publications:
213
+
214
+ **Mouse Muscle Ageing Cell Atlas Official Website:**
215
+ [https://www.muscleageingcellatlas.org/mouse-pp/](https://www.muscleageingcellatlas.org/mouse-pp/)
216
+
217
+ ## Contributions
218
+
219
+ This dataset was processed and prepared by:
220
+
221
+ - Venkatachalam
222
+ - Pooja
223
+ - Albert
224
+
225
+ *Curated on June 15, 2025.*
226
+
227
+ **Hugging Face Repository:** [https://huggingface.co/datasets/longevity-db/your-new-mouse-muscle-dataset-name](https://www.google.com/search?q=https://huggingface.co/datasets/longevity-db/your-new-mouse-muscle-dataset-name) \# \<\<\<--- REPLACE with your actual HF repo URL
cell_metadata.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:acd80876b884278ebf5983f73f8436ca36aa02cd621a4d86da8b921d11339247
3
+ size 3746105
expression.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d552f1e7fefd6bcdf839a0460b239882347948120966701ff05e4a7707052aa4
3
+ size 689365554
gene_metadata.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3590cc80998898c4b197e51ad9f25b20653e03793beb2d573c1f1c802b961b07
3
+ size 810692
gene_statistics.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cf432ba94af5b1022951c86834f5ed07c6d7b8f873c4cb22bafe34d9a74489be
3
+ size 74857
highly_variable_gene_metadata.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:889cdb7eda52bb7f7b2d935914f180ec4caeda8615a85d3f0d10e017d15bcd80
3
+ size 307888
pca_embeddings.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d99653b100c51dd73da9512cb807ec956fc468ec9019b1ce88fc8db7f3c44faa
3
+ size 30418786
pca_explained_variance.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d4bfc8fad2315e9170b2ef25934a6ab1f9ad9c177365c82c1a11445d4a7a1a8d
3
+ size 4049
umap_embeddings.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7809c8b29edb4e7ce72645a02611a6aca7b5f50a4aaf2a90fa775bd6b819a1f3
3
+ size 2013690