From eb6db6193ec7a59fd33145b4ba1c2741c9e60f61 Mon Sep 17 00:00:00 2001 From: abearab Date: Mon, 8 Apr 2024 08:25:06 -0700 Subject: [PATCH] add directory creation --- CanDI/setup/manager.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CanDI/setup/manager.py b/CanDI/setup/manager.py index 51eb913..5d2c3c4 100644 --- a/CanDI/setup/manager.py +++ b/CanDI/setup/manager.py @@ -222,6 +222,12 @@ def format_depmap_data(self, df, path): def download_reformatted_data(self, depmap_release=''): + if not os.path.exists(self.manager_path + '/data/'): + os.makedirs(self.manager_path + '/data/') + + if not os.path.exists(self.manager_path + '/data/depmap/'): + os.makedirs(self.manager_path + '/data/depmap/') + if self.download_source == "dataverse": urls, file_names = depmap_dataverse_download( self.manager_path + '/data/depmap/',