Hi all.<br><br>Firstly, thanks a lot for all the help!&nbsp; ;)<br><br>First, about reading the atom-names from a .gro file, I don&#39;t think it would &quot;so painfull&quot;. It would &quot;look like&quot; a bit to having a well programmed &quot;state machine&quot; in the code.
<br><br>About the language, yes, I admit that bor reads and writes, fortran is miserable. But for calculations (like the inner codes of a certain program?&nbsp; ;)&nbsp; only joking...&nbsp; :D&nbsp; ) if one chooses not to go by assembly, fortran is still the way, specially if you consider the extra simplicity of fortran90. Anyway, I would not even consider re-writing the reads in fortran, but would love to consider to link to a library (like in reading .xtc files) or gromacs compiled object just to read it correctly.&nbsp; ;)
<br><br>About the box, is it on the .xtc file? Could not get the proper variable of it, could someone give me some infor which is that?<br><br>Finally: yes, I considered changing everything to a .pdb file, despite the file size and the fact that I completelly forgot it could have the charges on it. But even so I would still have problems with the atomic masses, am I right? Or can I put that on a standard pdb file with gromacs programs?
<br><br>Again, tahnks a lot for all help in advance!<br><br>Sincerally yours,<br><br>Jones<br><br><div><span class="gmail_quote">On 9/30/07, <b class="gmail_sendername">David van der Spoel</b> &lt;<a href="mailto:spoel@xray.bmc.uu.se">
spoel@xray.bmc.uu.se</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Mark Abraham wrote:<br>&gt; Jones de Andrade wrote:
<br>&gt;&gt; Hi Tsjerk.<br>&gt;&gt;<br>&gt;&gt; Thanks for the prompt answer.<br>&gt;&gt;<br>&gt;&gt; Good idea, I can take the atom names from a .gro file, nad, probably<br>&gt;&gt; some strange algorithm can also get the number of atoms per molecule
<br>&gt;&gt; and number of molecules from there, am I right? That would help a lot.<br>&gt;<br>&gt; Simplest is to write a parser for a gmxdump of a .tpr file. This is what<br>&gt; Perl was made for. If you&#39;re constrained to use Fortran for your
<br>&gt; analysis program, then developing an intermediate file format for it to<br>&gt; parse might be worthwhile.<br>&gt;<br>&gt;&gt; But: I&#39;ll still be unable to get atomic masses and point charges. No<br>&gt;&gt; to mention the box shape. :( And I&#39;ll need a way to read these
<br>&gt;&gt; parameters too, unless I begin to write all them in a really awfull<br>&gt;&gt; and strange index file.<br>&gt;&gt;<br>&gt;&gt;&nbsp;&nbsp;From what I can understand on the &quot;file logistics&quot; of gromacs, these<br>
&gt;&gt; information are only stored in the whole &quot;.top .itp .atp .rtp<br>&gt;&gt; structure of files&quot; or, in a condensed form, in the &quot;.tpr&quot; file. Is<br>&gt;&gt; that right?<br>&gt;<br>&gt; Yeah. Writing something to do the lookups in the .*tp files which grompp
<br>&gt; does to form the .tpr is asking for trouble. Do the lookup in the .tpr<br>&gt; file. The .edr file has box dimensions, of course.<br>&gt;<br>&gt; All this makes it sound like you should be dropping Fortran and writing
<br>&gt; in C or Perl!<br>&gt;<br>the box is in the xtc file, if you need the atom names a corresponding<br>pdb or gro file should do the trick. don&#39;t try to read tpr files or<br>gmxdumps of it, that&#39;s a complete waste of time. you can 
e.g. use<br>editconf to dump a pdb file with charges in the b-factor fields.<br><br>And indeed, using fortran will make your life quite miserable for these<br>kind of things.<br><br>--<br>David van der Spoel, Ph.D.<br>Molec. Biophys. group, Dept. of Cell &amp; Molec. Biol., Uppsala University.
<br>Box 596, 75124 Uppsala, Sweden. Phone:&nbsp;&nbsp;+46184714205. Fax: +4618511755.<br><a href="mailto:spoel@xray.bmc.uu.se">spoel@xray.bmc.uu.se</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="mailto:spoel@gromacs.org">spoel@gromacs.org</a>&nbsp;&nbsp; <a href="http://folding.bmc.uu.se">
http://folding.bmc.uu.se</a><br>_______________________________________________<br>gmx-users mailing list&nbsp;&nbsp;&nbsp;&nbsp;<a href="mailto:gmx-users@gromacs.org">gmx-users@gromacs.org</a><br><a href="http://www.gromacs.org/mailman/listinfo/gmx-users">
http://www.gromacs.org/mailman/listinfo/gmx-users</a><br>Please search the archive at <a href="http://www.gromacs.org/search">http://www.gromacs.org/search</a> before posting!<br>Please don&#39;t post (un)subscribe requests to the list. Use the
<br>www interface or send it to <a href="mailto:gmx-users-request@gromacs.org">gmx-users-request@gromacs.org</a>.<br>Can&#39;t post? Read <a href="http://www.gromacs.org/mailing_lists/users.php">http://www.gromacs.org/mailing_lists/users.php
</a><br></blockquote></div><br>