-
Notifications
You must be signed in to change notification settings - Fork 667
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PQR Topology Parser does not respect insertion codes #1317
Comments
The PDB from 1A2C loads fine and it generates to residues with resnum 36. According to the PDB docs on ATOM
the residue with resnum 36A has to be treated as a normal residue between resnum 36 and resnum 37. Thus, the PDBParser works but the PRQ one does not. |
So I had a quick go at this and it got a little problematic. The attached file has different column alignment to the existing PQR file in the test files. The PQR in the tests is from PDB2PQR v1.5, whereas the new one is v2.1.1, so I guess we've been bitten by that. Can somebody link to a guide on what this format should/could be? I couldn't really find a good definition myself. |
The main thing is that the columns are white-space separated. But there isn't a good definition... our docs and the APBS/PDB2PQR ones still say pretty much the same thing:
|
The main problem appears that the format spec states for Residue_number
that it ought to be an integer. However, Our PDB parser will assign the same resnum to two residues with same residue number but different insertion codes (I am not even sure if we store insertion codes...?). The residues get different resids, though, which makes them distinguishable in MDAnalysis. At a minimum we would need similar behavior for the PQR parser. |
@orbeckst ok thanks, look like we just need to check if a resid has an icode appended and split it off if so. We can make PQR respect icodes fairly easily. |
* PQRParser now reads icodes * Fixes Issue #1317 * Updated PQR docs
Closed in PR #1328 |
Expected behaviour
Should create a Universe object.
Actual behaviour
Code to reproduce the behaviour
PQR file was generated with
pdb2pqr --whitespace --ff=charmm
and is attached asCurrent version of MDAnalysis:
0.16.0-dev0
The text was updated successfully, but these errors were encountered: