GROMACS version: 2023.3-EasyBuild_4.8.2
GROMACS modification: No
FFs: amber14sb and glycam06j-1
Premise: I have 3 glycosylation sites on my protein comprised of 3 NAG molecules. I have used charmmgui to generate topologies for these carbs (named 0GA, 0YA, 0YB, 4YB in glycam). I have added the forcefield.itp file to my ff_directory. I have added all new atom-types to atomtypes.atp. I have added the four new molecules into the aminoacids.rtp folder.
Goal: Want to add the corresponding hydrogen entries to aminoacids.hdb for my new molecules. I want to allow pdb2gmx to assign hydrogens to my system.
Issue: The carbs are separate chains and not numbered contiguously with the peptides they are bonded to. This creates an issue when trying to assign the control atoms: for example, the tetrahedral H1 of a 4YB molecule has a control atom on the ASN residue it is connected to, which is a part of the protein chain. I therefore include the ASN atom (ND2) in the control atoms as ‘-ND2’, with (-) signifying that it belongs to the previous residue. This leads to a fatal error:
Atom -ND2 not found in residue 4YB 1, rtp entry 4YB while adding hydrogens
I believe this issue occurs because there is no ‘previous’ residue for 4YB, which is a separate chain. I wonder if gmx interprets the (-) as belonging to the current chain, and therefore no previous residue. I therefore do not know how I can include the correct final control atom for this tetrahedral hydrogen. I do not want to cheat and select another atom that is a part of the same residue.
I’m not sure which files would be relevant to upload, so for now I’ve attached the .hdb and .rtp files that I’ve manually changed. Thanks.