Skip to content

Commit 0119ef2

Browse files
committed
Update untar->unpack for fetch_file
1 parent 64f9daa commit 0119ef2

File tree

9 files changed

+19
-19
lines changed

9 files changed

+19
-19
lines changed

Pilot1/P1B3/p1b3.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -477,15 +477,15 @@ def load_dose_response(path, seed, dtype, min_logconc=-5., max_logconc=-5., subs
477477
def stage_data():
478478
server = 'http://ftp.mcs.anl.gov/pub/candle/public/benchmarks/P1B3/'
479479

480-
cell_expr_path = candle.fetch_file(server + 'P1B3_cellline_expressions.tsv', 'Pilot1', untar=False)
481-
cell_mrna_path = candle.fetch_file(server + 'P1B3_cellline_mirna.tsv', 'Pilot1', untar=False)
482-
cell_prot_path = candle.fetch_file(server + 'P1B3_cellline_proteome.tsv', 'Pilot1', untar=False)
483-
cell_kino_path = candle.fetch_file(server + 'P1B3_cellline_kinome.tsv', 'Pilot1', untar=False)
484-
drug_desc_path = candle.fetch_file(server + 'P1B3_drug_descriptors.tsv', 'Pilot1', untar=False)
485-
drug_auen_path = candle.fetch_file(server + 'P1B3_drug_latent.csv', 'Pilot1', untar=False)
486-
dose_resp_path = candle.fetch_file(server + 'P1B3_dose_response.csv', 'Pilot1', untar=False)
487-
test_cell_path = candle.fetch_file(server + 'P1B3_test_celllines.txt', 'Pilot1', untar=False)
488-
test_drug_path = candle.fetch_file(server + 'P1B3_test_drugs.txt', 'Pilot1', untar=False)
480+
cell_expr_path = candle.fetch_file(server + 'P1B3_cellline_expressions.tsv', 'Pilot1', unpack=False)
481+
cell_mrna_path = candle.fetch_file(server + 'P1B3_cellline_mirna.tsv', 'Pilot1', unpack=False)
482+
cell_prot_path = candle.fetch_file(server + 'P1B3_cellline_proteome.tsv', 'Pilot1', unpack=False)
483+
cell_kino_path = candle.fetch_file(server + 'P1B3_cellline_kinome.tsv', 'Pilot1', unpack=False)
484+
drug_desc_path = candle.fetch_file(server + 'P1B3_drug_descriptors.tsv', 'Pilot1', unpack=False)
485+
drug_auen_path = candle.fetch_file(server + 'P1B3_drug_latent.csv', 'Pilot1', unpack=False)
486+
dose_resp_path = candle.fetch_file(server + 'P1B3_dose_response.csv', 'Pilot1', unpack=False)
487+
test_cell_path = candle.fetch_file(server + 'P1B3_test_celllines.txt', 'Pilot1', unpack=False)
488+
test_drug_path = candle.fetch_file(server + 'P1B3_test_drugs.txt', 'Pilot1', unpack=False)
489489

490490
return(cell_expr_path, cell_mrna_path, cell_prot_path, cell_kino_path,
491491
drug_desc_path, drug_auen_path, dose_resp_path, test_cell_path,

Pilot2/P2B1/p2b1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def get_list_of_data_files(GP):
103103
# data_hash = p2.data_sets[GP['set_sel']][1]
104104
print('Reading Data Files... %s->%s' % (GP['set_sel'], data_set))
105105
# Check if the data files are in the data director, otherwise fetch from FTP
106-
data_file = candle.fetch_file('http://ftp.mcs.anl.gov/pub/candle/public/benchmarks/Pilot2/' + data_set + '.tar.gz', untar=True, subdir='Pilot2')
106+
data_file = candle.fetch_file('http://ftp.mcs.anl.gov/pub/candle/public/benchmarks/Pilot2/' + data_set + '.tar.gz', unpack=True, subdir='Pilot2')
107107
data_dir = os.path.join(os.path.dirname(data_file), data_set)
108108
# Make a list of all of the data files in the data set
109109
data_files = glob.glob('%s/*.npz' % data_dir)

Pilot3/P3B1/p3b1_baseline_keras2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def fetch_data(gParameters):
3535
"""
3636

3737
path = gParameters['data_url']
38-
fpath = candle.fetch_file(path + gParameters['train_data'], 'Pilot3', untar=True)
38+
fpath = candle.fetch_file(path + gParameters['train_data'], 'Pilot3', unpack=True)
3939

4040
return fpath
4141

Pilot3/P3B2/p3b2_baseline_keras2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def run(gParameters):
5050

5151
origin = gParameters['data_url']
5252
train_data = gParameters['train_data']
53-
data_loc = candle.fetch_file(origin + train_data, untar=True, md5_hash=None, subdir='Pilot3')
53+
data_loc = candle.fetch_file(origin + train_data, unpack=True, md5_hash=None, subdir='Pilot3')
5454

5555
print('Data downloaded and stored at: ' + data_loc)
5656
data_path = os.path.dirname(data_loc)

Pilot3/P3B3/p3b3_baseline_keras2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def fetch_data(gParameters):
4040
"""
4141

4242
path = gParameters['data_url']
43-
fpath = candle.fetch_file(path + gParameters['train_data'], 'Pilot3', untar=True)
43+
fpath = candle.fetch_file(path + gParameters['train_data'], 'Pilot3', unpack=True)
4444

4545
return fpath
4646

Pilot3/P3B4/p3b4_baseline_keras2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def fetch_data(gParameters):
3535
"""
3636

3737
path = gParameters['data_url']
38-
fpath = candle.fetch_file(path + gParameters['train_data'], 'Pilot3', untar=True)
38+
fpath = candle.fetch_file(path + gParameters['train_data'], 'Pilot3', unpack=True)
3939

4040
return fpath
4141

Pilot3/P3B4/p3b4_baseline_tf2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def fetch_data(gParameters):
2626

2727
path = gParameters['data_url']
2828
fpath = candle.fetch_file(
29-
path + gParameters['train_data'], 'Pilot3', untar=True)
29+
path + gParameters['train_data'], 'Pilot3', unpack=True)
3030

3131
return fpath
3232

Pilot3/P3B5/p3b5_baseline_pytorch.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def initialize_parameters():
2929

3030

3131
def fetch_data(gParameters):
32-
""" Download and untar data
32+
""" Download and unpack data
3333
3434
Args:
3535
gParameters: parameters from candle
@@ -38,7 +38,7 @@ def fetch_data(gParameters):
3838
path to where the data is located
3939
"""
4040
path = gParameters['data_url']
41-
fpath = candle.fetch_file(path + gParameters['train_data'], 'Pilot3', untar=True)
41+
fpath = candle.fetch_file(path + gParameters['train_data'], 'Pilot3', unpack=True)
4242
return fpath
4343

4444

Pilot3/P3B7/p3b7_baseline.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def initialize_parameters():
4848

4949

5050
def fetch_data(gParameters):
51-
"""Download and untar data
51+
"""Download and unpack data
5252
5353
Args:
5454
gParameters: parameters from candle
@@ -58,7 +58,7 @@ def fetch_data(gParameters):
5858
"""
5959
path = gParameters.data_url
6060
fpath = candle.fetch_file(
61-
path + gParameters.train_data, 'Pilot3', untar=True
61+
path + gParameters.train_data, 'Pilot3', unpack=True
6262
)
6363
return fpath
6464

0 commit comments

Comments
 (0)