Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -101,6 +101,11 @@ with tab1:
|
|
101 |
|
102 |
ascending_headers = sorted(mutation_site_headers_actual)
|
103 |
df_sorted = df[[str(h) for h in ascending_headers if str(h) in df.columns]]
|
|
|
|
|
|
|
|
|
|
|
104 |
st.subheader("Binary Labels (Ascending Order 3244 → 4882)")
|
105 |
st.dataframe(df_sorted)
|
106 |
st.download_button("Download Ascending Order CSV", df_sorted.to_csv(index=False), "text_binary_labels_ascending.csv", key="download_csv_tab1_ascend")
|
|
|
101 |
|
102 |
ascending_headers = sorted(mutation_site_headers_actual)
|
103 |
df_sorted = df[[str(h) for h in ascending_headers if str(h) in df.columns]]
|
104 |
+
|
105 |
+
# Insert fake column for 3614 with all 0s, in the correct position
|
106 |
+
insertion_index = df_sorted.columns.get_loc("3562") + 1 # insert after 3562
|
107 |
+
df_sorted.insert(insertion_index, "3614", 0)
|
108 |
+
|
109 |
st.subheader("Binary Labels (Ascending Order 3244 → 4882)")
|
110 |
st.dataframe(df_sorted)
|
111 |
st.download_button("Download Ascending Order CSV", df_sorted.to_csv(index=False), "text_binary_labels_ascending.csv", key="download_csv_tab1_ascend")
|