does the GRO file have all the connectivity information required to initiate MDAnalysis?

84 views
Skip to first unread message

Satyen Dhamankar

unread,
Feb 22, 2021, 1:32:33 AM2/22/21
to MDnalysis discussion
Hello, 

I am running a simple simulation for benzene in GROMACS with 739 benzene molecules using the GROMOS forcefield. What I want to do is run some analysis on my trajectory. 

This is how I have set things up: 
import MDAnalysis
import numpy as np
u = MDAnalysis.Universe("739-c6h6-in-box.gro","739-c6h6-MolDynamics_good-pbc.xtc")

The above piece of code ran with no errors. 
.xtc is the binary gromacs trajectory file. 
.gro file contains all the coordinates of the 739 molecules, with the residue number, resid. 

As far as I know, my 739-c6h6-in-box.gro file, does not have information about connectivity. I created that file using the insert-molecules command in GROMACS using the file c6h6-in-box.gro. c6h6-in-box.gro was created using editconf on c6h6.pdb. 

My question is, since 739-c6h6-in-box.gro has no explicit mention of connectivity, will my analysis work fine? If not, how do I go about entering the topology of my file?

Thank you in advance for any advice you have for me!

Sudarshan Behera

unread,
Feb 22, 2021, 2:01:27 AM2/22/21
to mdnalysis-...@googlegroups.com
Dear Satyen,

As long as your analysis involves atom selection using resid, atom name, residue name, and/or atom index, it will work fine as the GRO file contains this information. But, if you are doing an analysis that required you to select a group of atoms using segid (chain id) and others, it will not work. A better way is to load a PDB file instead of a GRO file. The best way is to load a TPR generated by gromacs (if you've). The TPR file has all the information.

Hope this helps.
Thank you. Regards
Sudarshan

--
You received this message because you are subscribed to the Google Groups "MDnalysis discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mdnalysis-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mdnalysis-discussion/b61cba3f-6d88-4e12-be23-86cebd1f8088n%40googlegroups.com.


--
Sudarshan Behera
Ph.D. Graduate Student
Supervisor - Prof. S. Balasubramanian
Molecular Simulation Laboratory
JNCASR, Bangalore
INDIA

Satyen Dhamankar

unread,
Feb 22, 2021, 2:01:44 PM2/22/21
to MDnalysis discussion
Thank you for your response! I will try this out. 
Reply all
Reply to author
Forward
0 new messages