Spaces:
Running
Running
supercat666
commited on
Commit
•
7c3204a
1
Parent(s):
7ef3dbe
updated
Browse files
cas9on.py
CHANGED
@@ -106,11 +106,15 @@ def process_gene(gene_symbol, model_path):
|
|
106 |
if transcripts:
|
107 |
for transcript in transcripts:
|
108 |
transcript_id = transcript['id']
|
|
|
|
|
|
|
109 |
gene_sequence = fetch_ensembl_sequence(transcript_id)
|
|
|
110 |
if gene_sequence:
|
111 |
-
gRNA_sites = find_crispr_targets(gene_sequence)
|
112 |
if gRNA_sites:
|
113 |
-
formatted_data = format_prediction_output(gRNA_sites,
|
114 |
all_data.extend(formatted_data)
|
115 |
|
116 |
return all_data
|
|
|
106 |
if transcripts:
|
107 |
for transcript in transcripts:
|
108 |
transcript_id = transcript['id']
|
109 |
+
chr = transcript.get('seq_region_name', 'unknown')
|
110 |
+
start = transcript.get('start', 0)
|
111 |
+
strand = transcript.get('strand', 'unknown')
|
112 |
gene_sequence = fetch_ensembl_sequence(transcript_id)
|
113 |
+
|
114 |
if gene_sequence:
|
115 |
+
gRNA_sites = find_crispr_targets(gene_sequence, chr, start, strand)
|
116 |
if gRNA_sites:
|
117 |
+
formatted_data = format_prediction_output(gRNA_sites, model_path)
|
118 |
all_data.extend(formatted_data)
|
119 |
|
120 |
return all_data
|