# Can a lysine residue be set as neutral, i.e. zero charge without protonation?

**URL:** <https://gromacs.bioexcel.eu/t/can-a-lysine-residue-be-set-as-neutral-i-e-zero-charge-without-protonation/3386>\
**Category:** User discussions\
**Created:** [December 30, 2021, 5:48pm UTC](https://gromacs.bioexcel.eu/t/can-a-lysine-residue-be-set-as-neutral-i-e-zero-charge-without-protonation/3386 "2021-12-30T17:48:32Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![lanselibai](https://avatars.discourse-cdn.com/v4/letter/l/e9c0ed/32.png) [@lanselibai](https://gromacs.bioexcel.eu/u/lanselibai)\
**Post date:** [December 30, 2021, 5:48pm UTC](https://gromacs.bioexcel.eu/t/can-a-lysine-residue-be-set-as-neutral-i-e-zero-charge-without-protonation/3386/1 "2021-12-30T17:48:32Z")

</div>

GROMACS version:2021  
GROMACS modification: No  
Here post your question

I have tested many forcefields (`OPLS-AA/L, amber14sb, AMBER99SB-ILDN`) and many proteins using the pdb2gmx command:  
`gmx pdb2gmx -f protein.pdb -o protein_processed.gro -water tip3p -inter -ignh -merge interactive`

This command involves assigning the protonation states interactively. It appears that whenever lysine is set as 0 charge (type 0), I will get the error message:

`The residues in the chain PRO1--ARG436 do not have a consistent type. The first residue has type 'Protein', while residue LYSN45 is of type 'Other'. Either there is a mistake in your chain, or it includes nonstandard residue names that have not yet been added to the residuetypes.dat file in the GROMACS library directory. If there are other molecules such as ligands, they should not have the same chain ID as the adjacent protein chain since it's a separate molecule.`

This error simply disappears when lysine is all set as 1 charge (type 1).

Can I ask how to give 0 charge to a lysine residue?

The pdb file is uploaded.  
[protein.pdb.log](https://gromacs.bioexcel.eu/uploads/short-url/kW6TBXOlDgzcwycPmbGq3KCKYRL.log) (522.5 KB)

---

<div class="post-metadata">

**Author:** ![jalemkul](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/jalemkul/32/18_2.png) [@jalemkul](https://gromacs.bioexcel.eu/u/jalemkul)\
**Post date:** [December 31, 2021, 3:11am UTC](https://gromacs.bioexcel.eu/t/can-a-lysine-residue-be-set-as-neutral-i-e-zero-charge-without-protonation/3386/2 "2021-12-31T03:11:06Z")

</div>

LSN is simply not a residue name typically encountered in a protein, even if it is built into a force field. The solution is simple. Add a line that says `LSN Protein` to `residuetypes.dat`.

---

<div class="post-metadata">

**Author:** ![lanselibai](https://avatars.discourse-cdn.com/v4/letter/l/e9c0ed/32.png) [@lanselibai](https://gromacs.bioexcel.eu/u/lanselibai)\
**Post date:** [December 31, 2021, 9:28am UTC](https://gromacs.bioexcel.eu/t/can-a-lysine-residue-be-set-as-neutral-i-e-zero-charge-without-protonation/3386/3 "2021-12-31T09:28:16Z")

</div>

Thank you. But you can see that my PDB only has `LYS`, not `LSN`. When prompted to assign the protonation, it is either `LYS` or `LYSH`. So why `LYSN` appears?

```auto
Which LYSINE type do you want for residue 45
0. Not protonated (charge 0) (LYS)
1. Protonated (charge +1) (LYSH)

```

---

<div class="post-metadata">

**Author:** ![jalemkul](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/jalemkul/32/18_2.png) [@jalemkul](https://gromacs.bioexcel.eu/u/jalemkul)\
**Post date:** [December 31, 2021, 5:57pm UTC](https://gromacs.bioexcel.eu/t/can-a-lysine-residue-be-set-as-neutral-i-e-zero-charge-without-protonation/3386/4 "2021-12-31T17:57:32Z")

</div>

Nomenclature varies across different force fields, and there is no guarantee that “LSN” (which may appear in a PDB file) is valid in the context of the force field.

---

<div class="post-metadata">

**Author:** ![lanselibai](https://avatars.discourse-cdn.com/v4/letter/l/e9c0ed/32.png) [@lanselibai](https://gromacs.bioexcel.eu/u/lanselibai)\
**Post date:** [December 31, 2021, 10:56pm UTC](https://gromacs.bioexcel.eu/t/can-a-lysine-residue-be-set-as-neutral-i-e-zero-charge-without-protonation/3386/5 "2021-12-31T22:56:37Z")

</div>

Hi Justin, I mean, my PDB only has `LYS`, not `LSN`. So why `LSN` still appears?

---

<div class="post-metadata">

**Author:** ![jalemkul](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/jalemkul/32/18_2.png) [@jalemkul](https://gromacs.bioexcel.eu/u/jalemkul)\
**Post date:** [January 1, 2022, 2:07am UTC](https://gromacs.bioexcel.eu/t/can-a-lysine-residue-be-set-as-neutral-i-e-zero-charge-without-protonation/3386/6 "2022-01-01T02:07:58Z")

</div>

Please provide the complete screen output from `pdb2gmx` for the command that gave the error you first posted.

---

<div class="post-metadata">

**Author:** ![lanselibai](https://avatars.discourse-cdn.com/v4/letter/l/e9c0ed/32.png) [@lanselibai](https://gromacs.bioexcel.eu/u/lanselibai)\
**Post date:** [January 1, 2022, 9:15am UTC](https://gromacs.bioexcel.eu/t/can-a-lysine-residue-be-set-as-neutral-i-e-zero-charge-without-protonation/3386/7 "2022-01-01T09:15:13Z")

</div>

> [@lanselibai](#):
>
> gmx pdb2gmx -f protein.pdb -o protein\_processed.gro -water tip3p -inter -ignh -merge interactive

[log.log](https://gromacs.bioexcel.eu/uploads/short-url/zuCtIyPFlamRIIK6aLai8VKKZ9z.log) (18.9 KB)  
[topol.top](https://gromacs.bioexcel.eu/uploads/short-url/nx9Y8PKqHiC6kXTqEY2nCVLNMfW.top) (512 Bytes)

Hi, the log file is attached. Here I set LYS 45 as 0 charge, while the other LYS are all 1 charge. If I set any other LYS as 0 charge, the same issue happens.

You can get my PDB in my first post.

---

<div class="post-metadata">

**Author:** ![lanselibai](https://avatars.discourse-cdn.com/v4/letter/l/e9c0ed/32.png) [@lanselibai](https://gromacs.bioexcel.eu/u/lanselibai)\
**Post date:** [January 2, 2022, 2:59pm UTC](https://gromacs.bioexcel.eu/t/can-a-lysine-residue-be-set-as-neutral-i-e-zero-charge-without-protonation/3386/8 "2022-01-02T14:59:13Z")

</div>

I have checked that `LSN Protein` is already in the `residuetypes.dat` file, but `LYSN Protein` does not exist. So I added `LYSN Protein` to the `residuetypes.dat` file.

I can move on now. But it is still quite strange that the default `residuetypes.dat` file does not have `LYSN Protein`.

Or I still do not understand why `LYSN` (not LSN) appears. The prompt only asks either `LYS` or `LYSH`, not `LYSN`.

```auto
Which LYSINE type do you want for residue 45
0. Not protonated (charge 0) (LYS)
1. Protonated (charge +1) (LYSH)

```

.

---

<div class="post-metadata">

**Author:** ![jalemkul](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/jalemkul/32/18_2.png) [@jalemkul](https://gromacs.bioexcel.eu/u/jalemkul)\
**Post date:** [January 3, 2022, 2:46pm UTC](https://gromacs.bioexcel.eu/t/can-a-lysine-residue-be-set-as-neutral-i-e-zero-charge-without-protonation/3386/9 "2022-01-03T14:46:57Z")

</div>

LYS and LYSH are what the force field understands to be neutral and protonated lysine, hence this is what you are prompted to choose between. The force field includes an `aminoacids.r2b` file that translates these names in to residue names that are common across GROMACS force fields, which means LYS is interpreted as LYSN.

---

<div class="post-metadata">

**Author:** ![lanselibai](https://avatars.discourse-cdn.com/v4/letter/l/e9c0ed/32.png) [@lanselibai](https://gromacs.bioexcel.eu/u/lanselibai)\
**Post date:** [January 3, 2022, 3:01pm UTC](https://gromacs.bioexcel.eu/t/can-a-lysine-residue-be-set-as-neutral-i-e-zero-charge-without-protonation/3386/10 "2022-01-03T15:01:01Z")

</div>

Thank you. Since `LYSN` is translated, `LYSN` should be included in the default `residuetypes.dat` file. Hope this can be added in the next Gromacs release.

---

<div class="post-metadata">

**Author:** ![jalemkul](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/jalemkul/32/18_2.png) [@jalemkul](https://gromacs.bioexcel.eu/u/jalemkul)\
**Post date:** [January 3, 2022, 3:15pm UTC](https://gromacs.bioexcel.eu/t/can-a-lysine-residue-be-set-as-neutral-i-e-zero-charge-without-protonation/3386/11 "2022-01-03T15:15:10Z")

</div>

File a bug report on GitLab. That’s the only way to get it fixed.

---

<div class="post-metadata">

**Author:** ![lanselibai](https://avatars.discourse-cdn.com/v4/letter/l/e9c0ed/32.png) [@lanselibai](https://gromacs.bioexcel.eu/u/lanselibai)\
**Post date:** [March 3, 2022, 9:44pm UTC](https://gromacs.bioexcel.eu/t/can-a-lysine-residue-be-set-as-neutral-i-e-zero-charge-without-protonation/3386/12 "2022-03-03T21:44:48Z")

</div>

I use the `Gromacs 2021` version on our university cluster. Because this `LYSN` bug is not updated, it recognises fewer atoms in the protein entity.

Does it mean, the MD using this “Gromacs 2021 LYSN-bug” version is imperfect?  
For example, `tc-grps = Protein Non-Protein` would incorrectly consider LYSN residues as non-protein residues during the MD.

![image](https://europe1.discourse-cdn.com/flex017/uploads/bioexcel1/original/2X/5/55fb5f38564562ec7bb11d9b5bccf4cfc639672f.png)

---

<div class="post-metadata">

**Author:** ![jalemkul](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/jalemkul/32/18_2.png) [@jalemkul](https://gromacs.bioexcel.eu/u/jalemkul)\
**Post date:** [March 3, 2022, 10:26pm UTC](https://gromacs.bioexcel.eu/t/can-a-lysine-residue-be-set-as-neutral-i-e-zero-charge-without-protonation/3386/13 "2022-03-03T22:26:52Z")

</div>

Make an index that merges the Protein and LSN groups, and then manually merge solvent and ions. Use those instead of the default Protein and Non-Protein groups.

---

<div class="post-metadata">

**Author:** ![lanselibai](https://avatars.discourse-cdn.com/v4/letter/l/e9c0ed/32.png) [@lanselibai](https://gromacs.bioexcel.eu/u/lanselibai)\
**Post date:** [March 3, 2022, 10:46pm UTC](https://gromacs.bioexcel.eu/t/can-a-lysine-residue-be-set-as-neutral-i-e-zero-charge-without-protonation/3386/14 "2022-03-03T22:46:53Z")

</div>

Thank you. Do you mean I should do this before the MD, or I just need to do this during analysis?

Can I ask would it make a big difference on the performance of MD with LYSN separated? I have already run quite a long MD, thus do not want to redo it. Certainly I will include LYSN in the protein during analysis.

---

<div class="post-metadata">

**Author:** ![jalemkul](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/jalemkul/32/18_2.png) [@jalemkul](https://gromacs.bioexcel.eu/u/jalemkul)\
**Post date:** [March 3, 2022, 11:04pm UTC](https://gromacs.bioexcel.eu/t/can-a-lysine-residue-be-set-as-neutral-i-e-zero-charge-without-protonation/3386/15 "2022-03-03T23:04:42Z")

</div>

It’s irrelevant for anything except the thermostat. I have no idea how to predict the problems, but you have an integral residue of the protein with velocities modulated by the properties of the solution, which is clearly wrong.

---

<div class="post-metadata">

**Author:** ![lanselibai](https://avatars.discourse-cdn.com/v4/letter/l/e9c0ed/32.png) [@lanselibai](https://gromacs.bioexcel.eu/u/lanselibai)\
**Post date:** [March 3, 2022, 11:20pm UTC](https://gromacs.bioexcel.eu/t/can-a-lysine-residue-be-set-as-neutral-i-e-zero-charge-without-protonation/3386/16 "2022-03-03T23:20:35Z")

</div>

Hi Justin, thank you. I will redo it. I can see the Gromacs 2022 version has fixed the bug, so I will ask our HPC staff to install it.
