From 13435ad400865e1e8bf75a58d04ca85e96c1f30d Mon Sep 17 00:00:00 2001 From: trvinh Date: Sun, 4 Feb 2024 16:38:01 +0100 Subject: [PATCH] fixed install pfam from local dir --- greedyFAS/setupFAS.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/greedyFAS/setupFAS.py b/greedyFAS/setupFAS.py index 65a4b48..db99d85 100644 --- a/greedyFAS/setupFAS.py +++ b/greedyFAS/setupFAS.py @@ -295,9 +295,12 @@ def install_pfam(pfam_version, pfam_path, anno_path): download_file(url, relnotes_file) else: annoModules.checkFileExist(f'{pfam_path}/{file}') + os.symlink(f'{pfam_path}/{file}', f'{anno_path}/{file}') annoModules.checkFileExist(f'{pfam_path}/{dat_file}') + os.symlink(f'{pfam_path}/{dat_file}', f'{anno_path}/{dat_file}') annoModules.checkFileExist(f'{pfam_path}/{relnotes_file}') - if os.path.isfile(f'{pfam_path}/{file}'): + os.symlink(f'{pfam_path}/{relnotes_file}', f'{anno_path}/{relnotes_file}') + if os.path.isfile(file): Path(anno_path + '/Pfam/Pfam-hmms').mkdir(parents=True, exist_ok=True) # move donwloaded file to anno_path/Pfam/Pfam-hmms try: