# Error in AtomMapping with more than 100 atoms

**URL:** <https://ask.bioexcel.eu/t/error-in-atommapping-with-more-than-100-atoms/4903>\
**Category:** pmx\
**Created:** [April 3, 2024, 11:04pm UTC](https://ask.bioexcel.eu/t/error-in-atommapping-with-more-than-100-atoms/4903 "2024-04-03T23:04:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![AngelicaSandoval](https://avatars.discourse-cdn.com/v4/letter/a/bbce88/32.png) [@AngelicaSandoval](https://ask.bioexcel.eu/u/AngelicaSandoval)\
**Post date:** [April 3, 2024, 11:04pm UTC](https://ask.bioexcel.eu/t/error-in-atommapping-with-more-than-100-atoms/4903/1 "2024-04-03T23:04:10Z")

</div>

Hi everyone

I am trying to use the pmx atomMapping, to create a hybrid topology for ligands. Whenever I try to do the mapping with more than 100 atoms (including hydrogens) it fails and shows the following error:  
Cannot determine element for PDB atom #100

I use the following line:  
pmx atomMapping -i1 mol1.pdb -i2 mol2.pdb -o1 pairs1.out -o2 pairs2.out -opdb1 out\_pdb1.pdb -opdb2 out\_pdb2.pdb -score out\_score.dat

Is there a way to do the mapping and hybrid topology for this “big” ligands?

Thank you!

Angelica S.

---

<div class="post-metadata">

**Author:** ![Sudchem](https://avatars.discourse-cdn.com/v4/letter/s/ecccb3/32.png) [@Sudchem](https://ask.bioexcel.eu/u/Sudchem)\
**Post date:** [April 4, 2024, 6:41am UTC](https://ask.bioexcel.eu/t/error-in-atommapping-with-more-than-100-atoms/4903/2 "2024-04-04T06:41:00Z")

</div>

Hi Angelica,

That seems like an issue with reading the PDB file.  
Could you check if the file format (and element name) is fine?  
Could you also share the files for reproducing the error?

Thanks,  
Sudarshan

---

<div class="post-metadata">

**Author:** ![AngelicaSandoval](https://avatars.discourse-cdn.com/v4/letter/a/bbce88/32.png) [@AngelicaSandoval](https://ask.bioexcel.eu/u/AngelicaSandoval)\
**Post date:** [April 4, 2024, 4:57pm UTC](https://ask.bioexcel.eu/t/error-in-atommapping-with-more-than-100-atoms/4903/3 "2024-04-04T16:57:19Z")

</div>

Hi Sudarshan,

Thank you for your reply.  
Yes, there was a issue in the PDB with the atom naming. I renamed the atoms and now it works.  
I can’t share the original file but, basically I made the following change for all the atoms with a naming over X99:

from:  
ATOM 100 H100 171 1 131.718 139.293 94.299 1.00 0.00 XXXX

to:  
ATOM 100 H10 171 1 131.718 139.293 94.299 1.00 0.00 XXXX

Thanks,

Angelica S.
