Spaces:
Running
Running
make input handling more robust
Browse files
app.py
CHANGED
@@ -60,7 +60,13 @@ coexp_score_threshold = 0.85
|
|
60 |
# Parse and check the user input #
|
61 |
##################################
|
62 |
|
63 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
64 |
|
65 |
neighbors = []
|
66 |
for seed_gene_id in seed_gene_ids:
|
|
|
60 |
# Parse and check the user input #
|
61 |
##################################
|
62 |
|
63 |
+
seed_genes = []
|
64 |
+
for input_gene_id in input_gene_ids.split("\n"):
|
65 |
+
gene_id = input_gene_id.strip()
|
66 |
+
if gene_id == "":
|
67 |
+
continue
|
68 |
+
else:
|
69 |
+
seed_genes.append(gene_id)
|
70 |
|
71 |
neighbors = []
|
72 |
for seed_gene_id in seed_gene_ids:
|