Skip to content

Commit

Permalink
Update gget_setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
lauraluebbert authored Jan 10, 2024
1 parent dfa42ca commit 7a3bb45
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions gget/gget_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@
ELM_INSTANCES_TSV_DOWNLOAD,
)

## Variables for elm module
ELM_FILES = os.path.join(PACKAGE_PATH, "elm_files")
ELM_INSTANCES_FASTA = f"{ELM_FILES}/elm_instances.fasta"
ELM_CLASSES_TSV = f"{ELM_FILES}/elms_classes.tsv"
ELM_INSTANCES_TSV = f"{ELM_FILES}/elm_instances.tsv"

## Variables for alphafold module
ALPHAFOLD_GIT_REPO = "https://github.com/deepmind/alphafold"
ALPHAFOLD_GIT_REPO_VERSION = "main" # Get version currently hosted on main branch
Expand Down Expand Up @@ -121,19 +127,16 @@ def setup(module, verbose=True, out=None):
"Downloading ELM database files (requires curl to be installed)..."
)

if out is None:
ELM_FILES = os.path.join(PACKAGE_PATH, "elm_files")
else:
if out:
ELM_FILES = os.path.abspath(out)
ELM_INSTANCES_FASTA = f"{ELM_FILES}/elm_instances.fasta"
ELM_CLASSES_TSV = f"{ELM_FILES}/elms_classes.tsv"
ELM_INSTANCES_TSV = f"{ELM_FILES}/elm_instances.tsv"

# Create folder for ELM files (if it does not exist)
if not os.path.exists(ELM_FILES):
os.makedirs(ELM_FILES)

ELM_INSTANCES_FASTA = f"{ELM_FILES}/elm_instances.fasta"
ELM_CLASSES_TSV = f"{ELM_FILES}/elms_classes.tsv"
ELM_INSTANCES_TSV = f"{ELM_FILES}/elm_instances.tsv"

if platform.system() == "Windows":
# The double-quotation marks allow white spaces in the path, but this does not work for Windows
command = f"""
Expand Down

0 comments on commit 7a3bb45

Please sign in to comment.