Spaces:
Runtime error
Runtime error
Commit ·
fd3ab5d
1
Parent(s): 7c62447
Install Meeko dependencies for docking
Browse files- Dockerfile +15 -4
Dockerfile
CHANGED
|
@@ -58,10 +58,21 @@ RUN python -c "from rdkit import Chem; print('RDKit import OK')"
|
|
| 58 |
RUN python -c "import importlib.metadata as m; print('REINVENT version', m.version('reinvent'))"
|
| 59 |
|
| 60 |
# Meeko provides mk_prepare_ligand.py for PDBQT ligand preparation used by docking
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 65 |
|
| 66 |
# -----------------------------
|
| 67 |
# DeepPurpose affinity env
|
|
|
|
| 58 |
RUN python -c "import importlib.metadata as m; print('REINVENT version', m.version('reinvent'))"
|
| 59 |
|
| 60 |
# Meeko provides mk_prepare_ligand.py for PDBQT ligand preparation used by docking
|
| 61 |
+
# Install with required runtime dependencies because pip meeko may not pull all of them.
|
| 62 |
+
RUN set -eux; \
|
| 63 |
+
for i in 1 2 3 4 5; do \
|
| 64 |
+
if conda install -y -c conda-forge meeko gemmi scipy; then \
|
| 65 |
+
conda clean -afy; \
|
| 66 |
+
which mk_prepare_ligand.py; \
|
| 67 |
+
mk_prepare_ligand.py -h >/tmp/mk_prepare_ligand_help.txt; \
|
| 68 |
+
exit 0; \
|
| 69 |
+
fi; \
|
| 70 |
+
echo "meeko install failed on attempt ${i}, retrying..."; \
|
| 71 |
+
conda clean -i -y || true; \
|
| 72 |
+
sleep $((i * 20)); \
|
| 73 |
+
done; \
|
| 74 |
+
echo "meeko install failed after retries"; \
|
| 75 |
+
exit 1
|
| 76 |
|
| 77 |
# -----------------------------
|
| 78 |
# DeepPurpose affinity env
|