Code Monkey home page Code Monkey logo

metalprognet's Introduction

MetalProGNet

MetalProGNet: A Structure-based Deep Graph Model Specific For Metalloprotein-Ligand Interaction Predictions; MetalProGNet was developed based on our previous IGN framework. Image text

  • Step1: Clone the Repository
git clone https://github.com/zjujdj/MetalProGNet.git
  • Step2: Download the trained models and conda-packed env

download url: dgl430_py37_gpu.tar.gz; model_save.zip

cd MetalProGNet && unzip model_save.zip && tar -xzvf dgl430_py37_gpu.tar.gz -C /home/conda_env/dgl430_py37_gpu
source activate /home/conda_env/dgl430_py37_gpu
conda-unpack
  • Step3: Give executable privileges to the PLANTS program
chmod +x ../plants/PLANTS1.2_64bit ../plants/SPORES_64bit
  • Step4: Using plants_protein_prep.py for protein preparation
python3  plants_protein_prep.py --num_process=4 --receptor_path=../receptors/ --plants_path=../plants/
  • Step5: Using plants_ligand_prep.py for ligand preparation
python3 plants_ligand_prep.py --num_process=10 --ligand_file_path=../ligand_file/ --plants_path=../plants/ --temp_path=../temp/ --dst_path=../prepared_ligands/
  • Step6: Using plants_docking.py for molecular docking
cd .. && rm -rf docking_runing && mkdir -p docking_running
cp ./scripts/plants_docking.py docking_running
cd docking_running
python3 plants_docking.py --num_process=10 --top1_pose_path=../top1_pose/ --top1_pose_sdf_path=../top1_pose_sdf/ --receptor_path=../receptors/  --plants_path=../plants/  --dst_path=../prepared_ligands/  --config_file_path=../config_file/  --docking_running_path=../docking_running/
cd .. && rm -rf docking_running
  • Step7: Using predict_mt_chembl.py for binding affinity prediction
cd scripts
python3 predict_mt_chembl.py --num_process=10 --bin_size=5 --batch_size=512 --sdfs_path=../top1_pose_sdf/ --protein_path=../receptors/ --temp_path=../temp/ --dock_engine=plants --csv_path=../csv_files/ --work_name=test

More Info Is Available In ./scripts/readme.txt

metalprognet's People

Contributors

zjujdj avatar

Stargazers

yaoxiaoangry avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar Bipin Singh avatar Odin Zhang avatar  avatar  avatar

Watchers

 avatar

metalprognet's Issues

error in last step of using predict_mt_chembl.py for binding affinity prediction

complex ../top1_pose_sdf/7kk4_20_-117.1620.sdf generation failed...
complex ../top1_pose_sdf/7kk4_44_-95.7014.sdf generation failed...
sh: 1: chimera: not found
complex ../top1_pose_sdf/4nw6_45_-65.2051.sdf generation failed...
sh: 1: chimera: not found
complex ../top1_pose_sdf/4nw6_21_-88.2664.sdf generation failed...
sh: 1: chimera: not found
complex ../top1_pose_sdf/7kk4_18_-91.9777.sdf generation failed...
sh: 1: chimera: not found
complex ../top1_pose_sdf/4nw6_1_-93.6212.sdf generation failed...
complex ../top1_pose_sdf/7kk4_16_-95.0478.sdf generation failed...
sh: 1: chimera: not found
sh: 1: chimera: not found
complex ../top1_pose_sdf/7kk4_33_-105.1240.sdf generation failed...
complex ../top1_pose_sdf/4nw6_12_-99.1009.sdf generation failed...
rm: missing operand
Try 'rm --help' for more information.
step1 process end (time:0.14575886726379395 S)

step2 process start: generating dgl graphs
rm: missing operand
Try 'rm --help' for more information.
step2 process end (time:0.12629079818725586 S)

step3 process start: making bin files
the number of successful processed samples is: 0
rm: missing operand
Try 'rm --help' for more information.
step3 process end (time:0.0024900436401367188 S)

step4 process start: making predictions
Loading previously saved dgl graphs and corresponding data...
bin_file: ../temp/bin_files/0.bin data_points: 0
Traceback (most recent call last):
File "predict_mt_chembl.py", line 657, in
test_pred = np.concatenate(np.array(test_pred), 0)
File "<array_function internals>", line 6, in concatenate
ValueError: need at least one array to concatenate

issue predict_mt_chembl.py

I have successfully executed the pipeline and I obteined the top1 of MetalProGNet but I would like to clarify some details.

I want to obtain all ranked poses, not just the top one, for each ligand from both PLANTS and MetalProGNet. Is this possible? In which folder can I find it? Thanks!

many errors while plants_ligand_prep.py

Hi,
I encountered many errors when running the script (plants_ligand_prep.py), so I made some changes and these errors were resolved, But now I have a new error. Does this error have any effect on the docking afterward?
new codes in line 10

cmdline = 'obabel -ipdb %s -omol2 -O %s' % (pdb_file, pdb_file.replace('.pdb', '.mol2'))
**some errors such as:**

==============================
sh: 1: babel: not found

*** Open Babel Error in OpenAndSetFormat
Cannot open ~/protein/pdbid_protein.mol2
a new error:

*** Open Babel Warning in PerceiveBondOrders
Failed to kekulize aromatic bonds in OBMol::PerceiveBondOrders (title is ~/protein/pdbid_protein.pdb)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.