Skip to content

Commit fc7f0f1

Browse files
Merge pull request #232 from misterbrandonwalker/patch_onion_build
patch onionnet build error
2 parents e2a40b8 + 94d568d commit fc7f0f1

File tree

3 files changed

+10
-24
lines changed

3 files changed

+10
-24
lines changed

cwl_adapters/onionnet-sfct.cwl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ baseCommand: ["python", "/OnionNet-SFCT/scorer.py"]
99

1010
hints:
1111
DockerRequirement:
12-
dockerPull: cyangnyu/onionnet-sfct
12+
dockerPull: polusai/onionnet-sfct-tool:1.0.0
1313

1414
requirements:
1515
InlineJavascriptRequirement: {}
@@ -60,12 +60,12 @@ inputs:
6060

6161
output_docking_score:
6262
type: string?
63-
63+
6464
output_poses_rescore:
6565
type: string?
66-
66+
6767
outputs:
68-
68+
6969
output_score_path:
7070
type: File
7171
outputBinding:

docker/dockerBuild.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ sudo docker build --no-cache --pull -f Dockerfile_remove_terminal_residue_name_p
3030
sudo docker build --no-cache --pull -f Dockerfile_rename_residues_mol -t jakefennick/rename_residues_mol .
3131
sudo docker build --no-cache --pull -f Dockerfile_combine_structure -t ndonyapour/combine_structure .
3232
sudo docker build --no-cache --pull -f Dockerfile_molgan -t ndonyapour/molgan .
33-
sudo docker build --no-cache --pull -f Dockerfile_onionnet-sfct -t cyangnyu/onionnet-sfct .
33+
sudo docker build --no-cache --pull -f Dockerfile_onionnet-sfct -t polusai/onionnet-sfct-tool:1.0.0 .
3434
sudo docker build --no-cache --pull -f Dockerfile_smina -t cyangnyu/smina .
3535
sudo docker build --no-cache --pull -f Dockerfile_pdbfixer -t ndonyapour/pdbfixer .
3636
sudo docker build --no-cache --pull -f Dockerfile_extract_protein -t ndonyapour/extract_protein .

examples/scripts/Dockerfile_onionnet-sfct

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3,34 +3,20 @@ FROM condaforge/mambaforge
33

44
# Install requirements
55
RUN apt-get update && apt-get install -y wget git
6-
7-
# Create environment
8-
# Since python 3.10 is already installed in the base image condaforge/mambaforge,
9-
# if not specify the python version requirement, python version will has conflict with the openbabel <3.0.
10-
#0 23.40 Pinned packages:
11-
#0 23.40 - python 3.10.*
12-
#0 23.40 The following packages are incompatible
13-
#0 23.40 └─ openbabel <3.0 is installable with the potential options
14-
#0 23.40 ├─ openbabel 2.4.1 would require
15-
#0 23.40 │ └─ python >=2.7,<2.8.0a0 , which can be installed;
16-
#0 23.40 ├─ openbabel 2.4.1 would require
17-
#0 23.40 │ └─ python >=3.6,<3.7.0a0 , which can be installed;
18-
#0 23.40 └─ openbabel 2.4.1 would require
19-
#0 23.40 └─ python >=3.7,<3.8.0a0 , which can be installed.
20-
# So, explicitly downgrade to python=3.7.*
21-
RUN mamba install -c conda-forge "python=3.7.*" "openbabel<3.0" numpy pandas mdtraj biopandas -y
22-
RUN pip install -U scikit-learn rdkit-pypi
6+
RUN mamba install -c conda-forge openbabel numpy pandas mdtraj biopandas -y
7+
# model saved required scikit-learn==1.0.2
8+
RUN pip install -U scikit-learn==1.0.2 rdkit-pypi
239

2410
# cleanup
2511
RUN apt-get clean
2612
RUN mamba clean --all --yes
2713
RUN pip cache purge
2814

2915
# Install OnionNet-SFCT
30-
RUN git clone https://github.com/cyangNYU/OnionNet-SFCT.git
16+
RUN git clone https://github.com/misterbrandonwalker/OnionNet-SFCT.git
3117
WORKDIR /OnionNet-SFCT
3218

3319
# Download models
34-
RUN mkdir -p data && cd data && wget https://huggingface.co/cyangNYU/OnionNet-SFCT-final-model/resolve/main/sfct_std_final.model
20+
RUN mkdir -p data && cd data && wget -nv --no-clobber https://huggingface.co/cyangNYU/OnionNet-SFCT-final-model/resolve/main/sfct_std_final.model
3521

3622
ADD Dockerfile_onionnet-sfct .

0 commit comments

Comments
 (0)