Hi Tsjerk,<br><br>Thanks for replying. I was going through the pdb format dcoument on the PDB webpage. I found that the box corresponds to the following:<br><br> a   b(cos(gama))  c(cos(beta)) <br> 0   b(sin(gama))   c(cos(alpha) - cos(beta) cos(gama) / sin(gama)<br>
 0    0                  V/(ab sin(gama)) <br>where V = abc(1 - (cos(alpha))^2 - (cos(beta))^2 - (cos(gama))^2+ 2cos(alpha) cos(beta) cos(gama))^1/2<br><br>This corresponds to general form in representing these vectors.  The following code also desolves to this form.<br>
<br>Thank you again.<br><br>Best,<br>Vishal<br><br>P.S. I thank all who have replied to this mail.<br><br><div class="gmail_quote">On Tue, Feb 2, 2010 at 3:44 PM, Tsjerk Wassenaar <span dir="ltr">&lt;<a href="mailto:tsjerkw@gmail.com">tsjerkw@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Vishal,<br>
<br>
Here is  a python function that generates a triclinic representation<br>
given a definition with lengths and angles. The argument L is a tuple<br>
or list containing the lengths and angles.<br>
<br>
def triclinic(L):<br>
    B = [[0,0,0],[0,0,0],[0,0,0]]<br>
<br>
    x, y, z, a, b, c = L[:6]<br>
<br>
    B[0][0] = x<br>
    if a == 90 and b == 90 and c == 90:<br>
        B[1][1] = y<br>
        B[2][2] = z<br>
    else:<br>
        a = a*pi/180<br>
        b = b*pi/180<br>
        c = c*pi/180<br>
        B[1][0] = y*cos(c)<br>
        B[1][1] = y*sin(c)<br>
        B[2][0] = z*cos(b)<br>
        B[2][1] = z*(cos(a)-cos(b)*cos(c))/sin(c)<br>
        B[2][2] = sqrt(z*z-B[2][0]**2-B[2][1]**2)<br>
<br>
    return B<br>
<br>
Hope it helps,<br>
<br>
Tsjerk<br>
<div><div></div><div class="h5"><br>
On Tue, Feb 2, 2010 at 9:23 PM, Erik Marklund &lt;<a href="mailto:erikm@xray.bmc.uu.se">erikm@xray.bmc.uu.se</a>&gt; wrote:<br>
&gt; Hi,<br>
&gt;<br>
&gt; Since any unit cell can be formulated as a triclinic cell, the monoclinic<br>
&gt; cell is indeed supported. By definition it has two 90 degree angles and one<br>
&gt; that is not 90 degrees.  The box vectors can be of different lengths. You&#39;ll<br>
&gt; have to do the math and reading yourself to find out how this translates to<br>
&gt; a .gro box. The manual is your friend here.<br>
&gt;<br>
&gt; Good luck,<br>
&gt;<br>
&gt; Erik<br>
&gt;<br>
&gt; Vishal Agarwal skrev:<br>
&gt;&gt;<br>
&gt;&gt; Dear Justin,<br>
&gt;&gt;<br>
&gt;&gt; Thanks for replying. The table mentions only a few unit cell type. I am<br>
&gt;&gt; using a monclinic unit cell. Do you know how these box vectors have been<br>
&gt;&gt; derived.<br>
&gt;&gt;<br>
&gt;&gt; thanks<br>
&gt;&gt; vishal<br>
&gt;&gt;<br>
&gt;&gt; On Tue, Feb 2, 2010 at 11:26 AM, Justin A. Lemkul &lt;<a href="mailto:jalemkul@vt.edu">jalemkul@vt.edu</a><br>
&gt;&gt; &lt;mailto:<a href="mailto:jalemkul@vt.edu">jalemkul@vt.edu</a>&gt;&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;    Vishal Agarwal wrote:<br>
&gt;&gt;<br>
&gt;&gt;        Dear gmx-users,<br>
&gt;&gt;<br>
&gt;&gt;        I am new to GROMACS. Can anyone tell me what does the last<br>
&gt;&gt;        line in .gro file stands for ?<br>
&gt;&gt;<br>
&gt;&gt;        The manual mentions<br>
&gt;&gt;        &quot;box[X][X],box[Y][Y],box[Z][Z],<br>
&gt;&gt;        box[X][Y],box[X][Z],box[Y][X],box[Y][Z],box[Z][X],box[Z][Y]&quot;<br>
&gt;&gt;<br>
&gt;&gt;        Can anyone explain what each of these mean in terms of cell<br>
&gt;&gt;        parameters ?<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;    The last line contains the box vectors.  Specifics in terms of<br>
&gt;&gt;    unit cell geometry are given in the manual, Table 3.1 and section<br>
&gt;&gt;    3.2.1.<br>
&gt;&gt;<br>
&gt;&gt;    -Justin<br>
&gt;&gt;<br>
&gt;&gt;        Thanks,<br>
&gt;&gt;        vishal<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;    --    ========================================<br>
&gt;&gt;<br>
&gt;&gt;    Justin A. Lemkul<br>
&gt;&gt;    Ph.D. Candidate<br>
&gt;&gt;    ICTAS Doctoral Scholar<br>
&gt;&gt;    MILES-IGERT Trainee<br>
&gt;&gt;    Department of Biochemistry<br>
&gt;&gt;    Virginia Tech<br>
&gt;&gt;    Blacksburg, VA<br>
&gt;&gt;    jalemkul[at]<a href="http://vt.edu" target="_blank">vt.edu</a> &lt;<a href="http://vt.edu" target="_blank">http://vt.edu</a>&gt; | (540) 231-9080<br>
&gt;&gt;    <a href="http://www.bevanlab.biochem.vt.edu/Pages/Personal/justin" target="_blank">http://www.bevanlab.biochem.vt.edu/Pages/Personal/justin</a><br>
&gt;&gt;<br>
&gt;&gt;    ========================================<br>
&gt;&gt;    --    gmx-users mailing list    <a href="mailto:gmx-users@gromacs.org">gmx-users@gromacs.org</a><br>
&gt;&gt;    &lt;mailto:<a href="mailto:gmx-users@gromacs.org">gmx-users@gromacs.org</a>&gt;<br>
&gt;&gt;    <a href="http://lists.gromacs.org/mailman/listinfo/gmx-users" target="_blank">http://lists.gromacs.org/mailman/listinfo/gmx-users</a><br>
&gt;&gt;    Please search the archive at <a href="http://www.gromacs.org/search" target="_blank">http://www.gromacs.org/search</a> before<br>
&gt;&gt;    posting!<br>
&gt;&gt;    Please don&#39;t post (un)subscribe requests to the list. Use the www<br>
&gt;&gt;    interface or send it to <a href="mailto:gmx-users-request@gromacs.org">gmx-users-request@gromacs.org</a><br>
&gt;&gt;    &lt;mailto:<a href="mailto:gmx-users-request@gromacs.org">gmx-users-request@gromacs.org</a>&gt;.<br>
&gt;&gt;    Can&#39;t post? Read <a href="http://www.gromacs.org/mailing_lists/users.php" target="_blank">http://www.gromacs.org/mailing_lists/users.php</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; Regards<br>
&gt;&gt;<br>
&gt;&gt; ***********************************************<br>
&gt;&gt; Vishal Agarwal<br>
&gt;&gt; Research Scholar<br>
&gt;&gt; University of Massachusetts, Amherst<br>
&gt;&gt; ***********************************************<br>
&gt;&gt; &#39;Your only obligation in any lifetime is to be true to yourself.&quot;<br>
&gt;&gt;            ---Richard Bach<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; -----------------------------------------------<br>
&gt; Erik Marklund, PhD student<br>
&gt; Laboratory of Molecular Biophysics,<br>
&gt; Dept. of Cell and Molecular Biology, Uppsala University.<br>
&gt; Husargatan 3, Box 596,    75124 Uppsala, Sweden<br>
&gt; phone:    +46 18 471 4537        fax: +46 18 511 755<br>
&gt; <a href="mailto:erikm@xray.bmc.uu.se">erikm@xray.bmc.uu.se</a>    <a href="http://xray.bmc.uu.se/molbiophys" target="_blank">http://xray.bmc.uu.se/molbiophys</a><br>
&gt;<br>
&gt; --<br>
&gt; gmx-users mailing list    <a href="mailto:gmx-users@gromacs.org">gmx-users@gromacs.org</a><br>
&gt; <a href="http://lists.gromacs.org/mailman/listinfo/gmx-users" target="_blank">http://lists.gromacs.org/mailman/listinfo/gmx-users</a><br>
&gt; Please search the archive at <a href="http://www.gromacs.org/search" target="_blank">http://www.gromacs.org/search</a> before posting!<br>
&gt; Please don&#39;t post (un)subscribe requests to the list. Use the www interface<br>
&gt; or send it to <a href="mailto:gmx-users-request@gromacs.org">gmx-users-request@gromacs.org</a>.<br>
&gt; Can&#39;t post? Read <a href="http://www.gromacs.org/mailing_lists/users.php" target="_blank">http://www.gromacs.org/mailing_lists/users.php</a><br>
&gt;<br>
<br>
<br>
<br>
</div></div><font color="#888888">--<br>
Tsjerk A. Wassenaar, Ph.D.<br>
<br>
Computational Chemist<br>
Medicinal Chemist<br>
Neuropharmacologist<br>
</font><div><div></div><div class="h5">--<br>
gmx-users mailing list    <a href="mailto:gmx-users@gromacs.org">gmx-users@gromacs.org</a><br>
<a href="http://lists.gromacs.org/mailman/listinfo/gmx-users" target="_blank">http://lists.gromacs.org/mailman/listinfo/gmx-users</a><br>
Please search the archive at <a href="http://www.gromacs.org/search" target="_blank">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" target="_blank">http://www.gromacs.org/mailing_lists/users.php</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Regards<br><br>***********************************************<br>Vishal Agarwal<br>Research Scholar<br>University of Massachusetts, Amherst<br>***********************************************<br>
&#39;Your only obligation in any lifetime is to be true to yourself.&quot;<br>             ---Richard Bach<br>