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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -64,15 +64,15 @@ with st.form('get signature'):
64
  if sub and file_to_lookat !=[]:
65
  #if st.button('get reference genome'):
66
  st.write(os.path.dirname(SigProfilerMatrixGenerator.__file__))
67
- dirtest=os.path.join(os.path.dirname(SigProfilerMatrixGenerator.__file__),'references/chromosomes/tsb/GRCh37/')+'*txt'
68
- st.write(dirtest)
69
  #st.write(sys.path)
70
  if refdownload==True:
71
  with st.spinner('downloading hg19 reference'):
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)
76
  for i in seev:
77
  st.write(i)
78
  ##genInstall.install('GRCh37')
 
64
  if sub and file_to_lookat !=[]:
65
  #if st.button('get reference genome'):
66
  st.write(os.path.dirname(SigProfilerMatrixGenerator.__file__))
67
+ dirtest=os.path.dirname(SigProfilerMatrixGenerator.__file__)
68
+
69
  #st.write(sys.path)
70
  if refdownload==True:
71
  with st.spinner('downloading hg19 reference'):
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')