Skip to content

Commit

Permalink
fixed install pfam from local dir
Browse files Browse the repository at this point in the history
  • Loading branch information
trvinh committed Feb 4, 2024
1 parent 3155b57 commit 13435ad
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion greedyFAS/setupFAS.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 13435ad

Please sign in to comment.