Skip to content

Commit

Permalink
Merge pull request #66 from valentynbez/main
Browse files Browse the repository at this point in the history
CI/CD fixes
  • Loading branch information
valentynbez authored Jan 3, 2024
2 parents 46e872e + 8feebf1 commit d652a67
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions mDeepFRI/pdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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,
Expand Down
18 changes: 9 additions & 9 deletions mDeepFRI/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down

0 comments on commit d652a67

Please sign in to comment.