Giter Site home page Giter Site logo

Comments (14)

andresilvapimentel avatar andresilvapimentel commented on May 24, 2024 1

from lightdock.

andresilvapimentel avatar andresilvapimentel commented on May 24, 2024 1

It works fine now!!! Thanks.

from lightdock.

brianjimenez avatar brianjimenez commented on May 24, 2024

A couple of comments on lgd_cluster_bsas.py:

  1. Script is expecting to be executed from inside the swarm_M directory where the gso_N.out file is located.
  2. All structures from gso_N.out are expected to have been generated with lgd_generate_conformations.py.

So instead of only generating 10 conformations on that folder, please try again generating all of them and then running lgd_cluster_bsas.py inside the swarm_M directory.

from lightdock.

andresilvapimentel avatar andresilvapimentel commented on May 24, 2024

Dear Brian,
Thank you for your comments. Yes, I did exactly what your commented. I double checked it now to make sure I was doing exactly what you suggested.
I am not sure why It is looking for the lightdock_17.pdb file because I only generate 10 conformations.
Do you know why?

from lightdock.

andresilvapimentel avatar andresilvapimentel commented on May 24, 2024

Another issue...
I was trying to perform a flexible docking running the following command for setting up the system:

!lightdock3_setup.py -anm -anm_lig 10 -anm_rec 10 receptor.pdb ligand.pdb 100 80

Then, running the docking simulation with:
!lightdock3.py -s mj3h setup.json 10

The error message is:
[0] step 1
Process Tentacle-1:
Traceback (most recent call last):
File "/usr/lib/python3.6/multiprocessing/process.py", line 258, in _bootstrap
self.run()
File "/usr/local/lib/python3.6/dist-packages/lightdock/parallel/kraken.py", line 20, in run
task.run()
File "/usr/local/lib/python3.6/dist-packages/lightdock/parallel/util.py", line 12, in run
saving_path=self.saving_path, save_intermediary=True)
File "/usr/local/lib/python3.6/dist-packages/lightdock/gso/algorithm.py", line 38, in run
self.swarm.update_luciferin()
File "/usr/local/lib/python3.6/dist-packages/lightdock/gso/swarm.py", line 21, in update_luciferin
glowworm.compute_luciferin()
File "/usr/local/lib/python3.6/dist-packages/lightdock/gso/glowworm.py", line 49, in compute_luciferin
self.scoring = sum([landscape_position.evaluate_objective_function() for landscape_position in self.landscape_positions])
File "/usr/local/lib/python3.6/dist-packages/lightdock/gso/glowworm.py", line 49, in
self.scoring = sum([landscape_position.evaluate_objective_function() for landscape_position in self.landscape_positions])
File "/usr/local/lib/python3.6/dist-packages/lightdock/gso/searchspace/landscape.py", line 151, in evaluate_objective_function
self.receptor_pose.coordinates += self.receptor.n_modes[i] * self.rec_extent[i]
TypeError: 'NoneType' object is not subscriptable
[1] step 1
Process Tentacle-2:
Traceback (most recent call last):
File "/usr/lib/python3.6/multiprocessing/process.py", line 258, in _bootstrap
self.run()
File "/usr/local/lib/python3.6/dist-packages/lightdock/parallel/kraken.py", line 20, in run
task.run()
File "/usr/local/lib/python3.6/dist-packages/lightdock/parallel/util.py", line 12, in run
saving_path=self.saving_path, save_intermediary=True)
File "/usr/local/lib/python3.6/dist-packages/lightdock/gso/algorithm.py", line 38, in run
self.swarm.update_luciferin()
File "/usr/local/lib/python3.6/dist-packages/lightdock/gso/swarm.py", line 21, in update_luciferin
glowworm.compute_luciferin()
File "/usr/local/lib/python3.6/dist-packages/lightdock/gso/glowworm.py", line 49, in compute_luciferin
self.scoring = sum([landscape_position.evaluate_objective_function() for landscape_position in self.landscape_positions])
File "/usr/local/lib/python3.6/dist-packages/lightdock/gso/glowworm.py", line 49, in
self.scoring = sum([landscape_position.evaluate_objective_function() for landscape_position in self.landscape_positions])
File "/usr/local/lib/python3.6/dist-packages/lightdock/gso/searchspace/landscape.py", line 151, in evaluate_objective_function
self.receptor_pose.coordinates += self.receptor.n_modes[i] * self.rec_extent[i]
TypeError: 'NoneType' object is not subscriptable
[kraken] INFO: 100 ships destroyed
[lightdock] INFO: Finished.

Do you know what I am doing wrong?

from lightdock.

brianjimenez avatar brianjimenez commented on May 24, 2024

Sorry, Mj3h scoring function does not support ANM as it's not a full-atom scoring function.

Another issue...
I was trying to perform a flexible docking running the following command for setting up the system:

!lightdock3_setup.py -anm -anm_lig 10 -anm_rec 10 receptor.pdb ligand.pdb 100 80

Then, running the docking simulation with:
!lightdock3.py -s mj3h setup.json 10

The error message is:
[0] step 1
Process Tentacle-1:
Traceback (most recent call last):
File "/usr/lib/python3.6/multiprocessing/process.py", line 258, in _bootstrap
self.run()
File "/usr/local/lib/python3.6/dist-packages/lightdock/parallel/kraken.py", line 20, in run
task.run()
File "/usr/local/lib/python3.6/dist-packages/lightdock/parallel/util.py", line 12, in run
saving_path=self.saving_path, save_intermediary=True)
File "/usr/local/lib/python3.6/dist-packages/lightdock/gso/algorithm.py", line 38, in run
self.swarm.update_luciferin()
File "/usr/local/lib/python3.6/dist-packages/lightdock/gso/swarm.py", line 21, in update_luciferin
glowworm.compute_luciferin()
File "/usr/local/lib/python3.6/dist-packages/lightdock/gso/glowworm.py", line 49, in compute_luciferin
self.scoring = sum([landscape_position.evaluate_objective_function() for landscape_position in self.landscape_positions])
File "/usr/local/lib/python3.6/dist-packages/lightdock/gso/glowworm.py", line 49, in
self.scoring = sum([landscape_position.evaluate_objective_function() for landscape_position in self.landscape_positions])
File "/usr/local/lib/python3.6/dist-packages/lightdock/gso/searchspace/landscape.py", line 151, in evaluate_objective_function
self.receptor_pose.coordinates += self.receptor.n_modes[i] * self.rec_extent[i]
TypeError: 'NoneType' object is not subscriptable
[1] step 1
Process Tentacle-2:
Traceback (most recent call last):
File "/usr/lib/python3.6/multiprocessing/process.py", line 258, in _bootstrap
self.run()
File "/usr/local/lib/python3.6/dist-packages/lightdock/parallel/kraken.py", line 20, in run
task.run()
File "/usr/local/lib/python3.6/dist-packages/lightdock/parallel/util.py", line 12, in run
saving_path=self.saving_path, save_intermediary=True)
File "/usr/local/lib/python3.6/dist-packages/lightdock/gso/algorithm.py", line 38, in run
self.swarm.update_luciferin()
File "/usr/local/lib/python3.6/dist-packages/lightdock/gso/swarm.py", line 21, in update_luciferin
glowworm.compute_luciferin()
File "/usr/local/lib/python3.6/dist-packages/lightdock/gso/glowworm.py", line 49, in compute_luciferin
self.scoring = sum([landscape_position.evaluate_objective_function() for landscape_position in self.landscape_positions])
File "/usr/local/lib/python3.6/dist-packages/lightdock/gso/glowworm.py", line 49, in
self.scoring = sum([landscape_position.evaluate_objective_function() for landscape_position in self.landscape_positions])
File "/usr/local/lib/python3.6/dist-packages/lightdock/gso/searchspace/landscape.py", line 151, in evaluate_objective_function
self.receptor_pose.coordinates += self.receptor.n_modes[i] * self.rec_extent[i]
TypeError: 'NoneType' object is not subscriptable
[kraken] INFO: 100 ships destroyed
[lightdock] INFO: Finished.

Do you know what I am doing wrong?

from lightdock.

brianjimenez avatar brianjimenez commented on May 24, 2024

I've never tested LightDock from a notebook, I guess some path assumption might be wrong. Would you mind sharing this notebook together with the input PDB files? Then I would try to test it on Jupyter Notebook and Colab.

Dear Brian,
Thank you for your comments. Yes, I did exactly what your commented. I double checked it now to make sure I was doing exactly what you suggested.
I am not sure why It is looking for the lightdock_17.pdb file because I only generate 10 conformations.
Do you know why?

from lightdock.

brianjimenez avatar brianjimenez commented on May 24, 2024

Error message will be improved in #12

from lightdock.

andresilvapimentel avatar andresilvapimentel commented on May 24, 2024

I can share it, sure. I am using the test example in the tutorial. It is pretty straightforward. I just turned my computer off and closed for the weekend.
If you want, you can just install lightdock using pip, and use the basic commands, very easy. It works fine, except the cluster analysis

from lightdock.

brianjimenez avatar brianjimenez commented on May 24, 2024

Implemented in version 0.9.0a2, tested on Google Colab: !pip install lightdock==0.9.0a2

https://colab.research.google.com/gist/brianjimenez/927f0749fbabf943e472f95d87bd425b/lightdock_101.ipynb

Please reopen issue if you experience any issue concerning lgd_cluster_bsas.py.

from lightdock.

andresilvapimentel avatar andresilvapimentel commented on May 24, 2024

Dear Brian,
I opened your colab notebook above and worked fine with the commands:
!lightdock3_setup.py 2UUY_rec.pdb 2UUY_lig.pdb -s 100 -g 80
!lightdock3.py setup.json 20 -s fastdfire -l 0
!lgd_generate_conformations.py 2UUY_rec.pdb 2UUY_lig.pdb swarm_0/gso_20.out 80
!lgd_cluster_bsas.py swarm_0/gso_20.out

Then, I tried to perform the same with my receptor and ligand using the following commands:
!lightdock3_setup.py rec.pdb lig.pdb -s 100 -g 80
!lightdock3.py -s mj3h setup.json 10 -l 0
!lgd_generate_conformations.py --setup setup.json rec.pdb lig.pdb swarm_38/gso_10.out 10
!lgd_cluster_bsas.py swarm_38/gso_10.out

The error message was:
[lgd_cluster_bsas] INFO: Reading CA from /content/swarm_11/lightdock_68.pdb
[lgd_cluster_bsas] ERROR: Clustering has failed. Please see error:
[lgd_cluster_bsas] ERROR: object of type 'PosixPath' has no len()

I repeated this for a couple systems to check if anything was wrong with files, but none worked for me showing up the same message.
I am not sure if the mj3h score function works with clustering. I used the mj3h score function with your notebook and worked fine.

Another comment... When I run !lightdock3_setup.py rec.pdb lig.pdb -s 100 -g 80

[pdb] WARNING: Possible problem: [SideChainError] Incomplete sidechain for residue ILE.5
[pdb] WARNING: Possible problem: [SideChainError] Incomplete sidechain for residue ILE.9

I am not sure if this can cause any issue. I hope you know what is going on.

from lightdock.

brianjimenez avatar brianjimenez commented on May 24, 2024
!lightdock3_setup.py rec.pdb lig.pdb -s 100 -g 80
!lightdock3.py -s mj3h setup.json 10 -l 0
!lgd_generate_conformations.py --setup setup.json rec.pdb lig.pdb swarm_38/gso_10.out 10
!lgd_cluster_bsas.py swarm_38/gso_10.out

Problem here is that you are only simulating swarm 0 (please note the -l 0 flag which means only run for swarm 0).
Then, lgd_generate_conformations.py --setup setup.json rec.pdb lig.pdb swarm_38/gso_10.out 10 is failing to generate the predicted structures since the swarm 38 is not the one simulated on previous step.
Final clustering fails because of the same reason.

About the warning, is just a way of flagging incomplete side chains, which might affect the quality of predictions if that residue is for example part of the interface.

from lightdock.

andresilvapimentel avatar andresilvapimentel commented on May 24, 2024

My first try was without -l 0 which It did not work it. Then, I tried with -l 0 and it did not work it as well.

from lightdock.

brianjimenez avatar brianjimenez commented on May 24, 2024

This is the correct pipeline according to your input:

!lightdock3_setup.py rec.pdb lig.pdb -s 100 -g 80
!lightdock3.py -s mj3h setup.json 10 -l 0
!lgd_generate_conformations.py --setup setup.json rec.pdb lig.pdb swarm_0/gso_10.out 80
!lgd_cluster_bsas.py swarm_0/gso_10.out

Please make sure rec.pdb and lig.pdb files are available in your Colab env.

from lightdock.

Related Issues (20)

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.