<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, May 27, 2013 at 6:04 PM, Roland Schulz <span dir="ltr">&lt;<a href="mailto:roland@utk.edu" target="_blank">roland@utk.edu</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Mon, May 27, 2013 at 9:56 AM, Mark Abraham &lt;<a href="mailto:mark.j.abraham@gmail.com">mark.j.abraham@gmail.com</a>&gt; wrote:<br>

&gt; On Mon, May 27, 2013 at 3:40 AM, Pedro Lacerda &lt;<a href="mailto:kanvuanza%2Bgmx@zoho.com">kanvuanza+gmx@zoho.com</a>&gt;<br>
<br>
</div><div class="im">&gt;&gt; ## The question:<br>
&gt;&gt; How can I read an topology file for populate my t_atoms (or gmx_mtop_t)<br>
&gt;&gt; with eg. charges and masses? read_tpx() in tpxio.h can use only preprocessed<br>
&gt;&gt; file formats like TPR. do_top() in topio.h seems a bit exagerated (in number<br>
&gt;&gt; of function parameters) to just parse an TOP or ITP file and populate some<br>
&gt;&gt; objects. If do_top() is the way to go, is grompp&#39;s new_status() approach<br>
&gt;&gt; reasonable?<br>
&gt;<br>
&gt;<br>
</div><div class="im">&gt; The lack of modularity in this code is its most obvious quality. My usual<br>
&gt; recommendation for these kinds of questions is to pick a GROMACS tool that<br>
&gt; does something close to what you want, look at how it populates a data<br>
&gt; structure, do the same thing, and work out how to get the subset of data you<br>
&gt; really want. new_status() probably (over-)fills your needs.<br>
<br>
</div>Do we have analysis tools which read topology from a top/itp file? I<br>
thought analysis tools always read it from the TPR.<br></blockquote><div><br></div><div style>IIRC genion touches the .top file, but I don&#39;t know if it parses much.</div><div style><br></div><div style>Mark</div><div>
<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
@Pedro: What is the reason you need to read a top file, and cannot<br>
generate a tpr first and then read it?<br>
<br>
Roland<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
ORNL/UT Center for Molecular Biophysics <a href="http://cmb.ornl.gov" target="_blank">cmb.ornl.gov</a><br>
865-241-1537, ORNL PO BOX 2008 MS6309<br>
--<br>
gmx-developers mailing list<br>
<a href="mailto:gmx-developers@gromacs.org">gmx-developers@gromacs.org</a><br>
<a href="http://lists.gromacs.org/mailman/listinfo/gmx-developers" target="_blank">http://lists.gromacs.org/mailman/listinfo/gmx-developers</a><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-developers-request@gromacs.org">gmx-developers-request@gromacs.org</a>.<br>
</font></span></blockquote></div><br></div></div>