Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -402,6 +402,13 @@ with tab5:
|
|
| 402 |
|
| 403 |
if binary32_file:
|
| 404 |
df_32 = pd.read_csv(binary32_file, header=None)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 405 |
if df_32.shape[1] != 32:
|
| 406 |
st.warning("⚠️ CSV must have exactly 32 columns.")
|
| 407 |
else:
|
|
@@ -438,7 +445,11 @@ with tab5:
|
|
| 438 |
|
| 439 |
if binary31_file:
|
| 440 |
df_31 = pd.read_csv(binary31_file, header=None)
|
| 441 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 442 |
# Reordered: 4402 → 3244, 4882 → 4455
|
| 443 |
df_31.columns = [str(h) for h in mutation_site_headers]
|
| 444 |
|
|
|
|
| 402 |
|
| 403 |
if binary32_file:
|
| 404 |
df_32 = pd.read_csv(binary32_file, header=None)
|
| 405 |
+
|
| 406 |
+
# Apply known ascending order headers manually:
|
| 407 |
+
df_32.columns = [str(h) for h in mutation_site_headers_actual_3614]
|
| 408 |
+
|
| 409 |
+
# Reorder for 4402→3244 + 4882→4455 visualization:
|
| 410 |
+
df_32 = df_32[[str(h) for h in mutation_site_headers_3614]]
|
| 411 |
+
|
| 412 |
if df_32.shape[1] != 32:
|
| 413 |
st.warning("⚠️ CSV must have exactly 32 columns.")
|
| 414 |
else:
|
|
|
|
| 445 |
|
| 446 |
if binary31_file:
|
| 447 |
df_31 = pd.read_csv(binary31_file, header=None)
|
| 448 |
+
# Assume known ascending order and assign:
|
| 449 |
+
df_31.columns = [str(h) for h in mutation_site_headers_actual]
|
| 450 |
+
|
| 451 |
+
# Reorder:
|
| 452 |
+
df_31 = df_31[[str(h) for h in mutation_site_headers]]
|
| 453 |
# Reordered: 4402 → 3244, 4882 → 4455
|
| 454 |
df_31.columns = [str(h) for h in mutation_site_headers]
|
| 455 |
|