Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -61,8 +61,11 @@ with st.form('get signature'):
|
|
| 61 |
remove_old_vcf()
|
| 62 |
|
| 63 |
sub=st.form_submit_button('submit input')
|
| 64 |
-
|
| 65 |
-
if sub
|
|
|
|
|
|
|
|
|
|
| 66 |
#if st.button('get reference genome'):
|
| 67 |
st.write(os.path.dirname(SigProfilerMatrixGenerator.__file__))
|
| 68 |
dirtest=os.path.dirname(SigProfilerMatrixGenerator.__file__)
|
|
@@ -101,9 +104,8 @@ if sub and file_to_lookat !=[]:
|
|
| 101 |
sig.sigProfilerExtractor("vcf", "output", "input", minimum_signatures=1, maximum_signatures=3,nmf_test_conv= 1000,nmf_tolerance= 1e-10,max_nmf_iterations=100000,min_nmf_iterations= 1000)
|
| 102 |
|
| 103 |
#show_pdf('output/SBS96/Suggested_Solution/COSMIC_SBS96_Decomposed_Solution/SBS96_Decomposition_Plots.pdf')
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
sig=st.form_submit_button('use the above buttons to download the signatures')
|
| 107 |
components.iframe("https://cancer.sanger.ac.uk/signatures/sbs/", height=3000,width=800)
|
| 108 |
#show_pdf('output/ID83/Suggested_Solution/COSMIC_ID83_Decomposed_Solution/ID83_Decomposition_Plots.pdf')
|
| 109 |
components.iframe("https://cancer.sanger.ac.uk/signatures/id/",height=3000,width=800)
|
|
|
|
| 61 |
remove_old_vcf()
|
| 62 |
|
| 63 |
sub=st.form_submit_button('submit input')
|
| 64 |
+
|
| 65 |
+
if sub:
|
| 66 |
+
st.session_state.submitted = True
|
| 67 |
+
|
| 68 |
+
if 'submitted' in st.session_state and file_to_lookat !=[]:
|
| 69 |
#if st.button('get reference genome'):
|
| 70 |
st.write(os.path.dirname(SigProfilerMatrixGenerator.__file__))
|
| 71 |
dirtest=os.path.dirname(SigProfilerMatrixGenerator.__file__)
|
|
|
|
| 104 |
sig.sigProfilerExtractor("vcf", "output", "input", minimum_signatures=1, maximum_signatures=3,nmf_test_conv= 1000,nmf_tolerance= 1e-10,max_nmf_iterations=100000,min_nmf_iterations= 1000)
|
| 105 |
|
| 106 |
#show_pdf('output/SBS96/Suggested_Solution/COSMIC_SBS96_Decomposed_Solution/SBS96_Decomposition_Plots.pdf')
|
| 107 |
+
dl(file_to_lookat)
|
| 108 |
+
|
|
|
|
| 109 |
components.iframe("https://cancer.sanger.ac.uk/signatures/sbs/", height=3000,width=800)
|
| 110 |
#show_pdf('output/ID83/Suggested_Solution/COSMIC_ID83_Decomposed_Solution/ID83_Decomposition_Plots.pdf')
|
| 111 |
components.iframe("https://cancer.sanger.ac.uk/signatures/id/",height=3000,width=800)
|