Skip to content

Commit 1b7b930

Browse files
committed
moved demo data from uni to dropbox
1 parent ea63637 commit 1b7b930

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

fdog/setupfDog.py

+9-1
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,15 @@ def download_data(dataPath, resetData):
157157
data_url = 'https://applbio.biologie.uni-frankfurt.de/download/hamstr_qfo'
158158
if os.path.exists(data_fdog_file) and resetData:
159159
os.remove(data_fdog_file)
160-
general_fn.download_file(data_url, data_fdog_file)
160+
# general_fn.download_file(data_url, data_fdog_file)
161+
####### temporary solution while the uni network does not work #########
162+
wgetCmd = 'wget "https://www.dropbox.com/scl/fi/t2ln18k0jthc3y74s591q/data_HaMStR-2019c.tar.gz?rlkey=c66nc3eslqyn2a6k6ey4e678r&st=plzvbllv&dl=0"'
163+
try:
164+
subprocess.run([wgetCmd], shell=True, check=True)
165+
shutil.move("data_HaMStR-2019c.tar.gz?rlkey=c66nc3eslqyn2a6k6ey4e678r&st=plzvbllv&dl=0", "data_HaMStR-2019c.tar.gz")
166+
except:
167+
print('Problem occurred while download demo data from dropbox')
168+
########################################################################
161169
try:
162170
print('Extracting %s...' % data_fdog_file)
163171
shutil.unpack_archive(data_fdog_file, dataPath, 'gztar')

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
setup(
2828
name="fdog",
29-
version="0.1.34",
29+
version="0.1.35",
3030
python_requires='>=3.7.0',
3131
description="Feature-aware Directed OrtholoG search tool",
3232
long_description=long_description,

0 commit comments

Comments
 (0)