Venkatachalam commited on
Commit
22332bb
·
1 Parent(s): 79343b4
Files changed (1) hide show
  1. README.md +1 -33
README.md CHANGED
@@ -118,8 +118,7 @@ from huggingface_hub import hf_hub_download
118
  import os
119
 
120
  # Define the Hugging Face repository ID and the local directory for downloads
121
- # REMINDER: This is the suggested new repository name for Human Cornea data.
122
- HF_REPO_ID = "longevity-db/human-cornea-snRNAseq" # <<<--- CONFIRM THIS IS YOUR ACTUAL REPO NAME
123
  LOCAL_DATA_DIR = "downloaded_human_cornea_data"
124
 
125
  os.makedirs(LOCAL_DATA_DIR, exist_ok=True)
@@ -167,37 +166,6 @@ print("Gene metadata shape:", df_gene_metadata.shape)
167
  print("PCA explained variance shape:", df_pca_explained_variance.shape)
168
  print("HVG metadata shape:", df_hvg_metadata.shape)
169
  print("Gene statistics shape:", df_gene_stats.shape)
170
-
171
-
172
- # Example: Prepare data for an age prediction model
173
- # IMPORTANT: You need to inspect `df_cell_metadata.columns` to find the actual age and cell type columns.
174
- print("\nAvailable columns in cell_metadata.parquet (df_cell_metadata.columns):")
175
- print(df_cell_metadata.columns.tolist())
176
-
177
- # --- USER ACTION REQUIRED ---
178
- # Based on your inspection of GSE186433_metadata_percell.csv, update these names:
179
- age_column_name = 'age' # <<<--- VERIFY THIS NAME (e.g., 'age_years', 'donor_age_in_years')
180
- cell_type_column_name = 'cell_type' # <<<--- VERIFY THIS NAME (e.g., 'CellType', 'Annotation', 'sub_type')
181
- # --- END USER ACTION REQUIRED ---
182
-
183
-
184
- # Example: Using age for a prediction task
185
- if age_column_name in df_cell_metadata.columns:
186
- X_features_age_prediction = df_pca_embeddings # Or df_umap_embeddings, or df_expression (if manageable)
187
- y_labels_age_prediction = df_cell_metadata[age_column_name]
188
- 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}")
189
- else:
190
- print(f"\nWarning: Column '{age_column_name}' not found in cell metadata for age prediction example. Please check your data.")
191
-
192
- # Example: Using cell type for a classification task
193
- if cell_type_column_name in df_cell_metadata.columns:
194
- X_features_cell_type = df_pca_embeddings # Or df_umap_embeddings, or df_expression
195
- y_labels_cell_type = df_cell_metadata[cell_type_column_name]
196
- 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}")
197
- else:
198
- print(f"Warning: Column '{cell_type_column_name}' not found in cell metadata for cell type classification example. Please check your data.")
199
-
200
- # This data can then be split into train/test sets and used to train various ML models.
201
  ```
202
 
203
  -----
 
118
  import os
119
 
120
  # Define the Hugging Face repository ID and the local directory for downloads
121
+ HF_REPO_ID = "longevity-db/human-cornea-snRNAseq"
 
122
  LOCAL_DATA_DIR = "downloaded_human_cornea_data"
123
 
124
  os.makedirs(LOCAL_DATA_DIR, exist_ok=True)
 
166
  print("PCA explained variance shape:", df_pca_explained_variance.shape)
167
  print("HVG metadata shape:", df_hvg_metadata.shape)
168
  print("Gene statistics shape:", df_gene_stats.shape)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
169
  ```
170
 
171
  -----