# How to convert stream file (.str) which is NOT generated fromCGenFF into .itp and .prm file

**URL:** <https://gromacs.bioexcel.eu/t/how-to-convert-stream-file-str-which-is-not-generated-fromcgenff-into-itp-and-prm-file/1286>\
**Category:** User discussions\
**Created:** [December 17, 2020, 8:38pm UTC](https://gromacs.bioexcel.eu/t/how-to-convert-stream-file-str-which-is-not-generated-fromcgenff-into-itp-and-prm-file/1286 "2020-12-17T20:38:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kuj0001](https://avatars.discourse-cdn.com/v4/letter/k/8491ac/32.png) [@kuj0001](https://gromacs.bioexcel.eu/u/kuj0001)\
**Post date:** [December 17, 2020, 8:38pm UTC](https://gromacs.bioexcel.eu/t/how-to-convert-stream-file-str-which-is-not-generated-fromcgenff-into-itp-and-prm-file/1286/1 "2020-12-17T20:38:29Z")

</div>

GROMACS version:2018.1

GROMACS modification: No

Hello.  
I am trying to include Hydronium ions (H3O)+ in to my system and I have a stream file (.str) and input file (.inp) developed from a research group.I know using the python script in [http://mackerell.umaryland.edu/charmm\_ff.shtml#gromacs](http://mackerell.umaryland.edu/charmm_ff.shtml#gromacs) can obtain .itp .prm files from CGenFF generated stream file.  
But is there any method that I can get .itp and .prm files from non-generated .str file?

Thank you!

---

<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 18, 2020, 2:23am UTC](https://gromacs.bioexcel.eu/t/how-to-convert-stream-file-str-which-is-not-generated-fromcgenff-into-itp-and-prm-file/1286/2 "2020-12-18T02:23:33Z")

</div>

For a molecule with 4 atoms, 3 bonds, and 3 angles, I would just write the topology by hand. It will probably be faster than trying to write a converter.

---

<div class="post-metadata">

**Author:** ![kuj0001](https://avatars.discourse-cdn.com/v4/letter/k/8491ac/32.png) [@kuj0001](https://gromacs.bioexcel.eu/u/kuj0001)\
**Post date:** [December 28, 2020, 9:21pm UTC](https://gromacs.bioexcel.eu/t/how-to-convert-stream-file-str-which-is-not-generated-fromcgenff-into-itp-and-prm-file/1286/3 "2020-12-28T21:21:26Z")

</div>

Thank you for the feedback. I am new to MD simulations so I tried to find a protocol that can lead me to understand how to build the topology,but I couldnt find. Do you know where I can find ?  
Also, I found ffTK in VMD can generate CHARMM parameter file ,so I would like to know can I use cgenff\_charmm2gmx\_py3\_nx2.py` script to convert my parameters obtained with FFTK into GROMACS format?  
I found here ,someone has done it,[Atom types equivalence between CHARMM36 and AMBER99bsc1](https://gromacs.bioexcel.eu/t/atom-types-equivalence-between-charmm36-and-amber99bsc1/1223)  
Thank you!  
Udara

---

<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 29, 2020, 2:52am UTC](https://gromacs.bioexcel.eu/t/how-to-convert-stream-file-str-which-is-not-generated-fromcgenff-into-itp-and-prm-file/1286/4 "2020-12-29T02:52:11Z")

</div>

> [@kuj0001](#):
>
> Also, I found ffTK in VMD can generate CHARMM parameter file ,so I would like to know can I use cgenff\_charmm2gmx\_py3\_nx2.py` script to convert my parameters obtained with FFTK into GROMACS format?

No, sorry.

> [@kuj0001](#):
>
> I found here ,someone has done it,[Atom types equivalence between CHARMM36 and AMBER99bsc1](https://gromacs.bioexcel.eu/t/atom-types-equivalence-between-charmm36-and-amber99bsc1/1223)

Note from my reply that it is not possible to transform one force field into another, but such a topic is not relevant to what you’re doing.

Start with a known system that works. Study it and make sure you understand it, and refer to the GROMACS manual to understand the requisite file formats. One such example that may be useful: [Protein-Ligand Complex](http://www.mdtutorials.com/gmx/complex/index.html)
