Code Monkey home page Code Monkey logo

Comments (1)

jvsguerra avatar jvsguerra commented on June 19, 2024 1

Hi @AJVelezRueda,

Thank you for reporting this error.

We are working on a solution.
The problem seems to be with the order in which we perform the characterization. It seems that if we run constitutional characterization after depth characterization, a memory issue appears, generating the "Segmentation fault" message.

Until we fix it completely, here is a workaround to perform the analysis you shared with us:

import pyKVFinder

# PARAMETERS
path = "1H6J_B.pdb"
probe_out = 4.0
hydrophobicity_scale='EisenbergWeiss'

# Run 100 times pyKVFinder for 1H6J_B
for i in range(100):
    # Atomic information
    atomic = pyKVFinder.read_pdb("1H6J_B.pdb")

    # Grid
    vertices = pyKVFinder.get_vertices(atomic, probe_out=probe_out)
    
    # Cavity detection
    ncav, cavities = pyKVFinder.detect(atomic, vertices, probe_out=probe_out)

    # Constitutional
    residues = pyKVFinder.constitutional(cavities, atomic, vertices)

    # Depth characterization
    depth, avg_depth, max_depth = pyKVFinder.depth(cavities)

    # Hydropathy characterization
    surface, volume, area = pyKVFinder.spatial(cavities)
    hydropathy, avg_hydropathy = pyKVFinder.hydropathy(surface, atomic, vertices, hydrophobicity_scale=hydrophobicity_scale)
    
    # Export cavities
    # NOTE: Uncomment to export cavities to PDB file
    # pyKVFinder.export(f"cavity_{i:02d}.pdb", cavities, surface, vertices, B=depth, output_hydropathy=f"hydropathy_{i:02d}.pdb", scales=hydropathy)

Please let me know if this workaround solved your problem.

from pykvfinder.

Related Issues (14)

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.