Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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.
|
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)
|
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')
|