Umair Khan
commited on
Commit
·
90e95be
1
Parent(s):
88ba994
clarify Ensembl ID error
Browse files
app.py
CHANGED
|
@@ -225,7 +225,7 @@ def _embed(adata_bytes, layer_name, feature_col, use_symbols, progress):
|
|
| 225 |
|
| 226 |
# check for Ensembl IDs in feature column
|
| 227 |
if not adata.var[feature_col].str.startswith("ENSG").any():
|
| 228 |
-
raise gr.Error(f"Feature column '{feature_col}' does not appear to contain Ensembl gene IDs. If the column contains gene symbols, use the checkbox.")
|
| 229 |
|
| 230 |
# load model
|
| 231 |
progress(0.15, desc="loading model")
|
|
|
|
| 225 |
|
| 226 |
# check for Ensembl IDs in feature column
|
| 227 |
if not adata.var[feature_col].str.startswith("ENSG").any():
|
| 228 |
+
raise gr.Error(f"Feature column '{feature_col}' does not appear to contain human Ensembl gene IDs. If the column contains gene symbols, use the checkbox.")
|
| 229 |
|
| 230 |
# load model
|
| 231 |
progress(0.15, desc="loading model")
|