Eitan177 commited on
Commit
2319b33
·
1 Parent(s): 3c73739

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -59,6 +59,7 @@ with st.form('get signature'):
59
  refdownload=False
60
  file_to_lookat=st.file_uploader('VCF upload here',type=[".vcf"],accept_multiple_files=True)
61
  remove_old_vcf()
 
62
  sub=st.form_submit_button('submit input')
63
 
64
  if sub and file_to_lookat !=[]:
@@ -72,9 +73,9 @@ if sub and file_to_lookat !=[]:
72
  urllib.request.urlretrieve('https://dl.dropboxusercontent.com/s/et97ewsct862x7m/references.zip?dl=0','references.zip')
73
  with zipfile.ZipFile('references.zip', 'r') as zip_ref:
74
  zip_ref.extractall(dirtest)
75
- seev=glob.glob(dirtest+'/references/chromosomes/tsb/GRCh37/*txt')
76
- for i in seev:
77
- st.write(i)
78
  ##genInstall.install('GRCh37')
79
 
80
  if not os.path.exists('input'):
@@ -100,7 +101,6 @@ if sub and file_to_lookat !=[]:
100
  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)
101
 
102
  #show_pdf('output/SBS96/Suggested_Solution/COSMIC_SBS96_Decomposed_Solution/SBS96_Decomposition_Plots.pdf')
103
- dl(file_to_lookat)
104
 
105
 
106
  components.iframe("https://cancer.sanger.ac.uk/signatures/sbs/", height=3000,width=800)
 
59
  refdownload=False
60
  file_to_lookat=st.file_uploader('VCF upload here',type=[".vcf"],accept_multiple_files=True)
61
  remove_old_vcf()
62
+ dl(file_to_lookat)
63
  sub=st.form_submit_button('submit input')
64
 
65
  if sub and file_to_lookat !=[]:
 
73
  urllib.request.urlretrieve('https://dl.dropboxusercontent.com/s/et97ewsct862x7m/references.zip?dl=0','references.zip')
74
  with zipfile.ZipFile('references.zip', 'r') as zip_ref:
75
  zip_ref.extractall(dirtest)
76
+ #seev=glob.glob(dirtest+'/references/chromosomes/tsb/GRCh37/*txt')
77
+ #for i in seev:
78
+ # st.write(i)
79
  ##genInstall.install('GRCh37')
80
 
81
  if not os.path.exists('input'):
 
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
  components.iframe("https://cancer.sanger.ac.uk/signatures/sbs/", height=3000,width=800)