Skip to content
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

Issues with System building for RNA-ligand #1050

Closed
vas2201 opened this issue Mar 3, 2023 · 13 comments
Closed

Issues with System building for RNA-ligand #1050

vas2201 opened this issue Mar 3, 2023 · 13 comments

Comments

@vas2201
Copy link

vas2201 commented Mar 3, 2023

I generated the LIG.rtf file and LIg.prm files for ligand using charmm-gui (https://charmm-gui.org/?doc=input/ligandrm).
I encounter the following errors while System building for RNA-ligand.

#charmm.listFiles()
topo = ['top/top_all36_prot.rtf','top/top_all36_na.rtf', 'top/top_water_ions.rtf']
param = ['par/par_all36m_prot.prm','par/par_all36_na.prm', 'par/par_water_ions.prm']
topos_charmm  = topo + [join(datadir, 'LIG.rtf')]
params_charmm = param + [join(datadir, 'LIG.prm')]
bmol_charmm = charmm.build(smol, topos_charmm, params_charmm, outdir='./build_charmm')

2023-03-03 03:06:13,781 - htmd.builder.charmm - INFO - Writing out segments.
2023-03-03 03:06:19,599 - moleculekit.writers - WARNING - Field "serial" of PDB overflows. Your data will be truncated to 5 characters.
2023-03-03 03:06:20,217 - moleculekit.writers - WARNING - Field "serial" of PDB overflows. Your data will be truncated to 5 characters.
2023-03-03 03:06:20,821 - moleculekit.writers - WARNING - Field "serial" of PDB overflows. Your data will be truncated to 5 characters.
2023-03-03 03:06:21,097 - htmd.builder.charmm - INFO - Starting the build.
2023-03-03 03:06:21,143 - htmd.builder.charmm - WARNING - Failed to set coordinates for 43 atoms.
2023-03-03 03:06:21,144 - htmd.builder.charmm - WARNING - Please check /home/nmrbox/spenumutchu/Desktop/Projects/aufr12_project/SL2_drug/build_charmm/log.txt for further information.
2023-03-03 03:06:21,145 - htmd.builder.charmm - INFO - Finished building.

BuildError                                Traceback (most recent call last)
Cell In[15], line 6
      4 topos_charmm  = topo + [join(datadir, 'LIG.rtf')]
      5 params_charmm = param + [join(datadir, 'LIG.prm')]
----> 6 bmol_charmm = charmm.build(smol, topos_charmm, params_charmm, outdir='./build_charmm')
      7 #bmol_charmm = charmm.build(smol, outdir='./build-charmm')

File ~/anaconda3/envs/100htmd/lib/python3.9/site-packages/htmd/builder/charmm.py:393, in build(mol, topo, param, stream, prefix, outdir, caps, ionize, saltconc, saltanion, saltcation, disulfide, regenerate, patches, noregen, aliasresidues, psfgen, execute, _clean)
    391     molbuilt.read(path.join(outdir, "structure.psf"))
    392 else:
--> 393     raise BuildError(
    394         "No structure pdb/psf file was generated. Check {} for errors in building.".format(
    395             logpath
    396         )
    397     )
    399 if ionize:
    400     os.makedirs(path.join(outdir, "pre-ionize"))

BuildError: 'No structure pdb/psf file was generated. Check /home/nmrbox/spenumutchu/Desktop/Projects/aufr12_project/SL2_drug/build_charmm/log.txt for errors in building.'

I attached the google folder of my files for your reference. Please advise, if possible.
https://drive.google.com/file/d/1ZYpC9kMbsw57EuiiLNYRj82DHrHAGvuH/view?usp=share_link

Thank you

@stefdoerr
Copy link
Contributor

I you take a look at log.txt as the error tells you, you can see close to the end:

Info: generating structure...
psfgen) unknown atom type HGP2
psfgen) add atom failed in residue LIG:101
ERROR: failed on end of segment

Looking at your rtf file it's missing the masses of the atom types. Look for example at the Benzamidine rtf file which has masses for each atom type:

* Charmm RTF built by HTMD parameterize version undefined
* 
  22     0
MASS   123 C261 12.01100 C
MASS   122 C2N2 12.01100 C
MASS   125 HG61  1.00800 H
MASS   124 HGP2  1.00800 H
MASS   126 N2P1 14.00700 N

AUTO ANGLES DIHE

RESI BEN  1.00000
GROUP
ATOM   C1   C261 -0.261900
ATOM   C2   C261 -0.082000
ATOM   C3   C261 -0.116000
ATOM   C4   C261 -0.058000
[...]

@vas2201
Copy link
Author

vas2201 commented Mar 15, 2023

After modifying the force field and topology with the specified changes, there were no complaints about the MASS atoms. The topology was defined using the following files.
topo = ['top/top_all36_na.rtf', 'top/top_all36_cgenff.rtf', 'top/top_water_ions.rtf']
param = ['par/par_all36_na.prm', 'par/par_water_ions.prm','par/par_all36_cgenff.prm']
However, I have encountered an error with "LONEPAIR COLINEAR LP", which seems to have been addressed previously but not yet resolved. Are there any updates on this issue, if possible? Here is the link to the relevant discussion: #860

log.txt


PSFGEN 2.0 from NAMD 2.14 for Linux-x86_64-multicore-CUDA
psfgen) clearing structure, topology, and aliases
psfgen) reading topology file topologies/0.top_all36_na.rtf
psfgen) \\ CHARMM36 All-Hydrogen Nucleic Acid Topology File ////
psfgen) Alexander D. MacKerell Jr. and coworkers
psfgen) April 2011
psfgen) All comments to the CHARMM web site: www.charmm.org
psfgen) parameter set discussion forum
psfgen)
psfgen) Created by CHARMM version 36 1
psfgen) reading topology file topologies/1.top_all36_cgenff.rtf

psfgen) -------------------------------------------------------------------------- *
psfgen) CGenFF: Topology for the Charmm General Force Field v. 4.6 *
psfgen) for Small Molecule Drug Design *
psfgen) -------------------------------------------------------------------------- *
psfgen)
psfgen) Created by CHARMM version 36 1
psfgen) ERROR! FAILED TO RECOGNIZE LONEPAIR. Line 31058: LONEPAIR COLINEAR LP CL C6 DIST 1.640

psfgen) ERROR! FAILED TO RECOGNIZE LONEPAIR. Line 31095: LONEPAIR COLINEAR LP CL CG DIST 1.640

psfgen) ERROR! FAILED TO RECOGNIZE LONEPAIR. Line 31182: LONEPAIR COLINEAR LP CL5 C4 DIST 1.640

psfgen) ERROR! FAILED TO RECOGNIZE LONEPAIR. Line 31259: LONEPAIR COLINEAR LP5 CL5 C5 DIST 1.640

psfgen) ERROR! FAILED TO RECOGNIZE LONEPAIR. Line 31260: LONEPAIR COLINEAR LP6 CL6 C6 DIST 1.640

psfgen) ERROR! FAILED TO RECOGNIZE LONEPAIR. Line 31294: LONEPAIR COLINEAR LP4 CL4 C4 DIST 1.640

psfgen) ERROR! FAILED TO RECOGNIZE LONEPAIR. Line 31295: LONEPAIR COLINEAR LP6 CL6 C6 DIST 1.640

psfgen) ERROR! FAILED TO RECOGNIZE LONEPAIR. Line 31330: LONEPAIR COLINEAR LP3 CL3 C3 DIST 1.640

@stefdoerr
Copy link
Contributor

No sorry, there was no progress on this. We don't officially support CHARMM builds anymore. The license of CHARMM/psfgen is not very friendly for us and we generally use AMBER only.

@vas2201
Copy link
Author

vas2201 commented Mar 18, 2023

I used Amber to generate .frcmod files, but I encountered issues such as missing bond and angle parameters (attached below). However, the same file (.frcmod) works fine, if I used amber for simulations.

It seems that HTMD is generating the *.frcmod files (from example files), but I don't know how to generate these files using htmd. Could you please direct me to some documentation on how to generate the lig.frcmod file from lig.mol2 using HTMD?

Thanks for your help on this matter.

Regards
Vas

log. file 
***********
-I: Adding /home/nmrbox/spenumutchu/anaconda3/envs/100htmd/dat/leap/cmd to search path.
-I: Adding /home/nmrbox/spenumutchu/anaconda3/envs/100htmd/dat/leap/prep to search path.
-I: Adding /home/nmrbox/spenumutchu/anaconda3/envs/100htmd/dat/leap/parm to search path.
-I: Adding /home/nmrbox/spenumutchu/anaconda3/envs/100htmd/dat/leap/lib to search path.
-f: Source ./tleap.in.

Welcome to LEaP!
(no leaprc in search path)
Sourcing: ./tleap.in
----- Source: ./ff0_leaprc.protein.ff19SB
----- Source of ./ff0_leaprc.protein.ff19SB done
Log file: ./leap.log
Loading parameters: /home/nmrbox/spenumutchu/anaconda3/envs/100htmd/dat/leap/parm/parm19.dat
Reading title:
PARM99 + frcmod.ff99SB + frcmod.parmbsc0 + OL3 for RNA + ff19SB
Loading parameters: /home/nmrbox/spenumutchu/anaconda3/envs/100htmd/dat/leap/parm/frcmod.ff19SB
Reading force field modification type file (frcmod)
Reading title:
ff19SB AA-specific backbone CMAPs for protein 07/25/2019
Loading library: /home/nmrbox/spenumutchu/anaconda3/envs/100htmd/dat/leap/lib/amino19.lib
Loading library: /home/nmrbox/spenumutchu/anaconda3/envs/100htmd/dat/leap/lib/aminoct12.lib
Loading library: /home/nmrbox/spenumutchu/anaconda3/envs/100htmd/dat/leap/lib/aminont12.lib
----- Source: ./ff1_leaprc.lipid21
----- Source of ./ff1_leaprc.lipid21 done
Log file: ./leap.log
Loading parameters: /home/nmrbox/spenumutchu/anaconda3/envs/100htmd/dat/leap/parm/lipid21.dat
Reading title:
AMBER Lipid21 v1.0 C. J. Dickson, R.C. Walker, I.R. Gould.
Loading library: /home/nmrbox/spenumutchu/anaconda3/envs/100htmd/dat/leap/lib/lipid21.lib
----- Source: ./ff2_leaprc.gaff2
----- Source of ./ff2_leaprc.gaff2 done
Log file: ./leap.log
Loading parameters: /home/nmrbox/spenumutchu/anaconda3/envs/100htmd/dat/leap/parm/gaff2.dat
Reading title:
AMBER General Force Field for organic molecules (Version 2.11, May 2016)
----- Source: ./ff3_leaprc.RNA.Shaw
----- Source of ./ff3_leaprc.RNA.Shaw done
Log file: ./leap.log
Loading parameters: /home/nmrbox/spenumutchu/anaconda3/envs/100htmd/dat/leap/parm/parm10.dat
Reading title:
PARM99 + frcmod.ff99SB + frcmod.parmbsc0 + OL3 for RNA
Loading parameters: /home/nmrbox/spenumutchu/anaconda3/envs/100htmd/dat/leap/parm/frcmod.shaw
Reading force field modification type file (frcmod)
Reading title:
# force field modification accoding to Tan et al. Proc. Natl. Acad. Sci. 2018 and N*->NR (purines), NC->ND (Ade(N3,N1)), CB->CE (Ade(C4,C5)), CA->CF (Ade(C6)); and according to Steinbrecher et al. J. Chem. Theory Comput. 2012 and OS->OR (O3' and O5') and O2->OQ (O1P and O2P) 
Loading library: /home/nmrbox/spenumutchu/anaconda3/envs/100htmd/dat/leap/lib/RNA_Shaw.lib
----- Source: /home/nmrbox/spenumutchu/anaconda3/envs/100htmd/dat/leap/cmd/leaprc.water.tip4pd
----- Source of /home/nmrbox/spenumutchu/anaconda3/envs/100htmd/dat/leap/cmd/leaprc.water.tip4pd done
Loading library: /home/nmrbox/spenumutchu/anaconda3/envs/100htmd/dat/leap/lib/atomic_ions.lib
Loading library: /home/nmrbox/spenumutchu/anaconda3/envs/100htmd/dat/leap/lib/solvents.lib
Loading library: /home/nmrbox/spenumutchu/anaconda3/envs/100htmd/dat/leap/lib/tip4pd.off
Loading parameters: /home/nmrbox/spenumutchu/anaconda3/envs/100htmd/dat/leap/parm/frcmod.tip4pd
Reading force field modification type file (frcmod)
Reading title:
This is the additional/replacement parameter set for TIP4P-D, modified from TIP4PEW.
Loading parameters: /home/nmrbox/spenumutchu/anaconda3/envs/100htmd/dat/leap/parm/frcmod.ions_charmm22
Reading force field modification type file (frcmod)
Reading title:
Ion parameters from CHARMM22. Beglov D & Roux B (1994) J. Chem. Phys. 100, 9050-9063.
----- Source: ./ff4_leaprc.DNA.bsc1
----- Source of ./ff4_leaprc.DNA.bsc1 done
Log file: ./leap.log

/home/nmrbox/spenumutchu/anaconda3/envs/100htmd/bin/teLeap: Note.
Skipping parm10.dat: already loaded
Substituting map O5* -> O5'  for  O5* -> O5'
Substituting map C5* -> C5'  for  C5* -> C5'
Substituting map C4* -> C4'  for  C4* -> C4'
Substituting map O4* -> O4'  for  O4* -> O4'
Substituting map C3* -> C3'  for  C3* -> C3'
Substituting map O3* -> O3'  for  O3* -> O3'
Substituting map C2* -> C2'  for  C2* -> C2'
Substituting map O2* -> O2'  for  O2* -> O2'
Substituting map C1* -> C1'  for  C1* -> C1'
Substituting map C5M -> C7  for  C5M -> C7
Substituting map H1* -> H1'  for  H1* -> H1'
Substituting map H2*1 -> H2'  for  H2*1 -> H2'
Substituting map H2*2 -> H2''  for  H2*2 -> H2''
Substituting map H2'1 -> H2'  for  H2'1 -> H2'
Substituting map H2'2 -> H2''  for  H2'2 -> H2''
Substituting map H3* -> H3'  for  H3* -> H3'
Substituting map H4* -> H4'  for  H4* -> H4'
Substituting map H5*1 -> H5'  for  H5*1 -> H5'
Substituting map H5*2 -> H5''  for  H5*2 -> H5''
Substituting map H5'1 -> H5'  for  H5'1 -> H5'
Substituting map H5'2 -> H5''  for  H5'2 -> H5''
Substituting map HO'2 -> HO2'  for  HO'2 -> HO2'
Substituting map H5T -> HO5'  for  H5T -> HO5'
Substituting map H3T -> HO3'  for  H3T -> HO3'
Substituting map O1' -> O4'  for  O1' -> O4'
Substituting map OA -> OP1  for  OA -> OP1
Substituting map OB -> OP2  for  OB -> OP2
Substituting map O1P -> OP1  for  O1P -> OP1
Substituting map O2P -> OP2  for  O2P -> OP2
Loading library: /home/nmrbox/spenumutchu/anaconda3/envs/100htmd/dat/leap/lib/parmBSC1.lib
Loading parameters: /home/nmrbox/spenumutchu/anaconda3/envs/100htmd/dat/leap/parm/frcmod.parmbsc1
Reading force field modification type file (frcmod)
Reading title:
Parmbsc1 force-field for DNA
----- Source: ./ff5_leaprc.water.tip3p
----- Source of ./ff5_leaprc.water.tip3p done
Loading library: /home/nmrbox/spenumutchu/anaconda3/envs/100htmd/dat/leap/lib/atomic_ions.lib
Loading library: /home/nmrbox/spenumutchu/anaconda3/envs/100htmd/dat/leap/lib/solvents.lib
Loading parameters: /home/nmrbox/spenumutchu/anaconda3/envs/100htmd/dat/leap/parm/frcmod.tip3p
Reading force field modification type file (frcmod)
Reading title:
This is the additional/replacement parameter set for TIP3P water
Loading parameters: /home/nmrbox/spenumutchu/anaconda3/envs/100htmd/dat/leap/parm/frcmod.ions1lm_126_tip3p
Reading force field modification type file (frcmod)
Reading title:
Li/Merz ion parameters of monovalent ions for TIP3P water model (12-6 normal usage set)
Loading parameters: /home/nmrbox/spenumutchu/anaconda3/envs/100htmd/dat/leap/parm/frcmod.ionsjc_tip3p
Reading force field modification type file (frcmod)
Reading title:
Monovalent ion parameters for Ewald and TIP3P water from Joung & Cheatham JPCB (2008)
Loading parameters: /home/nmrbox/spenumutchu/anaconda3/envs/100htmd/dat/leap/parm/frcmod.ions234lm_126_tip3p
Reading force field modification type file (frcmod)
Reading title:
Li/Merz ion parameters of divalent to tetravalent ions for TIP3P water model (12-6 normal usage set)
Loading parameters: ./param0_UYS.frcmod
Reading force field modification type file (frcmod)
Reading title:
Remark line goes here
Loading Mol2 file: ./topo0_UYS.mol2
Reading MOLECULE named *****
Loading PDB file: ./input.pdb
  total atoms in file: 101699
Box dimensions:  105.541600 105.521600 105.499600
Checking Unit.

/home/nmrbox/spenumutchu/anaconda3/envs/100htmd/bin/teLeap: Warning!
The unperturbed charge of the unit (-39.009400) is not zero.

/home/nmrbox/spenumutchu/anaconda3/envs/100htmd/bin/teLeap: Note.
Ignoring the warning from Unit Checking.

Building topology.
Building atom parameters.
Building bond parameters.

/home/nmrbox/spenumutchu/anaconda3/envs/100htmd/bin/teLeap: Error!
Could not find bond parameter for atom types: cz - n3
        for atom CAI at position -33.239500, 0.501500, -14.558500 
        and atom NAK at position -32.900500, 1.547500, -14.659500.

/home/nmrbox/spenumutchu/anaconda3/envs/100htmd/bin/teLeap: Error!
Could not find bond parameter for atom types: cz - n3
        for atom CAI at position -33.239500, 0.501500, -14.558500 
        and atom NAJ at position -32.198500, 0.343500, -14.223500.

/home/nmrbox/spenumutchu/anaconda3/envs/100htmd/bin/teLeap: Error!
Could not find bond parameter for atom types: cz - n
        for atom CAI at position -33.239500, 0.501500, -14.558500 
        and atom NAH at position -34.199500, -0.048500, -14.498500.
Building angle parameters.

/home/nmrbox/spenumutchu/anaconda3/envs/100htmd/bin/teLeap: Error!
Could not find angle parameter for atom types: n3 - cz - n3
        for atom NAJ at position -32.198500, 0.343500, -14.223500,
            atom CAI at position -33.239500, 0.501500, -14.558500,
        and atom NAK at position -32.900500, 1.547500, -14.659500.

/home/nmrbox/spenumutchu/anaconda3/envs/100htmd/bin/teLeap: Error!
Could not find angle parameter for atom types: n - cz - n3
        for atom NAH at position -34.199500, -0.048500, -14.498500,
            atom CAI at position -33.239500, 0.501500, -14.558500,
        and atom NAK at position -32.900500, 1.547500, -14.659500.

/home/nmrbox/spenumutchu/anaconda3/envs/100htmd/bin/teLeap: Error!
Could not find angle parameter for atom types: n - cz - n3
        for atom NAH at position -34.199500, -0.048500, -14.498500,
            atom CAI at position -33.239500, 0.501500, -14.558500,
        and atom NAJ at position -32.198500, 0.343500, -14.223500.

/home/nmrbox/spenumutchu/anaconda3/envs/100htmd/bin/teLeap: Error!
Could not find angle parameter for atom types: c1 - ca - nb
        for atom CAQ at position -38.422500, -0.072500, -16.767500,
            atom CAA at position -38.006500, -0.907500, -15.665500,
        and atom NAF at position -36.742500, -0.631500, -15.271500.

/home/nmrbox/spenumutchu/anaconda3/envs/100htmd/bin/teLeap: Error!
Could not find angle parameter for atom types: cz - n3 - hn
        for atom CAI at position -33.239500, 0.501500, -14.558500,
            atom NAK at position -32.900500, 1.547500, -14.659500,
        and atom HAK at position -32.340500, 2.055500, -15.347500.

/home/nmrbox/spenumutchu/anaconda3/envs/100htmd/bin/teLeap: Error!
Could not find angle parameter for atom types: cz - n3 - hn
        for atom CAI at position -33.239500, 0.501500, -14.558500,
            atom NAK at position -32.900500, 1.547500, -14.659500,
        and atom HA1 at position -33.334500, 2.269500, -14.082500.

/home/nmrbox/spenumutchu/anaconda3/envs/100htmd/bin/teLeap: Error!
Could not find angle parameter for atom types: cz - n3 - hn
        for atom CAI at position -33.239500, 0.501500, -14.558500,
            atom NAJ at position -32.198500, 0.343500, -14.223500,
        and atom HAZ at position -31.287500, -0.009500, -14.524500.

/home/nmrbox/spenumutchu/anaconda3/envs/100htmd/bin/teLeap: Error!
Could not find angle parameter for atom types: cz - n3 - hn
        for atom CAI at position -33.239500, 0.501500, -14.558500,
            atom NAJ at position -32.198500, 0.343500, -14.223500,
        and atom HAJ at position -32.402500, -0.164500, -13.358500.

/home/nmrbox/spenumutchu/anaconda3/envs/100htmd/bin/teLeap: Error!
Could not find angle parameter for atom types: cz - n - hn
        for atom CAI at position -33.239500, 0.501500, -14.558500,
            atom NAH at position -34.199500, -0.048500, -14.498500,
        and atom HAH at position -34.707500, 0.299500, -15.303500.

/home/nmrbox/spenumutchu/anaconda3/envs/100htmd/bin/teLeap: Error!
Could not find angle parameter for atom types: c - n - cz
        for atom CAG at position -34.851500, -0.978500, -13.761500,
            atom NAH at position -34.199500, -0.048500, -14.498500,
        and atom CAI at position -33.239500, 0.501500, -14.558500.
Building proper torsion parameters.

/home/nmrbox/spenumutchu/anaconda3/envs/100htmd/bin/teLeap: Error!
 ** No torsion terms for atom types: n3-cz-n3-hn
        for atom NAK at position -32.900500, 1.547500, -14.659500,
            atom CAI at position -33.239500, 0.501500, -14.558500,
            atom NAJ at position -32.198500, 0.343500, -14.223500,
        and atom HAZ at position -31.287500, -0.009500, -14.524500.

/home/nmrbox/spenumutchu/anaconda3/envs/100htmd/bin/teLeap: Error!
 ** No torsion terms for atom types: n3-cz-n3-hn
        for atom NAK at position -32.900500, 1.547500, -14.659500,
            atom CAI at position -33.239500, 0.501500, -14.558500,
            atom NAJ at position -32.198500, 0.343500, -14.223500,
        and atom HAJ at position -32.402500, -0.164500, -13.358500.

/home/nmrbox/spenumutchu/anaconda3/envs/100htmd/bin/teLeap: Error!
 ** No torsion terms for atom types: n3-cz-n-hn
        for atom NAK at position -32.900500, 1.547500, -14.659500,
            atom CAI at position -33.239500, 0.501500, -14.558500,
            atom NAH at position -34.199500, -0.048500, -14.498500,
        and atom HAH at position -34.707500, 0.299500, -15.303500.

/home/nmrbox/spenumutchu/anaconda3/envs/100htmd/bin/teLeap: Error!
 ** No torsion terms for atom types: n3-cz-n3-hn
        for atom NAJ at position -32.198500, 0.343500, -14.223500,
            atom CAI at position -33.239500, 0.501500, -14.558500,
            atom NAK at position -32.900500, 1.547500, -14.659500,
        and atom HAK at position -32.340500, 2.055500, -15.347500.

/home/nmrbox/spenumutchu/anaconda3/envs/100htmd/bin/teLeap: Error!
 ** No torsion terms for atom types: n3-cz-n3-hn
        for atom NAJ at position -32.198500, 0.343500, -14.223500,
            atom CAI at position -33.239500, 0.501500, -14.558500,
            atom NAK at position -32.900500, 1.547500, -14.659500,
        and atom HA1 at position -33.334500, 2.269500, -14.082500.

/home/nmrbox/spenumutchu/anaconda3/envs/100htmd/bin/teLeap: Error!
 ** No torsion terms for atom types: n3-cz-n-hn
        for atom NAJ at position -32.198500, 0.343500, -14.223500,
            atom CAI at position -33.239500, 0.501500, -14.558500,
            atom NAH at position -34.199500, -0.048500, -14.498500,
        and atom HAH at position -34.707500, 0.299500, -15.303500.

/home/nmrbox/spenumutchu/anaconda3/envs/100htmd/bin/teLeap: Error!
 ** No torsion terms for atom types: n-cz-n3-hn
        for atom NAH at position -34.199500, -0.048500, -14.498500,
            atom CAI at position -33.239500, 0.501500, -14.558500,
            atom NAK at position -32.900500, 1.547500, -14.659500,
        and atom HAK at position -32.340500, 2.055500, -15.347500.

/home/nmrbox/spenumutchu/anaconda3/envs/100htmd/bin/teLeap: Error!
 ** No torsion terms for atom types: n-cz-n3-hn
        for atom NAH at position -34.199500, -0.048500, -14.498500,
            atom CAI at position -33.239500, 0.501500, -14.558500,
            atom NAK at position -32.900500, 1.547500, -14.659500,
        and atom HA1 at position -33.334500, 2.269500, -14.082500.

/home/nmrbox/spenumutchu/anaconda3/envs/100htmd/bin/teLeap: Error!
 ** No torsion terms for atom types: n-cz-n3-hn
        for atom NAH at position -34.199500, -0.048500, -14.498500,
            atom CAI at position -33.239500, 0.501500, -14.558500,
            atom NAJ at position -32.198500, 0.343500, -14.223500,
        and atom HAZ at position -31.287500, -0.009500, -14.524500.

/home/nmrbox/spenumutchu/anaconda3/envs/100htmd/bin/teLeap: Error!
 ** No torsion terms for atom types: n-cz-n3-hn
        for atom NAH at position -34.199500, -0.048500, -14.498500,
            atom CAI at position -33.239500, 0.501500, -14.558500,
            atom NAJ at position -32.198500, 0.343500, -14.223500,
        and atom HAJ at position -32.402500, -0.164500, -13.358500.

/home/nmrbox/spenumutchu/anaconda3/envs/100htmd/bin/teLeap: Error!
 ** No torsion terms for atom types: c-n-cz-n3
        for atom CAG at position -34.851500, -0.978500, -13.761500,
            atom NAH at position -34.199500, -0.048500, -14.498500,
            atom CAI at position -33.239500, 0.501500, -14.558500,
        and atom NAK at position -32.900500, 1.547500, -14.659500.

/home/nmrbox/spenumutchu/anaconda3/envs/100htmd/bin/teLeap: Error!
 ** No torsion terms for atom types: c-n-cz-n3
        for atom CAG at position -34.851500, -0.978500, -13.761500,
            atom NAH at position -34.199500, -0.048500, -14.498500,
            atom CAI at position -33.239500, 0.501500, -14.558500,
        and atom NAJ at position -32.198500, 0.343500, -14.223500.
Building improper torsion parameters.
 total 256 improper torsions applied
Building H-Bond parameters.
Incorporating Non-Bonded adjustments.

/home/nmrbox/spenumutchu/anaconda3/envs/100htmd/bin/teLeap: Warning!
Parameter file was not saved.
	Quit

Exiting LEaP: Errors = 25; Warnings = 2; Notes = 2.

@stefdoerr
Copy link
Contributor

Hi, did you figure out this issue in the end?

@vas2201
Copy link
Author

vas2201 commented Mar 23, 2023

"While it is currently being investigated, I removed the ligand force field parameters and exclusively used the Amber force field for the RNA. However, I encountered difficulties with the Amber force field's default recognition."

@vas2201
Copy link
Author

vas2201 commented Apr 17, 2023

I have recently generated files using the parameterize (GUI) and resolved issues related to the ligand. I then set up an adaptive simulation on RNA-Ligand using the example code found in the following link:
https://software.acellera.com/htmd/userguide/adaptive-sampling-explained.html

During the course of the simulation, I encountered two issues:

  1. The ligand does not seem to approach the target (RNA) as the simulation progresses.
  2. After completing the first epoch (out of a maximum of 10), an error appears in the terminal but not n the Jupyter Notebook, and the simulation does not progress further.

I kindly request your assistance in addressing these issues and helping me proceed with the simulation. Any guidance or suggestions on how to resolve these problems would be greatly appreciated.

I attached two google drive link for the notebook and input files for the drug for your reference. If possible, could you please review the code.

https://drive.google.com/file/d/1CFnx4GbBkp0U7-YXmX1cNLRzSAnkd0Wy/view?usp=share_link

Thank you for your support.
Regards
Vas

Error on terminal

[E 14:15:01.158 NotebookApp] Uncaught exception in ZMQStream callback
Traceback (most recent call last):
File "/home/nmrbox/spenumutchu/anaconda3/envs/100htmd/lib/python3.9/site-packages/zmq/eventloop/zmqstream.py", line 584, in _run_callback
f = callback(*args, **kwargs)
File "/home/nmrbox/spenumutchu/anaconda3/envs/100htmd/lib/python3.9/site-packages/zmq/eventloop/zmqstream.py", line 308, in stream_callback
return callback(self, msg)
File "/home/nmrbox/spenumutchu/anaconda3/envs/100htmd/lib/python3.9/site-packages/notebook/services/kernels/handlers.py", line 572, in _on_zmq_reply
super()._on_zmq_reply(stream, msg)
File "/home/nmrbox/spenumutchu/anaconda3/envs/100htmd/lib/python3.9/site-packages/notebook/base/zmqhandlers.py", line 256, in _on_zmq_reply
self.write_message(msg, binary=isinstance(msg, bytes))
File "/home/nmrbox/spenumutchu/anaconda3/envs/100htmd/lib/python3.9/site-packages/tornado/websocket.py", line 339, in write_message
return self.ws_connection.write_message(message, binary=binary)
File "/home/nmrbox/spenumutchu/anaconda3/envs/100htmd/lib/python3.9/site-packages/tornado/websocket.py", line 1086, in write_message
fut = self._write_frame(True, opcode, message, flags=flags)
File "/home/nmrbox/spenumutchu/anaconda3/envs/100htmd/lib/python3.9/site-packages/tornado/websocket.py", line 1061, in _write_frame
return self.stream.write(frame)
File "/home/nmrbox/spenumutchu/anaconda3/envs/100htmd/lib/python3.9/site-packages/tornado/iostream.py", line 540, in write
self._write_buffer.append(data)
File "/home/nmrbox/spenumutchu/anaconda3/envs/100htmd/lib/python3.9/site-packages/tornado/iostream.py", line 157, in append
b += data # type: ignore
BufferError: Existing exports of data: object cannot be re-sized
[E 14:15:01.213 NotebookApp] Uncaught exception in zmqstream callback
Traceback (most recent call last):
File "/home/nmrbox/spenumutchu/anaconda3/envs/100htmd/lib/python3.9/site-packages/zmq/eventloop/zmqstream.py", line 621, in _handle_events
self._handle_recv()
File "/home/nmrbox/spenumutchu/anaconda3/envs/100htmd/lib/python3.9/site-packages/zmq/eventloop/zmqstream.py", line 650, in _handle_recv
self._run_callback(callback, msg)
File "/home/nmrbox/spenumutchu/anaconda3/envs/100htmd/lib/python3.9/site-packages/zmq/eventloop/zmqstream.py", line 584, in _run_callback
f = callback(*args, **kwargs)
File "/home/nmrbox/spenumutchu/anaconda3/envs/100htmd/lib/python3.9/site-packages/zmq/eventloop/zmqstream.py", line 308, in stream_callback
return callback(self, msg)
File "/home/nmrbox/spenumutchu/anaconda3/envs/100htmd/lib/python3.9/site-packages/notebook/services/kernels/handlers.py", line 572, in _on_zmq_reply
super()._on_zmq_reply(stream, msg)
File "/home/nmrbox/spenumutchu/anaconda3/envs/100htmd/lib/python3.9/site-packages/notebook/base/zmqhandlers.py", line 256, in _on_zmq_reply
self.write_message(msg, binary=isinstance(msg, bytes))
File "/home/nmrbox/spenumutchu/anaconda3/envs/100htmd/lib/python3.9/site-packages/tornado/websocket.py", line 339, in write_message
return self.ws_connection.write_message(message, binary=binary)
File "/home/nmrbox/spenumutchu/anaconda3/envs/100htmd/lib/python3.9/site-packages/tornado/websocket.py", line 1086, in write_message
fut = self._write_frame(True, opcode, message, flags=flags)
File "/home/nmrbox/spenumutchu/anaconda3/envs/100htmd/lib/python3.9/site-packages/tornado/websocket.py", line 1061, in _write_frame
return self.stream.write(frame)
File "/home/nmrbox/spenumutchu/anaconda3/envs/100htmd/lib/python3.9/site-packages/tornado/iostream.py", line 540, in write
self._write_buffer.append(data)
File "/home/nmrbox/spenumutchu/anaconda3/envs/100htmd/lib/python3.9/site-packages/tornado/iostream.py", line 157, in append
b += data # type: ignore
BufferError: Existing exports of data: object cannot be re-sized
[E 14:15:01.213 NotebookApp] Exception in callback functools.partial(<function ZMQStream._update_handler.. at 0x7f07dd0cd160>)
Traceback (most recent call last):
File "/home/nmrbox/spenumutchu/anaconda3/envs/100htmd/lib/python3.9/site-packages/tornado/ioloop.py", line 740, in _run_callback
ret = callback()
File "/home/nmrbox/spenumutchu/anaconda3/envs/100htmd/lib/python3.9/site-packages/zmq/eventloop/zmqstream.py", line 705, in
self.io_loop.add_callback(lambda: self._handle_events(self.socket, 0))
File "/home/nmrbox/spenumutchu/anaconda3/envs/100htmd/lib/python3.9/site-packages/zmq/eventloop/zmqstream.py", line 621, in _handle_events
self._handle_recv()
File "/home/nmrbox/spenumutchu/anaconda3/envs/100htmd/lib/python3.9/site-packages/zmq/eventloop/zmqstream.py", line 650, in _handle_recv
self._run_callback(callback, msg)
File "/home/nmrbox/spenumutchu/anaconda3/envs/100htmd/lib/python3.9/site-packages/zmq/eventloop/zmqstream.py", line 584, in _run_callback
f = callback(*args, **kwargs)
File "/home/nmrbox/spenumutchu/anaconda3/envs/100htmd/lib/python3.9/site-packages/zmq/eventloop/zmqstream.py", line 308, in stream_callback
return callback(self, msg)
File "/home/nmrbox/spenumutchu/anaconda3/envs/100htmd/lib/python3.9/site-packages/notebook/services/kernels/handlers.py", line 572, in _on_zmq_reply
super()._on_zmq_reply(stream, msg)
File "/home/nmrbox/spenumutchu/anaconda3/envs/100htmd/lib/python3.9/site-packages/notebook/base/zmqhandlers.py", line 256, in _on_zmq_reply
self.write_message(msg, binary=isinstance(msg, bytes))
File "/home/nmrbox/spenumutchu/anaconda3/envs/100htmd/lib/python3.9/site-packages/tornado/websocket.py", line 339, in write_message
return self.ws_connection.write_message(message, binary=binary)
File "/home/nmrbox/spenumutchu/anaconda3/envs/100htmd/lib/python3.9/site-packages/tornado/websocket.py", line 1086, in write_message
fut = self._write_frame(True, opcode, message, flags=flags)
File "/home/nmrbox/spenumutchu/anaconda3/envs/100htmd/lib/python3.9/site-packages/tornado/websocket.py", line 1061, in _write_frame
return self.stream.write(frame)
File "/home/nmrbox/spenumutchu/anaconda3/envs/100htmd/lib/python3.9/site-packages/tornado/iostream.py", line 540, in write
self._write_buffer.append(data)
File "/home/nmrbox/spenumutchu/anaconda3/envs/100htmd/lib/python3.9/site-packages/tornado/iostream.py", line 157, in append
b += data # type: ignore
BufferError: Existing exports of data: object cannot be re-sized

@stefdoerr
Copy link
Contributor

During the course of the simulation, I encountered two issues:

  1. The ligand does not seem to approach the target (RNA) as the simulation progresses.

That's not necessarily an issue. You need to simulate very long sometimes to bind a ligand, depending on the kon rate of the molecule

  1. After completing the first epoch (out of a maximum of 10), an error appears in the terminal but not n the Jupyter Notebook, and the simulation does not progress further.

I have never seen this issue before but it does not seem related to HTMD. The traceback seems to be an error of jupyter itself so I cannot help you with that

@vas2201
Copy link
Author

vas2201 commented Apr 18, 2023

Thanks for your help.

Could you offer advice on whether it is appropriate to use flat bottom potentials and establish the center of the box as outlined below for the RNA-drug complex that I am targeting ?. I was a bit uncertain due to the absence of an RNA-drug tutorials in the htmd tutorials. (I end up with asking so many questions here).

# Apply a flat bottom potential to prevent the ligand from entering from periodic image of the protein (RNA)
width = np.array([70, 70, 60]) 

# Center the box at residue 218 which is on the upper side of the protein (RNA)
fbcentre = mol.get('coords', sel='protein and resid 218').mean(axis=0).squeeze()
flatbot = GroupRestraint('segname L and noh', width, [(5, '0ns')], fbcentre=fbcentre)

@stefdoerr
Copy link
Contributor

we don't usually apply FB potentials to our simulations unless they are membrane simulations and we don't want the ligand to magically appear on the wrong side of the membrane by crossing into the next periodic image. I would just let the ligand diffuse freely

@vas2201
Copy link
Author

vas2201 commented May 12, 2023

Hello Sterdoerr,

I was wondering if you could provide a tutorial for an RNA-ligand system to simulate binding and conduct analysis on an RNA-drug complex.

Initially, I used a protein-drug tutorial as a starting point for the RNA-ligand system. However, I faced some challenges, like the drug not approaching the RNA as I had anticipated.

I have attached the Jupyter Notebook files and drug files that I have worked on so far. If it's not too much trouble, could you please review these files and the code within them, and point out any errors you might find?
https://drive.google.com/drive/folders/1jGV9DIcDqJ0QjhUM9dH7z_m1PBxHBOui?usp=share_link

Also, I would like to mention that we have additional data indicating that this drug is a nanomolar binder, as supported by our ITC and NMR data.

Thank you in advance for your assistance."

https://software.acellera.com/htmd/tutorials/system-building-protein-ligand.html

@stefdoerr
Copy link
Contributor

If your drug is not binding to the RNA either:

a) the parameters of your drug are wrong
b) you need to simulate for longer time

If you are worried about the building look at the log.txt for any warnings

@stefdoerr
Copy link
Contributor

I'll close this issue due to inactivity. I assume the issue is solved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants