<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
    <title></title>
  </head>
  <body text="#000000" bgcolor="#ffffff">
    On 13/11/2010 4:58 AM, sa wrote:
    <blockquote
      cite="mid:AANLkTikTpC9h=E1-_Vq6=77-36OPzKH7VJve6-MmSA5e@mail.gmail.com"
      type="cite"><br>
      <div class="gmail_quote">
        <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
          0.8ex; border-left: 1px solid rgb(204, 204, 204);
          padding-left: 1ex;">
          On 13/11/2010 4:07 AM, sa wrote:<br>
          &gt; Dear All,<br>
          &gt;<br>
          &gt; I would like to compute the average 2D density
          distribution of the<br>
          &gt; water around 6 peptides aggregated in the cluster within
          the<br>
          &gt; simulation box with gromacs, for that I think that
          g_densmap is the<br>
          &gt; the good tool (correct ?).<br>
          &gt;<br>
          &gt; However it is not very clear for how to use g_densmap.
          Below the<br>
          &gt; command I used with g_densmap (ver GMX 4.5.3)<br>
          &gt;<br>
          &gt; g_densmap_mpi -f ./TRAJ/XTC/6_Pep_Urea_Pref_All.xtc -s<br>
          &gt; ./TRAJ/TPR/em.tpr &nbsp;-bin 0.02 -amax 30 -rmax 30 -b 0 -e
          80000 -o<br>
          &gt; 6_Peptide_53A6_densmap.xpm -od 6_Peptide_53A6_densmap.dat<br>
          &gt;<br>
          &gt; When I use the above command, g_densmap asks me to choose
          two groups<br>
          &gt; to define the axis and an analysis group:<br>
          &gt;<br>
          &gt; Reading file ./TRAJ/TPR/em.tpr, VERSION 4.5.1 (single
          precision)<br>
          &gt; Reading file ./TRAJ/TPR/em.tpr, VERSION 4.5.1 (single
          precision)<br>
          &gt; Select two groups to define the axis and an analysis
          group<br>
          &gt; Group &nbsp; &nbsp; 0 ( &nbsp; &nbsp; &nbsp; &nbsp; System) has 86359 elements<br>
          &gt; Group &nbsp; &nbsp; 1 ( &nbsp; &nbsp; &nbsp; &nbsp;Protein) has &nbsp; 546 elements<br>
          &gt; Group &nbsp; &nbsp; 2 ( &nbsp; &nbsp; &nbsp;Protein-H) has &nbsp; 396 elements<br>
          &gt; Group &nbsp; &nbsp; 3 ( &nbsp; &nbsp; &nbsp; &nbsp;C-alpha) has &nbsp; &nbsp;48 elements<br>
          &gt; Group &nbsp; &nbsp; 4 ( &nbsp; &nbsp; &nbsp; Backbone) has &nbsp; 144 elements<br>
          &gt; Group &nbsp; &nbsp; 5 ( &nbsp; &nbsp; &nbsp;MainChain) has &nbsp; 192 elements<br>
          &gt; Group &nbsp; &nbsp; 6 ( &nbsp; MainChain+Cb) has &nbsp; 234 elements<br>
          &gt; Group &nbsp; &nbsp; 7 ( &nbsp; &nbsp;MainChain+H) has &nbsp; 246 elements<br>
          &gt; Group &nbsp; &nbsp; 8 ( &nbsp; &nbsp; &nbsp;SideChain) has &nbsp; 300 elements<br>
          &gt; Group &nbsp; &nbsp; 9 ( &nbsp; &nbsp;SideChain-H) has &nbsp; 204 elements<br>
          &gt; Group &nbsp; &nbsp;10 ( &nbsp; &nbsp;Prot-Masses) has &nbsp; 546 elements<br>
          &gt; Group &nbsp; &nbsp;11 ( &nbsp; &nbsp;non-Protein) has 85813 elements<br>
          &gt; Group &nbsp; &nbsp;12 ( &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Other) has 17320 elements<br>
          &gt; Group &nbsp; &nbsp;13 ( &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;URE) has 17320 elements<br>
          &gt; Group &nbsp; &nbsp;14 ( &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CL) has &nbsp; &nbsp; 6 elements<br>
          &gt; Group &nbsp; &nbsp;15 ( &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Water) has 68487 elements<br>
          &gt; Group &nbsp; &nbsp;16 ( &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SOL) has 68487 elements<br>
          &gt; Group &nbsp; &nbsp;17 ( &nbsp; &nbsp; &nbsp;non-Water) has 17872 elements<br>
          &gt; Group &nbsp; &nbsp;18 ( &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Ion) has &nbsp; &nbsp; 6 elements<br>
          &gt; Group &nbsp; &nbsp;19 ( &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;URE) has 17320 elements<br>
          &gt; Group &nbsp; &nbsp;20 ( &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CL) has &nbsp; &nbsp; 6 elements<br>
          &gt; Group &nbsp; &nbsp;21 ( Water_and_ions) has 68493 elements<br>
          &gt; Select a group: 1<br>
          &gt; Selected 1: 'Protein'<br>
          &gt; Select a group: 16<br>
          &gt; Selected 16: 'SOL'<br>
          &gt; Select a group: 16<br>
          &gt; Selected 16: 'SOL'<br>
          &gt;<br>
          &gt; I chose protein and SOL, the program ask me to choose a
          third group<br>
          &gt; (?) What to choose ?<br>
          <br>
          Doesn't g_densmap -h explain the three groups?<br>
        </blockquote>
        <div><br>
          &nbsp;Yes I have read the help of the tool but it is not clear to
          me why i have to choose three groups since i want to compute
          the water density map around my peptides (-&gt; two groups) <br>
        </div>
      </div>
    </blockquote>
    <br>
    You need to define an axis by the line between the centers of mass
    of two groups. Almost surely the COM of your protein cluster and the
    COM of your water is a random line. I don't know what there is about
    your system that makes you want a 2D density distribution, but if
    there is, you need to come up with a sensible axis around which to
    compute. Only then does the distribution of third group get
    computed.<br>
    <br>
    <blockquote
      cite="mid:AANLkTikTpC9h=E1-_Vq6=77-36OPzKH7VJve6-MmSA5e@mail.gmail.com"
      type="cite">
      <div class="gmail_quote">
        <div>
        </div>
        <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
          0.8ex; border-left: 1px solid rgb(204, 204, 204);
          padding-left: 1ex;">
          <br>
          &gt; I choose SOL again, the program computes something but i
          can not<br>
          &gt; inspect the results are what i want since no xpm is
          generated by<br>
          &gt; g_densmap (is this a bug ?)<br>
          <br>
          Probably badly-formed input is silently breaking something
          somewhere.<br>
        </blockquote>
        <div><br>
          I don't understand your response since with the above command
          and -o argument show that an xpm with the name
          "6_Peptide_53A6_densmap.xpm" should appear<br>
        </div>
      </div>
    </blockquote>
    <br>
    Agreed, but lets get your input formed sensibly before deducing that
    there's a bug or anything.<br>
    <br>
    I had a quick look at the code, and Peter Kasson designed it so that
    if you use -od then you won't get the -o output. You could get both
    from two invocations of g_densmap, which doesn't sound like a good
    design, and certainly contradicts the documentation. For the moment,
    I'll fix the documentation.<br>
    <br>
    Mark<br>
  </body>
</html>