Re: [Apbs-users] Problems reading files with no spaces between atom coordinates
Biomolecular electrostatics software
Brought to you by:
sobolevnrm
From: Nathan B. <ba...@cc...> - 2008-04-23 19:28:04
|
Hi Ken -- This is a feature, not a bug. :) As the APBS manual points out (http://apbs.sourceforge.net/doc/user-guide/index.html#pqr-flat-format ), we require PQR files to have whitespace between the columns. Unfortunately, the PDB standard is pretty bad for large molecules and this whitespace requirement generally has to be enforced with some preprocessing. Depending on how comfortable you are with sed or scripting languages, this should be pretty easy to fix. Alternatively, you could run this through the command line version of PDB2PQR (I'd recommend using the developmental version from Subversion) with the --whitespace flag to add the necessary delimiters. However, the easiest approach might just be to send your PQR file to me and we'll fix it. Thanks, Nathan On Apr 22, 2008, at 1:00 PM, Ken Prehoda wrote: > I've been trying to use apbs with some very elongated molecules > (coiled-coils) and have been running into difficulties because many > atoms in the pdb and pqr files have coordinates without spaces between > them. This leads to problems because several of the parsing routines > assume this type of demarcation. For example, psize.py uses the python > split function: > > subline = string.replace(line[30:], "-", " -") > words = string.split(subline) > > The first line tries to solve the problem but it doesn't work if the > coordinate isn't negative. The "coulomb" program runs into the same > problem and isn't able to parse lines like: > > ATOM 8847 N GLU 1700 -4.377-368.118-167.786 0.00170000 > 1.824 > > Error: > Setting up atom list from cc.pqr. > Valist_readPQR: Error parsing atom 8847! > Read 0 atoms > Setting up Green's function object. > Dielectric constant = 1 (vacuum) > Distances in Angstroms > Charges in electrons > Allocating space for solution... > VASSERT: ASSERTION FAILURE! filename vmem.c, line 241, ((num > 0) && > (size > 0)) > Abort > > The main apbs program appears to just stall when attempting to read in > files that include these lines. Is anyone aware of a workaround for > this problem? > > Thanks for the help! -Ken > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save > $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > apbs-users mailing list > apb...@li... > https://lists.sourceforge.net/lists/listinfo/apbs-users -- Associate Professor, Dept. of Biochemistry and Molecular Biophysics Center for Computational Biology, Washington University in St. Louis Web: http://cholla.wustl.edu/ |