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 13435ad commit e7453a3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions greedyFAS/setupFAS.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,11 @@ def install_pfam(pfam_version, pfam_path, anno_path):
sys.exit('ERROR: Problem occurred while creating binary files for PFAM at %s/Pfam/Pfam-hmms' % (anno_path))
# write length file for PFAM
write_phmm_length(anno_path, 'Pfam')
# remove symlinks
if os.path.isfile(f'{anno_path}/{file}'):
os.remove(f'{anno_path}/{file}')
os.remove(f'{anno_path}/{dat_file}')
os.remove(f'{anno_path}/{relnotes_file}')
else:
sys.exit('ERROR: No Pfam-A.hmm.gz found at %s' % url)
else:
Expand Down

0 comments on commit e7453a3

Please sign in to comment.