Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -67,14 +67,8 @@ mutation_site_headers = [
|
|
| 67 |
4510, 4561, 4615, 4668, 4720, 4773, 4828, 4882
|
| 68 |
]
|
| 69 |
|
| 70 |
-
#
|
| 71 |
-
|
| 72 |
-
3244: 0.5, 3297: 0.5, 3350: 0.5, 3399: 0.5, 3455: 0.5, 3509: 0.5, 3562: 0.5, 3614: 0.5,
|
| 73 |
-
3665: 0.5, 3720: 0.5, 3773: 0.5, 3824: 0.5, 3879: 0.5, 3933: 0.5, 3985: 0.5, 4039: 0.5,
|
| 74 |
-
4089: 0.5, 4145: 0.5, 4190: 0.5, 4245: 0.5, 4298: 0.5, 4349: 0.5, 4402: 0.5, 4455: 0.5,
|
| 75 |
-
4510: 0.5, 4561: 0.5, 4615: 0.5, 4668: 0.5, 4720: 0.5, 4773: 0.5, 4828: 0.5, 4882: 0.5
|
| 76 |
-
}
|
| 77 |
-
thresholds = pd.Series(built_in_thresholds)
|
| 78 |
|
| 79 |
st.title("ASCII & Binary Label Converter")
|
| 80 |
|
|
@@ -170,6 +164,7 @@ with tab3:
|
|
| 170 |
|
| 171 |
if ef_file:
|
| 172 |
ef_df = pd.read_csv(ef_file)
|
|
|
|
| 173 |
else:
|
| 174 |
ef_df = pd.DataFrame(columns=thresholds.index)
|
| 175 |
|
|
@@ -189,4 +184,4 @@ with tab3:
|
|
| 189 |
mime="text/csv"
|
| 190 |
)
|
| 191 |
|
| 192 |
-
# Future: integrate DNA editor mapping for each mutation site here
|
|
|
|
| 67 |
4510, 4561, 4615, 4668, 4720, 4773, 4828, 4882
|
| 68 |
]
|
| 69 |
|
| 70 |
+
# Load thresholds from file
|
| 71 |
+
thresholds = pd.read_csv("Column_Thresholds.csv", index_col=0).squeeze()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 72 |
|
| 73 |
st.title("ASCII & Binary Label Converter")
|
| 74 |
|
|
|
|
| 164 |
|
| 165 |
if ef_file:
|
| 166 |
ef_df = pd.read_csv(ef_file)
|
| 167 |
+
ef_df = ef_df.loc[:, ~ef_df.columns.str.contains('^Unnamed')]
|
| 168 |
else:
|
| 169 |
ef_df = pd.DataFrame(columns=thresholds.index)
|
| 170 |
|
|
|
|
| 184 |
mime="text/csv"
|
| 185 |
)
|
| 186 |
|
| 187 |
+
# Future: integrate DNA editor mapping for each mutation site here
|