Commit ·
62292d6
1
Parent(s): 028fc47
Fix: Use exact 16384bp length supported by AlphaGenome
Browse files
app.py
CHANGED
|
@@ -82,12 +82,12 @@ else:
|
|
| 82 |
# Initialize Client
|
| 83 |
model = dna_client.create(api_key)
|
| 84 |
|
| 85 |
-
# Define coordinates for demo genes - AlphaGenome
|
| 86 |
-
#
|
| 87 |
gene_coords = {
|
| 88 |
-
"INS": {"chr": "chr11", "start":
|
| 89 |
-
"SCN9A": {"chr": "chr2", "start":
|
| 90 |
-
"MMP9": {"chr": "chr20", "start":
|
| 91 |
}
|
| 92 |
|
| 93 |
gene_sym = gene_choice.split(' ')[0]
|
|
|
|
| 82 |
# Initialize Client
|
| 83 |
model = dna_client.create(api_key)
|
| 84 |
|
| 85 |
+
# Define coordinates for demo genes - AlphaGenome only supports specific lengths:
|
| 86 |
+
# 16384, 131072, 524288, 1048576 - using 16384bp intervals
|
| 87 |
gene_coords = {
|
| 88 |
+
"INS": {"chr": "chr11", "start": 2151808, "end": 2168192, "pos": 2160000}, # 16384bp
|
| 89 |
+
"SCN9A": {"chr": "chr2", "start": 166191808, "end": 166208192, "pos": 166200000}, # 16384bp
|
| 90 |
+
"MMP9": {"chr": "chr20", "start": 46006808, "end": 46023192, "pos": 46015000} # 16384bp
|
| 91 |
}
|
| 92 |
|
| 93 |
gene_sym = gene_choice.split(' ')[0]
|