<div dir="ltr">Hi Colin,<div>  The fully implemented, documented API is indeed for pairs of atoms.  There is ongoing work, in part complementary to Christian Blau&#39;s development, that can handle more generic iForceProviders.  That is a little farther down our development priority list.  However, I suggest you chat with Christian if you want to implement something for a specific use case.</div><div><br></div><div>David--I think you also had a question about this code path.  The point of generality in ongoing external force development really is the iForceProvider work (c.f. Christian and others), and that&#39;s probably the best place to hook in.  I don&#39;t think it&#39;s a problem at this point if Gromacs has different interfaces for using iForceProvider code for external interactions.<br clear="all"><div><div dir="ltr" class="m_-1805796166874099347gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><br></div><div>Best,</div><div>--Peter</div><div><br>----------------------------------------------------------------------<br>Peter Kasson, MD, PhD<br>Associate Professor<br>Departments of Molecular Physiology and Biological Physics<br>and of Biomedical Engineering<br>University of Virginia<br></div></div></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Feb 6, 2019 at 3:01 AM &lt;<a href="mailto:gromacs.org_gmx-developers-request@maillist.sys.kth.se" target="_blank">gromacs.org_gmx-developers-request@maillist.sys.kth.se</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Send gromacs.org_gmx-developers mailing list submissions to<br>
        <a href="mailto:gromacs.org_gmx-developers@maillist.sys.kth.se" target="_blank">gromacs.org_gmx-developers@maillist.sys.kth.se</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="https://maillist.sys.kth.se/mailman/listinfo/gromacs.org_gmx-developers" rel="noreferrer" target="_blank">https://maillist.sys.kth.se/mailman/listinfo/gromacs.org_gmx-developers</a><br>
<br>
or, via email, send a message with subject or body &#39;help&#39; to<br>
        <a href="mailto:gromacs.org_gmx-developers-request@maillist.sys.kth.se" target="_blank">gromacs.org_gmx-developers-request@maillist.sys.kth.se</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:gromacs.org_gmx-developers-owner@maillist.sys.kth.se" target="_blank">gromacs.org_gmx-developers-owner@maillist.sys.kth.se</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than &quot;Re: Contents of gromacs.org_gmx-developers digest...&quot;<br>
<br>
<br>
Today&#39;s Topics:<br>
<br>
   1. Re: Implementing Ensemble-Averaged Restraint (Smith, Colin)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Tue, 5 Feb 2019 14:27:47 +0000<br>
From: &quot;Smith, Colin&quot; &lt;<a href="mailto:colin.smith@wesleyan.edu" target="_blank">colin.smith@wesleyan.edu</a>&gt;<br>
To: &quot;<a href="mailto:gmx-developers@gromacs.org" target="_blank">gmx-developers@gromacs.org</a>&quot; &lt;<a href="mailto:gmx-developers@gromacs.org" target="_blank">gmx-developers@gromacs.org</a>&gt;<br>
Subject: Re: [gmx-developers] Implementing Ensemble-Averaged Restraint<br>
Message-ID: &lt;<a href="mailto:0F1E5C79-C0D3-41B9-9BF4-5BB07354EA1F@wesleyan.edu" target="_blank">0F1E5C79-C0D3-41B9-9BF4-5BB07354EA1F@wesleyan.edu</a>&gt;<br>
Content-Type: text/plain; charset=&quot;utf-8&quot;<br>
<br>
Hi Peter,<br>
<br>
Thanks for the pointer. It seems like this could work, but the forces calculated by my restraint do not always decompose into pairs of atoms. Some of the forces depend on the positions of up to six hydrogen atoms at once.<br>
<br>
As far as I can tell, there?s no way through the API as implemented to get access the more than two atoms at a time. Perhaps there?s some way to use SessionResources to read more coordinates when RestraintPotential::update() gets called on the master rank?<br>
<br>
Cheers,<br>
<br>
Colin<br>
<br>
On Feb 2, 2019, at 06:58, Peter Kasson &lt;<a href="mailto:kasson@virginia.edu" target="_blank">kasson@virginia.edu</a>&lt;mailto:<a href="mailto:kasson@virginia.edu" target="_blank">kasson@virginia.edu</a>&gt;&gt; wrote:<br>
<br>
Hi Colin,<br>
      Take a look at the custom force plugins.  These may not be efficient for most of the hydrogens on a large protein (they were designed for relatively sparse restraints), but they should at least get you started.<br>
<br>
API for doing this:  <a href="https://doi.org/10.1093/bioinformatics/bty484" rel="noreferrer" target="_blank">https://doi.org/10.1093/bioinformatics/bty484</a><br>
Application to ensemble-averaged restraints for DEER:<br>
<a href="https://doi.org/10.1002/anie.201810462" rel="noreferrer" target="_blank">https://doi.org/10.1002/anie.201810462</a><br>
<br>
Best,<br>
--Peter<br>
<br>
----------------------------------------------------------------------<br>
Peter Kasson, MD, PhD<br>
Associate Professor<br>
Departments of Molecular Physiology and Biological Physics<br>
and of Biomedical Engineering<br>
University of Virginia<br>
<br>
--<br>
Gromacs Developers mailing list<br>
<br>
* Please search the archive at <a href="http://www.gromacs.org/Support/Mailing_Lists/GMX-developers_List" rel="noreferrer" target="_blank">http://www.gromacs.org/Support/Mailing_Lists/GMX-developers_List</a> before posting!<br>
<br>
* Can&#39;t post? Read <a href="http://www.gromacs.org/Support/Mailing_Lists" rel="noreferrer" target="_blank">http://www.gromacs.org/Support/Mailing_Lists</a><br>
<br>
* For (un)subscribe requests visit<br>
<a href="https://maillist.sys.kth.se/mailman/listinfo/gromacs.org_gmx-developers" rel="noreferrer" target="_blank">https://maillist.sys.kth.se/mailman/listinfo/gromacs.org_gmx-developers</a> or send a mail to <a href="mailto:gmx-developers-request@gromacs.org" target="_blank">gmx-developers-request@gromacs.org</a>&lt;mailto:<a href="mailto:gmx-developers-request@gromacs.org" target="_blank">gmx-developers-request@gromacs.org</a>&gt;.<br>
<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: &lt;<a href="http://maillist.sys.kth.se/pipermail/gromacs.org_gmx-developers/attachments/20190205/82234b93/attachment-0001.html" rel="noreferrer" target="_blank">http://maillist.sys.kth.se/pipermail/gromacs.org_gmx-developers/attachments/20190205/82234b93/attachment-0001.html</a>&gt;<br>
<br>
------------------------------<br>
<br>
-- <br>
Gromacs Developers mailing list<br>
<br>
* Please search the archive at <a href="http://www.gromacs.org/Support/Mailing_Lists/GMX-developers_List" rel="noreferrer" target="_blank">http://www.gromacs.org/Support/Mailing_Lists/GMX-developers_List</a> before posting!<br>
<br>
* Can&#39;t post? Read <a href="http://www.gromacs.org/Support/Mailing_Lists" rel="noreferrer" target="_blank">http://www.gromacs.org/Support/Mailing_Lists</a><br>
<br>
* For (un)subscribe requests visit<br>
<a href="https://maillist.sys.kth.se/mailman/listinfo/gromacs.org_gmx-developers" rel="noreferrer" target="_blank">https://maillist.sys.kth.se/mailman/listinfo/gromacs.org_gmx-developers</a> or send a mail to <a href="mailto:gmx-developers-request@gromacs.org" target="_blank">gmx-developers-request@gromacs.org</a>.<br>
<br>
End of gromacs.org_gmx-developers Digest, Vol 178, Issue 4<br>
**********************************************************<br>
</blockquote></div>