-
Notifications
You must be signed in to change notification settings - Fork 59
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
RuntimeError (adaptive MD for RNA): when using a dihedral with an atom name containing a single quote #1056
Comments
FYI ... it is causing syntax error , that pointing out at 'resid' SyntaxError: invalid syntax |
I think the issue is simply that you put
Also make sure the segid is RNAA by doing |
The above issue is resolved in the Charmm force field. I define the default amber force fields as per documentation as follows. Attached files below for your reference BuildError Traceback (most recent call last) File ~/anaconda3/envs/100htmd/lib/python3.9/site-packages/htmd/builder/amber.py:469, in build(mol, ff, topo, param, prefix, outdir, caps, ionize, saltconc, saltanion, saltcation, disulfide, teleap, teleapimports, execute, atomtypes, offlibraries, gbsa, igb) File ~/anaconda3/envs/100htmd/lib/python3.9/site-packages/htmd/builder/amber.py:728, in _build(mol, ff, topo, param, prefix, outdir, disulfide, teleap, teleapimports, execute, atomtypes, offlibraries, gbsa, igb) BuildError: UnknownResidueError("Unknown residue(s) ['URA'] found in the input structure. You are either missing a topology definition for the residue or you need to rename it to the correct residue name") from htmd.ui import * |
Can you send me the initial file you used? Normally you should be able to build RNA fine in AMBER. |
I uploaded the file that i used with charmm force field for RNA. Running fine without issues. https://drive.google.com/file/d/1R3DajOODBxT621giw9RVkaNBgyMOtSWV/view?usp=share_link |
No sorry I meant the starting PDB file. Because I want to test the pipeline from the start |
attached pdb file here ! |
There is something non-standard about your atom or residue names that pdb2pqr does not like and it doesn't recognize the nucleic acids as such. If I use your file I get:
If I used the 5v16 directly from the RCSB database it works correctly from htmd.builder.amber import build
from htmd.builder.solvate import solvate
from moleculekit.tools.preparation import systemPrepare
from moleculekit.molecule import Molecule
mol = Molecule("5v16")
pmol = systemPrepare(mol)
smol = solvate(pmol, pad=10)
bmol = build(smol, ionize=True, outdir="/tmp/test") I don't recommend solvating like that though (you should solvate as a cubic box) but just wanted to demonstrate that it works fine if you start from the RCSB file |
I tried using adaptive sampling as per your suggestions with the Amber force field and user-defined dihedrals for RNA. While I did not encounter any issues with the Charmm force field and adaptive sampling was successful, I am having issues with adaptive sampling using the Amber force field for RNA (after first epoch). I tried tweaking the code for segid and chain in multiple ways to resolve the issues, but encountered issues such as atoms not being selected or detected. If you have time, it would be great if you could review the code. The Jupyter notebook can be found at this link: https://drive.google.com/file/d/1WEOASnxw62U44T-aSfD1SH70aoR1ISCE/view?usp=share_link
|
Can you share with me these folders please so I can take a look?
|
Thanks for your reply. I attached zip folder as drive link and contain requested folders. |
After filtering the Molecule has a segid "0"
So the error it gives
is correct because segid is not "". |
I have identified the problem. Upon building the build_amber, the segid was no longer present . That is causing conflict while defining the dihedrals in metric. To address this, I utilized the following command to define the segid , which successfully resolved the issue. bmol.set('segid', '0', sel='nucleic') Thanks for your help on this matter. |
I encountered a RuntimeError when running the ad.run() function using a dihedral with an atom name containing a single quote (e.g., "O3'"). Here's the code I used:
I believe the issue might be related to the atom name containing a single quote.
Please advise on this matter.
note : I uploaded notebook for quick look.
https://drive.google.com/file/d/148kbylnU8BTyF7sTz4xXRNbbQnNBVWrs/view?usp=share_link
Thank you
The text was updated successfully, but these errors were encountered: