Update app.py
Browse files
app.py
CHANGED
|
@@ -131,13 +131,15 @@ def extract_features(seq):
|
|
| 131 |
seq = seq.upper()
|
| 132 |
gc = gc_content(seq)
|
| 133 |
cpg = cpg_ratio(seq)
|
| 134 |
-
tata = tata_box_presence(seq)
|
|
|
|
| 135 |
bend = avg_bendability(seq)
|
| 136 |
freq_a, freq_t, freq_g, freq_c = nucleotide_frequencies(seq)
|
| 137 |
pur_pyr = purine_pyrimidine_ratio(seq)
|
| 138 |
|
| 139 |
# SAME order as X_train
|
| 140 |
-
return [gc, cpg, tata, bend, freq_a, freq_t, freq_g, freq_c, pur_pyr]
|
|
|
|
| 141 |
|
| 142 |
# --- Prediction functions ---
|
| 143 |
def predict_terminator(sequence: str) -> tuple[str, float]:
|
|
|
|
| 131 |
seq = seq.upper()
|
| 132 |
gc = gc_content(seq)
|
| 133 |
cpg = cpg_ratio(seq)
|
| 134 |
+
#tata = tata_box_presence(seq)
|
| 135 |
+
dg = deltaG_stem_loop(seq)
|
| 136 |
bend = avg_bendability(seq)
|
| 137 |
freq_a, freq_t, freq_g, freq_c = nucleotide_frequencies(seq)
|
| 138 |
pur_pyr = purine_pyrimidine_ratio(seq)
|
| 139 |
|
| 140 |
# SAME order as X_train
|
| 141 |
+
#return [gc, cpg, tata, bend, freq_a, freq_t, freq_g, freq_c, pur_pyr]
|
| 142 |
+
return [gc, cpg, dg, bend, freq_a, freq_t, freq_g, freq_c, pur_pyr]
|
| 143 |
|
| 144 |
# --- Prediction functions ---
|
| 145 |
def predict_terminator(sequence: str) -> tuple[str, float]:
|