This method supports for Linux and macOS operating systems.
- Download Miniconda3-py37_4.8.3
wget -c https://repo.anaconda.com/miniconda/Miniconda3-py37_4.8.3-Linux-x86_64.sh -O Miniconda3-py37_4.8.3.sh
or
curl https://repo.anaconda.com/miniconda/Miniconda3-py37_4.8.3-Linux-x86_64.sh -o Miniconda3-py37_4.8.3.sh
- Install Miniconda 3 and package dependencies
chmod +x Miniconda3-py37_4.8.3.sh
./Miniconda3-py37_4.8.3.sh -b -f -p ./conda
source ./conda/bin/activate
pip install scikit-learn==0.22
conda install -y -c rdkit rdkit
pip install joblib pandas tensorflow==1.15 pillow deepchem
conda install -y -c pytorch pytorch==1.5.1
conda install -y -c conda-forge jpype1=0.7.5
conda install -y -c openbabel openbabel=2.4.1
- Download a
LigEGFR_source.tar.gzfile from https://zenodo.org/record/4362561 and then decompress file
tar -xzvf LigEGFR_source.tar.gz
- Download Miniconda3-py37_4.8.3
wget -c https://repo.anaconda.com/miniconda/Miniconda3-py37_4.8.3-Linux-x86_64.sh -O Miniconda3-py37_4.8.3.sh
or
curl https://repo.anaconda.com/miniconda/Miniconda3-py37_4.8.3-Linux-x86_64.sh -o Miniconda3-py37_4.8.3.sh
- Install Miniconda 3 and package dependencies
chmod +x Miniconda3-py37_4.8.3.sh
./Miniconda3-py37_4.8.3.sh -b -f -p ./conda
source ./conda/bin/activate
pip install scikit-learn==0.22
conda install -y -c rdkit rdkit
pip install joblib pandas tensorflow==1.15 pillow deepchem
conda install -y -c pytorch pytorch==1.5.1 cpuonly
conda install -y -c conda-forge jpype1=0.7.5
conda install -y -c openbabel openbabel=2.4.1
- Download a
LigEGFR_source.tar.gzfile from https://zenodo.org/record/4362561 and then decompress file
tar -xzvf LigEGFR_source.tar.gz
- Download Miniconda3-py37_4.8.3
wget -c https://repo.anaconda.com/miniconda/Miniconda3-py37_4.8.3-MacOSX-x86_64.sh -O Miniconda3-py37_4.8.3.sh
or
curl https://repo.anaconda.com/miniconda/Miniconda3-py37_4.8.3-MacOSX-x86_64.sh -o Miniconda3-py37_4.8.3.sh
- Install Miniconda 3 and package dependencies
chmod +x Miniconda3-py37_4.8.3.sh
./Miniconda3-py37_4.8.3.sh -b -f -p ./conda
source ./conda/bin/activate
pip install scikit-learn==0.22
conda install -y -c rdkit rdkit
pip install joblib pandas tensorflow==1.15 pillow deepchem
conda install -y -c pytorch pytorch==1.5.1
conda install -y -c conda-forge jpype1=0.7.5
conda install -y -c openbabel openbabel=2.4.1
- Download a
LigEGFR_source.tar.gzfile from https://zenodo.org/record/4362561 and then decompress file
tar -xzvf LigEGFR_source.tar.gz
Basically, all files and folders in LigEGFR_source folder should be under the same folder that contains conda directory. The organization of folders and files is shown below.
A valid organization of a directory:
├── cdk-2.3.jar
├── conda
│ ├── *.*
├── examples
│ ├── structure*.sdf
├── models
│ ├── __init__.py
│ ├── applicabilityDomain.py
│ ├── cleanSmiles.py
│ ├── csgen.py
│ ├── fingerprint.py
│ ├── knnpickle_file
│ ├── longlist.py
│ ├── model.py
│ ├── model256.model
│ ├── mydataset.py
│ └── tobject.py
└── run_predict.pyTo getting started, the conda environment requires to activate by
source conda/bin/activate
For prediction, please run run_predict.py and subsequent qeury.sdf, this file consists of multi-compounds in sdf format.
python3 run_predict.py query.sdf
When the script is computed to finish, returning a LigEGFR_output.csv file for prediction results.
source conda/bin/activate
python3 run_predict.py examples/structure10.sdf
source conda/bin/activate
python3 run_predict.py examples/structure250.sdf