Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -153,16 +153,16 @@ with tab1:
|
|
| 153 |
st.dataframe(df_31)
|
| 154 |
st.download_button("Download as CSV", df_31.to_csv(index=False), "text_32_binary_labels.csv")
|
| 155 |
|
| 156 |
-
st.subheader("Binary Labels (27-bit groups)")
|
| 157 |
-
groups = []
|
| 158 |
-
for i in range(0, len(binary_labels), 27):
|
| 159 |
-
|
| 160 |
-
|
| 161 |
-
|
| 162 |
-
|
| 163 |
-
df_27 = pd.DataFrame(groups, columns=[str(h) for h in mutation_site_headers] + ["Edited Sites"])
|
| 164 |
-
st.dataframe(df_27)
|
| 165 |
-
st.download_button("Download as CSV", df_27.to_csv(index=False), "text_27_binary_labels.csv")
|
| 166 |
|
| 167 |
# Tab 2: Image to Binary
|
| 168 |
with tab2:
|
|
|
|
| 153 |
st.dataframe(df_31)
|
| 154 |
st.download_button("Download as CSV", df_31.to_csv(index=False), "text_32_binary_labels.csv")
|
| 155 |
|
| 156 |
+
# st.subheader("Binary Labels (27-bit groups)")
|
| 157 |
+
# groups = []
|
| 158 |
+
# for i in range(0, len(binary_labels), 27):
|
| 159 |
+
# group = binary_labels[i:i+27]
|
| 160 |
+
# group += [0] * (27 - len(group))
|
| 161 |
+
# groups.append(group + [sum(group)])
|
| 162 |
+
|
| 163 |
+
# df_27 = pd.DataFrame(groups, columns=[str(h) for h in mutation_site_headers] + ["Edited Sites"])
|
| 164 |
+
# st.dataframe(df_27)
|
| 165 |
+
# st.download_button("Download as CSV", df_27.to_csv(index=False), "text_27_binary_labels.csv")
|
| 166 |
|
| 167 |
# Tab 2: Image to Binary
|
| 168 |
with tab2:
|