[gmx-users] Redirecting trajectories from one gmx module to another

Mark Abraham mark.j.abraham at gmail.com
Mon Oct 13 11:41:39 CEST 2014


Hi,

Unfortunately, Gromacs file handling wasn't designed with pipes in mind. In
particular, we often open a file, read its header to get some information,
and then go back and read the file again, which doesn't work well with
using pipes (see http://redmine.gromacs.org/issues/1489 for details).
Relaxing that would be very useful, but there's nobody currently working on
it.

Work-arounds might include memory-mapping the temporary file, or doing the
analysis on pieces and combining the analysis results, but there's no magic
bullet.

Mark

On Mon, Oct 13, 2014 at 10:32 AM, Machtens, Jan-Philipp <
j.machtens at fz-juelich.de> wrote:

> Hi,
> I would like to redirect gromacs trajectories from one gmx module to
> another, e.g. using a shell pipe...
> For example, analyzing a trajectory which is split into two files could be
> done
> using
> gmx trjcat -f traj.part1.xtc traj.part2.xtc -o traj.cat.xtc && gmx
> whatever -f traj.cat.xtc -o result
> I would like to save the time needed by the trjcat run and the additional
> disk space for the concatenated trajectory by using something like
> gmx trjcat -f traj.part1.xtc traj.part2.xtc | gmx whatever -f - -o result
>
> This doesn't work that easy. Does anyone know an existing solution ?
> Thanks!
> Jan-Philipp
>
>
>
> ------------------------------------------------------------------------------------------------
>
> ------------------------------------------------------------------------------------------------
> Forschungszentrum Juelich GmbH
> 52425 Juelich
> Sitz der Gesellschaft: Juelich
> Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
> Vorsitzender des Aufsichtsrats: MinDir Dr. Karl Eugen Huthmacher
> Geschaeftsfuehrung: Prof. Dr.-Ing. Wolfgang Marquardt (Vorsitzender),
> Karsten Beneke (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt,
> Prof. Dr. Sebastian M. Schmidt
>
> ------------------------------------------------------------------------------------------------
>
> ------------------------------------------------------------------------------------------------
>
> --
> Gromacs Users mailing list
>
> * Please search the archive at
> http://www.gromacs.org/Support/Mailing_Lists/GMX-Users_List before
> posting!
>
> * Can't post? Read http://www.gromacs.org/Support/Mailing_Lists
>
> * For (un)subscribe requests visit
> https://maillist.sys.kth.se/mailman/listinfo/gromacs.org_gmx-users or
> send a mail to gmx-users-request at gromacs.org.
>


More information about the gromacs.org_gmx-users mailing list