# Issue in Generating topology file

**URL:** <https://gromacs.bioexcel.eu/t/issue-in-generating-topology-file/10697>\
**Category:** User discussions\
**Tags:** forcefield\
**Created:** [December 3, 2024, 6:36am UTC](https://gromacs.bioexcel.eu/t/issue-in-generating-topology-file/10697 "2024-12-03T06:36:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sonia](https://avatars.discourse-cdn.com/v4/letter/s/c67d28/32.png) [@Sonia](https://gromacs.bioexcel.eu/u/Sonia)\
**Post date:** [December 3, 2024, 6:36am UTC](https://gromacs.bioexcel.eu/t/issue-in-generating-topology-file/10697/1 "2024-12-03T06:36:29Z")

</div>

GROMACS version:2022  
GROMACS modification: Yes/No  
Here post your question  
I am trying to generate topology for graphene and graphene oxide using CGenff but the str file does not generate any details of it and also i am getting this error: Error in atomgroup.py: read\_mol2\_coor\_only: no. of atoms in mol2 (3021) and top (0) are unequal  
Usually this means the specified residue name does not match between str and mol2 files  
How to resolve this?  
the str file has this:

- Toppar stream file generated by
- CHARMM General Force Field (CGenFF) program version 4.0
- For use with CGenFF version 4.6
- 

read rtf card append

- Topologies generated by
- CHARMM General Force Field (CGenFF) program version 4.0
- 

36 1

! “penalty” is the highest penalty score of the associated parameters.  
! Penalties lower than 10 indicate the analogy is fair; penalties between 10  
! and 50 mean some basic validation is recommended; penalties higher than  
! 50 indicate poor analogy and mandate extensive validation/optimization.

END

read param card flex append

- Parameters generated by analogy by
- CHARMM General Force Field (CGenFF) program version 4.0
- 

! Penalties lower than 10 indicate the analogy is fair; penalties between 10  
! and 50 mean some basic validation is recommended; penalties higher than  
! 50 indicate poor analogy and mandate extensive validation/optimization.

BONDS

ANGLES

DIHEDRALS

IMPROPERS

END  
RETURN

---

<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 3, 2024, 1:49pm UTC](https://gromacs.bioexcel.eu/t/issue-in-generating-topology-file/10697/2 "2024-12-03T13:49:10Z")

</div>

There is nothing in the stream file so there’s nothing to convert. CGenFF is not suitable for something like graphene; all the atom types are the same (aromatic carbon) and charges are all zero. The GROMACS `x2top` program is probably more suitable for generating this kind of topology.

---

<div class="post-metadata">

**Author:** ![Sonia](https://avatars.discourse-cdn.com/v4/letter/s/c67d28/32.png) [@Sonia](https://gromacs.bioexcel.eu/u/Sonia)\
**Post date:** [December 3, 2024, 2:00pm UTC](https://gromacs.bioexcel.eu/t/issue-in-generating-topology-file/10697/3 "2024-12-03T14:00:51Z")

</div>

Thank you for the reply. Could you kindly elaborate/share more on this x2top program?

---

<div class="post-metadata">

**Author:** ![scinikhil](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/scinikhil/32/3483_2.png) [@scinikhil](https://gromacs.bioexcel.eu/u/scinikhil)\
**Post date:** [December 3, 2024, 3:34pm UTC](https://gromacs.bioexcel.eu/t/issue-in-generating-topology-file/10697/4 "2024-12-03T15:34:37Z")

</div>

It would be better to look at the literature to see how these structures are paramterised, for example in this we have provided the parameters for rGO, you may able to use or produce in the same way, if that is suitable for your forcefield.

> **[Graphene oxide as a dual template for induced helicity of peptides](https://pubs.rsc.org/en/content/articlelanding/2022/nr/d2nr00183g)**
>
> Artificial template-mediated fabrication of secondary structures within peptides always attracts great interest in biological systems due to several biomimetic interactions. In all earlier studies, a uniform template containing...
