Skip to content
Snippets Groups Projects
Commit dea6c67b authored by DIANE's avatar DIANE
Browse files

samples_selection(download results)

parent 8a0004f5
No related branches found
No related tags found
No related merge requests found
......@@ -67,7 +67,7 @@ color_palette = None
dr_model = None # dimensionality reduction model
cl_model = None # clustering model
selection = None
selection_number = None
selection_number = "None"
# loader for datafile
data_file = col1.file_uploader("Data file", type=["csv","dx"], help=" :mushroom: select a csv matrix with samples as rows and lambdas as columns", key=5)
......@@ -625,14 +625,12 @@ if not (sam.empty and sam1.empty):
if 'htest' not in st.session_state:
st.session_state.htest = '0'
report.compile_latex(change =hash_data(a))
st.write(hash_data(a))
if myfilepdf.is_file():
download_res(file = data_file, sam = sam)
elif st.session_state['htest'] != hash_data(a):
st.session_state['htest'] = hash_data(a)
report.compile_latex(change =hash_data(a))
st.write(hash_data(a))
if myfilepdf.is_file():
download_res(file = data_file, sam = sam)
else:
......@@ -650,5 +648,6 @@ if not (sam.empty and sam1.empty):
zipname = json.load(f)
if os.path.split(recent_file)[1] == os.path.split(zipname)[1]:
with open("./temp/"+zipname, "rb") as fp:
st.write('Download the Analysis Results')
st.download_button('Download', data = fp, file_name=zipname, mime="application/zip",
args=None, kwargs=None,type="primary",use_container_width=True)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment