CaviTracer functionality - calculating surface cavities#2240
Conversation
…eparate, changes in calcChannels
… into prody-cavifinder-reorg
…model with Surface)
|
I had a first try on my MacBook Pro laptop from the Crick that has macOS Tahoe 26.5.1 in my prody-github environment with python 3.10.19 Running the example code above gives me I tried installing the default one from PyPI with pip, which gave me open3d-0.19.0, and it came with lots of other packages and I then get another error: |
This error doesn't come up on a linux machine with vmd loaded from modules |
jamesmkrieger
left a comment
There was a problem hiding this comment.
It all looks reasonable to me. I have few changes but they are optional
|
I forgot to add calcSurfaceCavitiesMultipleFrames(). It has now been added to the ProDy code. Now, cavities can be analyzed using a multi-model PDB or a trajectory via one function. Multi-model PDB: Trajectory: |
|
I am not sure what I can do with that. Maybe the version of something was different.
|
|
Tomorrow I will write a tutorial for the ProDy website to show the functionalities. |
…elecChannelsBySelection


I added several functionalities and improvements to CaviTracer.
Now, we are able to calculate surface cavities using calcSurfaceCavities() and display them using showSurfaceCavities().
I added improvements to calcChannels() and getVmdModel() to be able to compute and display surface cavities using the existing code.
To test the code:
from prody import *
p = parsePDB('1tqn')
protein = p.select('protein')
cavities, surface = calcSurfaceCavities(protein, output_path='test_surf_cav.pqr')
cavities2, surface2 = calcSurfaceCavities(protein, min_tetrahedra=15, output_path='test_surf_cav_min_tetra_5.pqr')
cavities3, surface3 = calcSurfaceCavities(protein, min_volume=200, max_volume=1500, output_path='test_surf_cav_MinMax_volume.pq
vmd_path = '/usr/local/bin/vmd'
model = getVmdModel(vmd_path, protein)
:::::
showSurfaceCavities(surface, model=model, show_surface=True)
showSurfaceCavities(surface2, model=model, show_surface=True)
showSurfaceCavities(surface3, model=model, show_surface=True)
showSurfaceCavities(surface3, model=model, show_surface=True, cavity_atoms='test_surf_cav_MinMax_volume.pqr')
The best visualization (visualization of the protein and cavities generated by VMD and displayed in ProDy):
model_protein = getVmdModel(vmd_path, protein)
cav_model = getVmdModel(
vmd_path,
parsePQR('test_surf_cav_MinMax_volume.pqr'),
representation='QuickSurf')
showSurfaceCavities(
surface3,
model=model_protein,
cavity_atoms=cav_model,
show_surface=True)
several other examples:
showSurfaceCavities(surface, model=model, show_surface=True)
showSurfaceCavities(surface, model=model, show_surface=True, mode='tetra')
showSurfaceCavities(surface, cavities=cavities, model=model, show_surface=True, mode='smooth', alpha=50.0, smoothing=1)
showSurfaceCavities(surface, model=model, mode='tetra', smoothing=0)