Gromacs

Index File

    Table of contents
    1. 1. Resources

    The GROMACS index file (usually called index.ndx) usually contains definitions for groups of atoms, known as "index groups". Each group consists of a name and a list of atom numbers relative to a coordinate or run input file. The file can be read by most analysis programs, by the graphics program (ngmx) and by the preprocessor (grompp). Most of these programs create default index groups when no index file is supplied, so you only need to make an index file when you need special groups.

    GROMACS utilities that can generate an index file for you are:

    Since the format is just a text file, and the syntax is straightforward, some index group creation tasks can be most efficiently done by hand. Create the index file (e.g. with make_ndx and quitting straight away without changing anything), then just open it in a text editor (vi, emacs, notepad, etc.), and add a new section at the end like

    [ Phe_ring ]
    136 137 139 141 143 145
    

    and you're done, so long as these atom numbers correspond to the correct coordinate file. If you're using Windows or something else which tends to take control of your business, make sure the editor you use doesn't change the file type or the filename extension.

    Some GROMACS utilities use an index file to contain other sets of integers, like trajectory frame numbers for trjconv, or shuffle/deshuffle operations for grompp and trjconv, or REMD (de)multiplexing.

     

    Page last modified 10:02, 27 Aug 2012 by mabraham