# Text file to trj file

**URL:** <https://gromacs.bioexcel.eu/t/text-file-to-trj-file/3513>\
**Category:** User discussions\
**Created:** [January 21, 2022, 4:52am UTC](https://gromacs.bioexcel.eu/t/text-file-to-trj-file/3513 "2022-01-21T04:52:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mostafa\_Gamal96](https://avatars.discourse-cdn.com/v4/letter/m/bc79bd/32.png) [@Mostafa\_Gamal96](https://gromacs.bioexcel.eu/u/Mostafa_Gamal96)\
**Post date:** [January 21, 2022, 4:52am UTC](https://gromacs.bioexcel.eu/t/text-file-to-trj-file/3513/1 "2022-01-21T04:52:48Z")

</div>

GROMACS version:  
GROMACS modification: Yes/No  
Here post your question  
Is it possible to convert text file containing ( ID for object, frame, and coordinates ) to trj file

---

<div class="post-metadata">

**Author:** ![michael.brunsteiner](https://avatars.discourse-cdn.com/v4/letter/m/7cd45c/32.png) [@michael.brunsteiner](https://gromacs.bioexcel.eu/u/michael.brunsteiner)\
**Post date:** [January 21, 2022, 8:44pm UTC](https://gromacs.bioexcel.eu/t/text-file-to-trj-file/3513/2 "2022-01-21T20:44:03Z")

</div>

you can convert your text file to pdb, and then the pdb to trr files with  
gmx trjconv.  
to understand to correct format for the pdb just convert an existing  
trr to pdb.with the same command. you might need a tpr file for  
that, if you don’t have the topology to make that you can just  
submit a pdb file for the -s command line argument.
