Comment on TPRReaderDevelopment in mdanalysis

16 views
Skip to first unread message

mdana...@googlecode.com

unread,
Aug 7, 2012, 12:20:51 AM8/7/12
to mdnalysis-...@googlegroups.com
Comment by orbeckst:

Jan, looks like a great start for a TPR reader. If you can extract the list
of atoms then you have the basic reader. (Btw, there's a 'return' in the
middle...).

The only difficulty will be keeping up with the constant format changes
during Gromacs development...

All in all: very encouraging!

For more information:
http://code.google.com/p/mdanalysis/wiki/TPRReaderDevelopment

Andy Somogyi

unread,
Aug 7, 2012, 1:41:40 AM8/7/12
to mdnalysis-...@googlegroups.com
In the topology editor / reader / writer I'm finishing up (can do psf, top and tpr), I just use gmxlib's read_tpx which reads a tpr and fills out a gmx_mtop_t structure. top files are a bit more complicated, but do_top essentially reads a .top and fills out a gmx_mtop_t.

IMO, trying to manually parse a tpr is probably not a super great idea because this file format is basically a binary dump of the gmx_mtop_t struct, which changes all the time, read_tpx takes care of all the past gromacs versions.

I'm still working on API cleanup, and build issues. I'm going to see if how feasible it is using setup.py check how gromacs is installed, and set the appropriate preprocessor directives.
> --
> You received this message because you are subscribed to the Google Groups "MDnalysis discussion" group.
> To post to this group, send email to mdnalysis-...@googlegroups.com.
> To unsubscribe from this group, send email to mdnalysis-discus...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/mdnalysis-discussion?hl=en.
>

Jan Domanski

unread,
Aug 7, 2012, 8:34:06 AM8/7/12
to mdnalysis-...@googlegroups.com
Hi Andy,

Excellent! If you have the tool ready, then (it's less work for me)
let's stick with what you've written.

Jan

mdana...@googlecode.com

unread,
Oct 15, 2012, 11:34:59 AM10/15/12
to mdnalysis-...@googlegroups.com
Comment by proten...@gmail.com:

Is this still being developed? I've been looking for a unified python-based
tpr reader for a while. I've been looking for the specs

mdana...@googlecode.com

unread,
Oct 16, 2012, 3:47:20 AM10/16/12
to mdnalysis-...@googlegroups.com
Comment by orbeckst:

Not sure if Jan is still working on it. See also Issue 2 and this thread on
[https://groups.google.com/d/topic/mdnalysis-devel/nMwUjAZR-iQ/discussion
Issue 2 in mdanalysis: reading Gromacs tpr files instead of psf] on the
developers mailing list.

I have never found an official API and in fact the TPR format often changes
(that's why you need the format number). You probably need to look at the
Gromacs sources but you can also use gmxdump to get a ASCII version of the
TPR file. The safest approach is probably to wrap the actual Gromacs libgmx
or libmd to access the TPR.

There's also Daniel Seeliger's [http://wwwuser.gwdg.de/~dseelig/pymacs.html
pymacs], which directly uses the Gromacs libs.

For more information:
https://code.google.com/p/mdanalysis/wiki/TPRReaderDevelopment
Reply all
Reply to author
Forward
0 new messages