Spaces:
Sleeping
Sleeping
Update src/app.py
Browse files- src/app.py +4 -4
src/app.py
CHANGED
|
@@ -241,7 +241,7 @@ with tab1:
|
|
| 241 |
columns = [f"Position {i+1}" for i in range(group_size)]
|
| 242 |
df = pd.DataFrame(groups, columns=columns)
|
| 243 |
df.insert(0, "Sample", range(1, len(df) + 1))
|
| 244 |
-
st.dataframe(df,
|
| 245 |
|
| 246 |
st.download_button(
|
| 247 |
"⬇️ Download as CSV",
|
|
@@ -708,7 +708,7 @@ with tab4:
|
|
| 708 |
})
|
| 709 |
|
| 710 |
preview_df = pd.DataFrame(preview_rows)
|
| 711 |
-
st.dataframe(preview_df,
|
| 712 |
|
| 713 |
st.markdown("#### Plate Map (hover cells for details)")
|
| 714 |
plate_html = render_plate_map_html(plates_needed, well_to_input, max_wells_per_source, num_inputs)
|
|
@@ -804,11 +804,11 @@ with tab4:
|
|
| 804 |
]
|
| 805 |
|
| 806 |
st.markdown("### 💧 Pipetting Commands")
|
| 807 |
-
st.dataframe(commands_df,
|
| 808 |
st.download_button("⬇️ Download Commands CSV", commands_df.to_csv(index=False), "pipetting_commands.csv", mime="text/csv")
|
| 809 |
|
| 810 |
st.markdown("### 📊 Source Volume Summary")
|
| 811 |
-
st.dataframe(summary_df,
|
| 812 |
st.download_button("⬇️ Download Source Summary CSV", summary_df.to_csv(index=False), "source_volume_summary.csv", mime="text/csv")
|
| 813 |
|
| 814 |
except Exception as e:
|
|
|
|
| 241 |
columns = [f"Position {i+1}" for i in range(group_size)]
|
| 242 |
df = pd.DataFrame(groups, columns=columns)
|
| 243 |
df.insert(0, "Sample", range(1, len(df) + 1))
|
| 244 |
+
st.dataframe(df, width="stretch")
|
| 245 |
|
| 246 |
st.download_button(
|
| 247 |
"⬇️ Download as CSV",
|
|
|
|
| 708 |
})
|
| 709 |
|
| 710 |
preview_df = pd.DataFrame(preview_rows)
|
| 711 |
+
st.dataframe(preview_df, width="stretch", height=300)
|
| 712 |
|
| 713 |
st.markdown("#### Plate Map (hover cells for details)")
|
| 714 |
plate_html = render_plate_map_html(plates_needed, well_to_input, max_wells_per_source, num_inputs)
|
|
|
|
| 804 |
]
|
| 805 |
|
| 806 |
st.markdown("### 💧 Pipetting Commands")
|
| 807 |
+
st.dataframe(commands_df, width="stretch", height=400)
|
| 808 |
st.download_button("⬇️ Download Commands CSV", commands_df.to_csv(index=False), "pipetting_commands.csv", mime="text/csv")
|
| 809 |
|
| 810 |
st.markdown("### 📊 Source Volume Summary")
|
| 811 |
+
st.dataframe(summary_df, width="stretch", height=400)
|
| 812 |
st.download_button("⬇️ Download Source Summary CSV", summary_df.to_csv(index=False), "source_volume_summary.csv", mime="text/csv")
|
| 813 |
|
| 814 |
except Exception as e:
|