NurseCitizenDeveloper commited on
Commit
028fc47
·
1 Parent(s): d9fca17

Fix: Expand intervals to min 16384bp for AlphaGenome

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -82,12 +82,12 @@ else:
82
  # Initialize Client
83
  model = dna_client.create(api_key)
84
 
85
- # Define dummy coordinates for the demo genes (simplified)
86
- # in a real app, you'd look these up properly
87
  gene_coords = {
88
- "INS": {"chr": "chr11", "start": 2159779, "end": 2161221, "pos": 2160000},
89
- "SCN9A": {"chr": "chr2", "start": 166195190, "end": 166205190, "pos": 166200000}, # rounded
90
- "MMP9": {"chr": "chr20", "start": 46010000, "end": 46020000, "pos": 46015000}
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 needs minimum 16384bp sequences
86
+ # Using 20000bp intervals centered on each gene
87
  gene_coords = {
88
+ "INS": {"chr": "chr11", "start": 2150000, "end": 2170000, "pos": 2160000},
89
+ "SCN9A": {"chr": "chr2", "start": 166190000, "end": 166210000, "pos": 166200000},
90
+ "MMP9": {"chr": "chr20", "start": 46005000, "end": 46025000, "pos": 46015000}
91
  }
92
 
93
  gene_sym = gene_choice.split(' ')[0]