Coder Social home page Coder Social logo

becksteinlab / bornprofiler Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 2.0 1.11 GB

A small Python package to set up electrostatic solvation free energy ("Born energy") calculations of an ion in a membrane protein and calculate the electrostatic free energy with APBS .

Home Page: https://bornprofiler.readthedocs.io

License: GNU General Public License v3.0

Python 84.70% Shell 3.55% CMake 0.67% C 11.08%
python science electrostatics membrane-proteins apbs poisson-boltzmann

bornprofiler's People

Contributors

chenouzhang avatar dotsdl avatar orbeckst avatar rsexton2 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

bornprofiler's Issues

documentation

The BornProfiler documentation currently consists mostly of the doc strings or placeholders.

  • Examples and use of the scripts: how should the typical user make use of the package?
    • describe workflow and individual steps
    • add figures that show typical output
  • More prose is needed to explain use of the classes for developers.
  • No "next" and "previous" links that allow one to quickly click through.
  • Customize the theme.

running help on apbs-mem-potential.py fails

I created setup dirs with

apbs-bornprofile-init.py

and then want to just see the help:

(bp) oliver@spudda:~/Projects/Methods$ apbs-mem-potential.py -h
Traceback (most recent call last):
  File "/nfs/homes2/oliver/.virtualenvs/bp/bin/apbs-mem-potential.py", line 50, in <module>
    import bornprofiler.electrostatics
  File "/nfs/homes2/oliver/.virtualenvs/bp/local/lib/python2.7/site-packages/bornprofiler/electrostatics.py", line 55, in <module>
    'solvation_no_membrane': read_template('solvation_no_membrane.in'),
  File "/nfs/homes2/oliver/.virtualenvs/bp/local/lib/python2.7/site-packages/bornprofiler/bpio.py", line 382, in read_template
    fn = config.get_template(filename)
  File "/nfs/homes2/oliver/.virtualenvs/bp/local/lib/python2.7/site-packages/bornprofiler/config.py", line 252, in get_template
    templates = [_get_template(s) for s in utilities.asiterable(t)]
  File "/nfs/homes2/oliver/.virtualenvs/bp/local/lib/python2.7/site-packages/bornprofiler/config.py", line 308, in _get_template
    raise ValueError(errmsg)
ValueError: Failed to locate the template file 'solvation_no_membrane.in'.

This should work.

VASSERT: ASSERTION FAILURE! filename /home/ubuntu/git/apbs-pdb2pqr/apbs/src/mg/vgrid.c, line 193, (0)

On executing the example 2BG9 by using APBS-3.0.0 with given inputs I am encountering ASSERTION error. Do you have any clue whats happening here?

Volume integral = 0.00e+00 A^3
Reading kappa map data from kappa_prot_Mm.dx.gz:
0 x 0 x 0 grid
(0, 0, 0) A spacings
(0, 0, 0) A lower corner
Volume integral = 0.00e+00 A^3
Reading kappa map data from kappa_prot_Sm.dx.gz:
0 x 0 x 0 grid
(0, 0, 0) A spacings
(0, 0, 0) A lower corner
Volume integral = 0.00e+00 A^3
Reading kappa map data from kappa_cpx_Lm.dx.gz:
0 x 0 x 0 grid
(0, 0, 0) A spacings
(0, 0, 0) A lower corner
Volume integral = 0.00e+00 A^3
Reading kappa map data from kappa_cpx_Mm.dx.gz:
0 x 0 x 0 grid
(0, 0, 0) A spacings
(0, 0, 0) A lower corner
Volume integral = 0.00e+00 A^3
Reading kappa map data from kappa_cpx_Sm.dx.gz:
0 x 0 x 0 grid
(0, 0, 0) A spacings
(0, 0, 0) A lower corner
Volume integral = 0.00e+00 A^3
Got paths for 6 charge maps
Reading charge map data from charge_prot_Lm.dx.gz:
0 x 0 x 0 grid
(0, 0, 0) A spVgrid_value: Error -- no data available!
VASSERT: ASSERTION FAILURE! filename /home/ubuntu/git/apbs-pdb2pqr/apbs/src/mg/vgrid.c, line 193, (0)
-- job complete: results in job_0000.out

startup message

We should print a message when a script runs (log at INFO), e.g

bornprofiler VERSION (https://github.com/Becksteinlab/BornProfiler)
Copyright (c) ...
Released under the GNU Public Licence, version 3.

use KDE for creating the PMF

The current approach to use a weighted histogram to build the PMF on a grid can lead to 3D PMFs that are patchy. Instead we should just use a KDE to estimate the density from the compute points and then sample the KDE on an arbitrary resolution grid to write a DX file.

drawmembrane failure if apbs > 1.4 compiled without zlib

If apbs was compiled without zlib compression --disable-zlib, i.e., without support for reading/writing gz compressed files, then drawmembrane will fail

ERROR: dielxS.dx.gz not found in current directory.
       See -h for usage.
bornprofiler.electrostatics: CRITICAL drawmembrane failed [returncode 1]
Traceback (most recent call last):
  File "$HOME/anaconda3/envs/bp/bin/apbs-mem-potential.py", line 7, in <module>
    exec(compile(f.read(), __file__, 'exec'))
  File "$HOME/APBS/BornProfile/scripts/apbs-mem-potential.py", line 109, in <module>
    A.generate()
  File "$HOME/APBS/BornProfile/bornprofiler/electrostatics.py", line 372, in generate
    self.run_drawmembrane()
  File "$HOME/APBS/BornProfile/bornprofiler/electrostatics.py", line 198, in run_drawmembrane
    raise EnvironmentError(errno.ENODATA, self.drawmembrane, errmsg)
EnvironmentError: [Errno 96] draw_membrane2a: 'drawmembrane failed [returncode 1]'

GLIC example missing input files

The current GLIC example contains pdb and cfg as input.
In order to launch the whole BornProfiler workflow, a pqr and a grid dat file are required.

DX conversion fails

Creating DX files for PMF grids fails because BP did not keep up with GridDataFormats.

Code needs to be changed to work with latest GDF.

Reported by @ChenouZhang

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.