From b3a79cc26957f6813fe17be7736a6e69f4064e73 Mon Sep 17 00:00:00 2001 From: valentynbez Date: Wed, 3 Jan 2024 16:21:51 +0100 Subject: [PATCH 1/2] fix: bug --- mDeepFRI/pdb.py | 4 ++-- mDeepFRI/pipeline.py | 18 +++++++++--------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/mDeepFRI/pdb.py b/mDeepFRI/pdb.py index 54019e2..4443974 100644 --- a/mDeepFRI/pdb.py +++ b/mDeepFRI/pdb.py @@ -37,7 +37,7 @@ def create_pdb_mmseqs(): "rb") as f_in, open(uncompressed_path, "wb") as f_out: f_out.write(f_in.read()) - tabix_compress(uncompressed_path, compressed_path) + tabix_compress(uncompressed_path, compressed_path, force=True) # remove uncompressed uncompressed_path.unlink() @@ -48,7 +48,7 @@ def create_pdb_mmseqs(): # check if database exists if not pdb100_mmseqs.exists(): logging.info("Creating MMSeqs2 database from PDB100.") - createdb(pdb100_path, pdb100_mmseqs) + createdb(compressed_path, pdb100_mmseqs) createindex(pdb100_mmseqs) pdb_db = Database(foldcomp_db=pdb100_path.stem, diff --git a/mDeepFRI/pipeline.py b/mDeepFRI/pipeline.py index 6154a34..36f2287 100644 --- a/mDeepFRI/pipeline.py +++ b/mDeepFRI/pipeline.py @@ -65,15 +65,15 @@ def predict_protein_function( # PDB100 database logger.info( "Creating PDB100 database. This may take a bit during a first run.") - try: - pdb100 = create_pdb_mmseqs() - deepfri_dbs.append(pdb100) - logger.info("PDB100 database created.") - - except RuntimeError: - logger.warning( - "PDB100 server is not responding. Skipping PDB100 database creation." - ) + # try: + pdb100 = create_pdb_mmseqs() + deepfri_dbs.append(pdb100) + logger.info("PDB100 database created.") + + # except RuntimeError: + # logger.warning( + # "PDB100 server is not responding. Skipping PDB100 database creation." + # ) # design solution # database is built in the same directory From 8feebf18d527c83843283c793d4b3b9d5ed9071b Mon Sep 17 00:00:00 2001 From: valentynbez Date: Wed, 3 Jan 2024 20:36:55 +0100 Subject: [PATCH 2/2] fix: setup --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index c408f8e..cd39d3c 100644 --- a/setup.py +++ b/setup.py @@ -147,7 +147,7 @@ def run(self): PACKAGES = [SRC_DIR] install_requires = ["cython", "numpy"] -setup_requires = ["cython"] +setup_requires = ["cython", "requests"] extra_compile_args = ["-std=c++17", "-O3"] EXTENSIONS = [