Skip to main content
PLOS One logoLink to PLOS One
. 2018 Apr 9;13(4):e0195618. doi: 10.1371/journal.pone.0195618

Approximating net interactions among rigid domains

Pouya Tavousi 1,2,*
Editor: Claudio M Soares3
PMCID: PMC5891034  PMID: 29630635

Abstract

Many physical simulations aim at evaluating the net interaction between two rigid bodies, resulting from the cumulative effect of pairwise interactions between their constituents. This is manifested particularly in biomolecular applications such as hierarchical protein folding instances where the interaction between almost rigid domains directly influences the folding pathway, the interaction between macromolecules for drug design purposes, self-assembly of nanoparticles for drug design and drug delivery, and design of smart materials and bio-sensors. In general, the brute force approach requires quadratic (in terms of the number of particles) number of pairwise evaluation operations for any relative pose of the two bodies, unless simplifying assumptions lead to a collapse of the computational complexity. We propose to approximate the pairwise interaction function using a linear predictor function, in which the basis functions have separated forms, i.e. the variables that describe local geometries of the two rigid bodies and the ones that reflect the relative pose between them are split in each basis function. Doing so replaces the quadratic number of interaction evaluations for each relative pose with a one-time quadratic computation of a set of characteristic parameters at a preprocessing step, plus constant number of pose function evaluations at each pose, where this constant is determined by the required accuracy of approximation as well as the efficiency of the used approximation method. We will show that the standard deviation of the error for the net interaction is linearly (in terms of number of particles) proportional to the regression error, if the regression errors are from a normal distribution. Our results show that proper balance of the tradeoff between accuracy and speed-up yields an approximation which is computationally superior to other existing methods while maintaining reasonable precision.

Introduction

At the very heart of every static or dynamic simulation, lies the evaluation of physical interactions such as different forms of energy and force. Predicting trajectories in a complex many-body system demands numerical solving of equations of motion which, in turn, involves evaluation of pairwise interactions between individual objects at different time steps. Oftentimes, a large portion of the processing time is dedicated to pairwise interactions, which takes quadratic time, presuming that each particle is influenced by every other particle present in the system. However, the nature of every particular problem enforces a set of restricting conditions which perhaps can be utilized to simplify the original problem. In the following, major categories of simplifying techniques are reviewed.

Ignoring far interactions

The profiles of several distance-dependent interactions suggest that the mutual effect of ‘far’ particles on each other can be neglected where, ‘far’ implies farther than a so-called cut-off distance, d which varies depending on the type of interaction. Fig 1a and 1b show this for different types of physical interactions. Assuming that electrostatic and van Der Waals force interactions between pairs of atoms fade away as their distance exceeds 9 and 5 Angstroms, respectively, [1] captures neighborhood information in an atomic ensemble using a 3D hash table, leading to an n–fold reduction in force computation time.

Fig 1. Existing techniques.

Fig 1

Left: trend of pairwise interaction vs. pairwise distance for (a) van der Waals energy (b) electrostatic energy and/or gravity force (A = 1, B = 1.5 and C = 1). Within the dotted lines, pairwise interaction can be neglected and the green dot specifies the cut-off distance. Right: Interpolating from mesh values.

Using mesh values and interpolation

In many physical applications, the interaction profile does not experience abrupt changes anywhere throughout the domain under study. Particle-in-cell methods lay out a mesh on the computational domain to interpolate (Fig 1c) the values of pairwise interactions using the mesh values [2, 3]. Their computational complexity is O(n + mlogn), where n and m are the numbers of particles and mesh points, respectively [3]. In order to address the limited resolution provided by the mesh, the P3 M method introduced in [3] computes the short-range interactions directly, while for far-field interactions uses the mesh values. A similar approach is taken in [4], by replacing the mesh with a tree. By stating the potential at each point as a sum of three components, namely, far, near and external, the work in [2] uses multi-pole expansions to reduce the computation complexity down to O(n).

Exploiting rigidity

Oftentimes, it is observed in physical systems that groups of objects are lumped together as rigid bodies. Examples of this phenomenon can be seen in hierarchic protein folding instances, where the interaction between almost rigid domains directly influences the folding pathway [5], the interaction between macromolecules [613] for drug design purposes, self-assembly of nanoparticles [14] for drug design and drug delivery applications, design of smart materials [15] and biosensors [16], as well as the interaction between stellar clusters [17]. In such cases, we look at the motion of each ensemble as a whole. Also, rather than evaluating single pairwise interactions, we are more interested in their net effect. The assumption of rigidity can be exploited in different ways:

Faster evaluation of kinematic parameters

Rigid body constraint algorithm is incorporated in [18] into a GPU-accelerated MD to speed up the numerical solving of equations of motion. Distance and angular holonomic constraints are enforced in [19] during the molecular simulations. Also, [20] suggests a robust parallelizable constraint method for molecular simulations. These methods, however, do not offer techniques for reducing the computational complexity associated with interaction computations.

Faster net interaction evaluation by avoiding pairwise evaluations within rigid bodies

In the brute force approach, computing the net interaction between a pair of rigid bodies is accomplished by simply adding up all the pairwise interactions. This can be however computationally improved when rigid domains are identified within the system. In an effort to computationally benefit from the rigidity condition, [1, 2123] the protein molecule was modeled, in [1, 2123] as a kinematic chain with groups of atoms lumped together. These groups of atoms act as rigid bodies or links and thus, lead to speedups in force computation and motion tracking in simulations, by neglecting the internal forces. However, since the number of rigid bodies is proportional to the number of atoms, the computational complexity remains dependent of the number of atoms. The Chain Tree data structure introduced in [24] stores the distance status of pairs in a hierarchy, allowing fast inquiry and update for them, avoiding interaction evaluations within rigid sections and resulting in a logarithmic reduction of time complexity (still dependent on the number of particles). Notice that, as long as the net effect of interactions on each individual particle is of concern, the minimum reachable computational complexity is of the order of O(n), n being the number of particles present in the system.

Faster net interaction evaluation by approximating attributes of rigid body pair

As long as the pairwise effect of interest is distance dependent, the net interaction can be expressed only as a function of the relative pose of the two bodies, plus a description of geometry at a reference relative pose. The number of independent variables needed for articulating the pose equals 6 in the most general case, with 3 translational and 3 rotational variables. However, this number can be as low as 1 if specific restraints are enforced such as the case studied in [14], where the two alpha helices are hinged together by means of a revolute joint. This suggests that unlike the general n− body problem (where the net effect of interactions on each particle must be tracked), a computational complexity that is independent of n is in theory achievable, due to the fact that number of parameters needed to describe the state of the systems collapses from O(n) to O(1) (= the number of relative pose parameters). Although for certain special cases with restrained geometries, closed-form simplifications of the interaction functions can be suggested, such as the case of gravity force between earth and a mass on its surface (where the earth is taken as a sphere and the mass on the surface is taken as a point), a straightforward formulation does not seem to exist for the general unrestrained geometry (i.e. between arbitrary shapes), as we may end up with expressions with a quadratic number of terms, each of which referring to a single pairwise interaction. In [25], a method is proposed for evaluation of long-range forces and moments between rigid bodies. For a prevalent form of the interaction function, where force is a negative integer power of distance, the pairwise interaction in [25] is approximated by obtaining the binomial series expansion of the force function followed by neglecting the terms that become insignificant when the two objects get “far enough” from each other. The method offers a computational complexity of interaction evaluation which is independent of the number of particles present in the simulation. However, observe that the method is limited to specific forms of force function (F ∝ 1/dn, where d is distance and n is a positive integer number). Therefore, other forms of force, for instance, the widely used linear and non-linear spring models [26, 27] for describing the interaction between particles do not fall within the scope of application of their method. In addition, the method only addresses the computation of long-range interactions and therefore fails to compute the net interaction when the two objects become closer than a threshold distance. Therefore, short-range interactions which play an important role in determining the overall attributes of the system must be treated separately with conventional approaches.

In this paper, we attempt to address the shortcomings of the existing methods in exploiting the rigidity condition. We propose to approximate the pairwise interaction function using a linear predictor function, in which the basis functions have separated forms [28], i.e. the variables that describe local geometries of the two rigid bodies and the ones that reflect the relative pose between them are split in each basis function. Doing so facilitates certain summation operations on the pairwise interactions during a preprocessing step, yielding fast evaluation of instantaneous net interaction whenever required. The multivariate pairwise interaction function is approximated by one that has the following separated form [28]: fk=1rβkgkhk, where hk only concerns the relative pose of the two rigid bodies, gk is only descriptive of geometry at a reference relative pose, r is the separation rank (Fig 2) and βk is the regression coefficient. The advantage of this is that, now, we can collect all the terms with similar hk and sum over all the corresponding βk gk values (which can be obtained from the geometry at the reference relative pose) once, in a preprocessing step to attain a set of characteristic parameters. Then, computing the net interaction requires an evaluation of only O(r) terms, i.e. {hk|1 ≤ kr}, instead of one evaluation per each pair of particles. Using this method, the quadratic number of pairwise interaction evaluations (O(rMN), M and N, being the numbers of particles of the two bodies), in computing the net interaction at each relative pose, is replaced with one-time quadratic operations in preprocessing (O(MN)) plus constant pose function evaluations at each pose (O(r)), where r is independent of M and N and is only a function of the accuracy and efficiency of the used approximation method.

Fig 2. Brute force versus the proposed approximation method for computing the net interaction between two rigid bodies at multiple poses.

Fig 2

The two steps for arriving at a linear regression that approximates a multivariate pairwise interaction (for functions that admit this variable decomposition) are: (1) finding appropriate basis functions (i.e., {hk, gk|1 ≤ kr}); and (2) adjusting the regression coefficients (i.e., {βk|1 ≤ kr}). Note that the accuracy of pairwise interaction has direct influence on the accuracy of the resulting net interaction.

Several different approaches can be found in the literature for approximating multivariate functions. A review of finite sums decomposition methods in mathematical analysis can be found in [29]. In [30], decomposable functions of several variables are studied. The paper deals, in particular, with a function of three variables and claims that many of the results are extendable to more than three variables. The algorithm presented in [28] estimates a function of many variables from scattered data by approximating it as a sum of separable functions. The method is linear in the number of data points as well as the number of variables, which makes it suitable for large data sets in high dimensions. Also, [31] gives a method for decomposing smooth function H of k variables into a finite sum of products of k functions of single variables, as well as, conditions for the existence of special decompositions. Moreover, [32] reviews the recent advances in the use of separated representations.

Reviewing the existing approximate decomposition methods, two observations are made: (1) each one of these methods involves some sort of data-driven training and optimization. (2) each method best fits certain types of multivariate functions.

We propose an approximate decomposition method for the prevalent distance-dependent interactions i.e., for the cases that the pairwise interaction is stated only as a function of the pairwise distance and some constant (over all poses) scalar values (e.g., electrostatic, van der Waals, gravity, spring, collision, etc.) (Note that, the pairwise distance itself, is a multivariate function of up to 12 variables (where 6 variables describe the coordinates of a pair of points at the reference relative pose and another 6 describe the pose parameters)). Our method, first surrogates the interaction function as a polynomial of squared distance (k=0nak(d2)k), using the linear regression method. This is followed by substituting d2 in the polynomial with its equivalent, in terms of reference geometry and pose variables, and finally expanding the polynomial to get a finite sum of products. It is worthwhile noting that, choosing d2 over d as the independent variable, is key to this method which, guarantees a finite number of terms, resulted from the expansion.

Using this method, the two aforementioned steps of approximation (i.e., choosing the basis functions and adjusting the regression coefficient) are conducted automatically, with minimal data-driven training. In fact, the only training that is performed here is the linear regression that is done to get the polynomial of d2 which, takes only fractions of a second, even for very large data. Moreover, the presented method is an essay-to-implement technique that manifests the promise of using separated representation for computing the net interaction between rigid bodies at different poses. The utility of the method will be shown using several test cases. Note that, the accuracy of the polynomial approximation highly depends on the degree of the polynomial and thus the complexity of representation. We plan to embed more efficient approximation techniques into the method in the future stages of this work.

The proposed usage of separable functions yields a fast approximation method for the net interaction between lumped masses whose complexity and accuracy are independent of the number of particles, but rather dependent on the efficiency of the used decomposition technique. The presented polynomial method, although not optimal, but offers a straightforward and almost generic (i.e., with no restriction on the form or the domain of the pairwise interaction function as long as the pairwise interaction admits polynomial regression) technique for decomposing distance-dependent interactions. Moreover, the presented approach facilitates the design process [33, 34] of desired behaviors in a system of rigid bodies, by giving the designer the option to manipulate the characteristic values. We demonstrate that, the standard deviation of the error for the net interaction is linearly (in terms of number of particles) proportional to the regression error, if the regression errors are from a normal distribution. In the Results section, we show that as the number of particles and the number of poses which interaction must be evaluated at go up, the computational superiority of the proposed method over the brute force (or other methods whose complexities are dependent on the number of particles) can be observed more vividly. The proposed method particularly finds application in molecular simulations where the interplay between molecular domains must be studied, as well as molecular design where molecular domain systems must be designed with certain desired behaviors.

Materials and methods

In this section, we will first show how separated representation can be used for approximating the net interaction function. Then, the polynomial regression/expansion method for approximating distance dependent functions is discussed. The section is concluded with an error analysis of the proposed approximation method.

Separated variable representation

Let {pio|iM} and {qio|iN} represent the coordinates of individual particles in rigid bodies P and Q respectively, at some reference relative pose, ξo, of the two rigid bodies. Without the loss of generality, we assume body P to be fixed in the configuration space (i.e., the reference frame to be attached to body P), and therefore the up to 6 variables that describe the spatial configuration of Q, are also representative of the relative pose of the two bodies. More so, let {λiP|iM} and {λiQ|iN} reflect some pose-independent property of the individual particles that appears in the pairwise interaction function (e.g., particle charge). The interaction among particle i of P and particle j of Q at any relative pose ξ can be stated as:

fi,j=f(pi,λiP,qj,λjQ) (1)

or alternatively

fi,j=f(pio,λiP,qjo,λjQ,Tξoξ) (2)

where Tξoξ is the transformation operator that takes ξo to ξ. Assume that the pairwise interaction can be approximated by sparable functions in the following form:

fi,jk=1rβkgk(pio,λiP,qjo,λjQ)hk(Tξoξ) (3)

where r is the separation rank [28]. Then the net interaction between the two rigid bodies can be expressed as:

FPQ=i=1Mj=1Nfi,jk=1r[i=1Mj=1Nβkgk(pio,λiP,qjo,λjQ)]hk(Tξoξ) (4)

Defining interaction characteristic constant Ck=i=1Mj=1Nβkgk(pi,λiP,qj,λjQ), we have

FPQk=1rCkhk(Tξoξ) (5)

Since interaction characteristic constants are independent of pose, they can be computed once and be inserted into Eq (5). Then for finding the net interaction at any arbitrary pose, O(r) different terms must be evaluated (Fig 2).

Polynomial regression/expansion

It was shown in the previous section that, if one can get a separated representation of the pairwise interaction, they can use it towards formulating the net interaction between two lumped masses at different poses and defining the characteristic values. Now, we will see how this separated representation can be achieved by surrogating the interaction profile with a polynomial of squared distances and then expanding it. Using polynomial regression, we get:

f(d,λiP,λjQ)s(λiP,λjQ)k=0nak(d2)k (6)

where d is the distance between pi and qj, s is a function of λiP and λjQ, ak is polynomial regression coefficient and n is the degrees of the polynomial. In the case that the left hand side of Eq (6) represents the magnitude of a vector function (i.e., |f(d,λiP,λjQ)|) which is applied in the direction of the vector connecting pi and qj (e.g, pairwise force), the approximation can take place componentwise, giving rise to a proper vector sum for evaluating the net interaction. For that, instead of the interaction magnitude, the ratio of interaction magnitude over distance, is surrogated as a polynomial of squared distance:

|f(d,λiP,λjQ)|ds(λiP,λjQ)k=0nak(d2)k, (7)

from which, components of the pairwise interaction can be attained:

fi,j,l=|f(d,λiP,λjQ)|d(qj,l-pi,lo) (8)

where,

qj=Tξoξqjo (9)

and subscript l takes values 1, 2 or 3 which, respectively, indicate x, y and z components. Also, in this method, certain additional treatments of the pairwise interaction, before conducting the summation over pairs, are allowed as long as the polynomial form is preserved. For instance, one can approximate the pairwise moment by manipulating the pairwise force interaction:

mi,j=qj×fi,j=(Tξoξqjo)×fi,j (10)

The right hand sides of Eq (6) can expanded after the following replacement:

d2=(qj-pio)·(qj-pio)=l=13(qj,l-pi,lo)2 (11)

and using Eq (9) to substitute qj. In the most general case (where all 6 pose parameters are variable), we can express the transformation as a combination of rotation by an angle θ about an axis in the direction of a unit vector u=(u1u2u3)t where u12+u22+u32=1 and a translation vector x=(x1x2x3)t (superscript t indicates transpose.):

Tξ0ξ=[cosθ+u12(1-cosθ)u1u2(1-cosθ)-u3sinθu1u3(1-cosθ)+u2sinθx1u2u1(1-cosθ)+u3sinθcosθ+u22(1-cosθ)u2u3(1-cosθ)-u1sinθx2u3u1(1-cosθ)-u2sinθu3u2(1-cosθ)+u1sinθcosθ+u32(1-cosθ)x30001]

Substituting this into Eq (9), we have

qj=((cosθ+u12(1-cosθ))qj,1o+(u1u2(1-cosθ)-u3sinθ)qj,2o+(u1u3(1-cosθ)+u2sinθ)qj,3o+x1(u2u1(1-cosθ)-u3sinθ)qj,1o+(cosθ+u22(1-cosθ))qj,2o+(u2u3(1-cosθ)-u1sinθ)qj,3o+x2(u3u1(1-cosθ)-u2sinθ)qj,1o+(u3u2(1-cosθ)+u1sinθ)qj,1o+(cosθ+u32(1-cosθ))qj,1o+x3)

Consequently, substituting this in (11) gives:

d2=(qj,1o(cosθ+u12(1-cosθ))+qj,2o(u1u2(1-cosθ)-u3sinθ)+qj,3o(u1u3(1-cosθ)+u2sinθ)+x1)2+(qj,1o(u2u1(1-cosθ)+u3sinθ)+qj,2o(cosθ+u22(1-cosθ))+qj,3o(u2u3(1-cosθ)-u1sinθ)+x2)2+(qj,1o(u3u1(1-cosθ)-u2sinθ)+qj,1o(u3u2(1-cosθ)+u1sinθ)+qj,1o(cosθ+u32(1-cosθ))+x3)2

Note that d2 is now represented as a sum of squares of separated representations. We will now show that this can turn into a separated representation.

Lemma 1. Let function f have a separated representation. Then, fn, in which n is a non-negative integer, also has a separated representation.

Proof. Suppose that f has the following form:

f=k=1rgkhk (12)

Then

fn=(k=1rgkhk)n=(g1h1+g2h2+...+gkhk+...+grhr)n (13)
fn=(α1+...+αr=n)Cα1,...,αrk=1rgkαkhkαk=(α1+...+αr=n)Cα1,...,αrg1α1g2α2...gkαk...grαrh1α1h2α2...hkαk...hrαr (14)

where α1, …, αr are non-negative integer numbers and

Cα1,...,αr=(nα1)(n-α1α2)...(n-(α1+α2+...+αr-1)αr)

where (nk) indicates the number of k-combinations from a set of n elements (Fig 3).

Fig 3. Each path results in an algebraic term that has a separated form.

Fig 3

From, it can be concluded that, d2 and consequently, k=0nak(d2)k have separated forms.

Here as an example, we derive the separated formulation for d2 for the case that, only two out of six pose parameters, x1 and θ are variable (i.e., x2 = x3 = u1 = u2 = 0, u3 = 1). The transformation will take the following form:

Tξ0ξ=[cosθ-sinθ0x1sinθcosθ0000100001]

Replacing this in 9 yields:

qj=(cosθqj,1o-sinθqj,2o+x1sinθqj,1o+cosθqj,2oqj,3o)

Substituting this in 11 gives:

d2=(cosθqj,1o-sinθqj,2o+x1-pi,1o)2+(sinθqj,1o+cosθqj,2o-pi,2o)2+(qj,3o-pi,3o)2 (15)

or

d2=x12+pi,1o2+pi,2o2+(qj,3o-pi,3o)2+-pi,1o2x1+qj,1o2+qj,2o2cos2θ+qj,1o2+qj,2o2sin2θ+-qj,1opi,1o-qj,2opi,2o2cosθ+qj,2opi,1o-qj,1opi,2o2sinθ+qj,1o2cosθx1+-qj,2o2sinθx1

which as can be observed, has a separated form.

Error analysis

Every approximation introduces some type of error. We must see how the error of pairwise interaction contributes to the error of the net approximation. Eq (3) can be restated as

fi,j=k=1rβkgk(pio,λiP,qjo,λjQ)hk(Tξoξ)+ϵi,j (16)

where, ϵi,j is the regression error. This reformulates Eq (4) in the following form:

FPQ=k=1r[i=1Mj=1Nβkgk(pio,λiP,qjo,λjQ)]hk(Tξoξ)+Enet (17)

where Enet=i=1Mj=1Nϵi,j. Assuming a normal distribution for the regression error (ϵi,jN(0,σr2)), we have

EN(0,MNσr2)=N(0,(MNσr)2) (18)

implying that the error for the net interaction is linearly (in terms of number of particles) proportional to the regression error, if the regression errors are from a normal distribution.

Results and discussion

This section provides a few examples in which, the polynomial regression/expansion method is used to obtain a separated representation (with only one variable pose parameter) of a few types of pairwise interactions, followed by using it to evaluate the net interaction between lumped masses at different poses. We will observe that the computational time collapses from quadratic to constant yet, the resulting accuracy is reasonable.

Electrostatic energy of two rectangular cubes, 1D translation

Consider the two rectangular cubes P and Q shown in Fig 4a, where point charges are distributed inside the objects. Knowing the local coordinates of each point charge inside each object, we want to evaluate the electrostatic energy of the system at a sequence of snapshots as Q travels a certain distance in x1 direction. The pairwise electrostatic energy for two point charges λiP and λjQ is

ei,j=λiPλjQ4πϵd (19)

where d is the distance between the charges and ϵ is the dielectric constant. Given that the only variable pose parameter here is x1, we have:

d2=x12+(qj,1o-pi,1o)2+pi,2o2+pi,3o2+(qj,1o-pi,1o)2x1 (20)

We need to approximate the function 1/d as a polynomial of d2. Let a1 = a2 = 3 and a3 = a4 = 1 for this example. Also, let 0 ≤ x1 ≤ 5. It can be shown that for this special case, 1 ≤ d2 ≤ 82 and thus the regression needs to be valid for this range. Choosing n = 9 as the degree of the polynomial regression, substituting 20 in 6 and conducting polynomial expansion results in the following expression for the pairwise energy:

ei,j=k=018βk,i,jx1k (21)

where, βk,i,j is only a function of pio, λiP, qjo and λjQ. Fig 5 juxtaposes the values obtained for the net energy obtained from the conventional brute force method and the proposed approximation technique, as well as the time spent by each method for 3 different test cases.

Fig 4. Object P is fixed.

Fig 4

Two scenarios occur for object Q: (a) it is translated in x1 direction; (b) it is rotated about x3.

Fig 5.

Fig 5

(a) Each object has 500 charged particles, randomly distributed within its confining box. The net electrostatic energy is evaluated at 500 snapshots. Conventional brute force method takes 40s of processor time compared to 6s taken by the approximation method. The average error is 1.75%. (b) Objects are similar to case a. Energy is evaluated in 100 snapshots. Conventional brute force method takes 8s long, while the approximation method is accomplished in 6s. The average error is 1.75%. (c) Each object has 1000 charged particles, randomly distributed within its confining box. Energy evaluation is conducted at 500 snapshots. Conventional brute force and approximation methods last 160s and 24s respectively. The average error is 2.15%.

Fig 6 compares the computational time of the conventional brute force method and the approximation method (preprocessing step as well as iterations for different relative poses) for different selections of two parameters, namely the number of particles in each rigid body and number of steps at which net interaction (energy in this case) is evaluated. For the proposed method, the overall computation time is obtained by summing up the preprocessing time and that of the main process (i.e., iterations for different relative poses). Note that the number of particles only affect the former and the number of iterations (i.e., the number of poses at which the net interaction must be evaluated) only affects the latter.

Fig 6. Computational time of conventional brute force method and approximation method for different selections of the number of steps and the number of particles in each rigid body.

Fig 6

Electrostatic energy of two rectangular cubes, 1D rotation

Now, let object Q be rotated about x3 axis. This time, given that the only variable pose parameter is θ, we have:

d2=pi,1o2+pi,2o2+(qj,3o-pi,3o)2+qj,1o2+qj,2o2cos2θ+qj,1o2+qj,2o2sin2θ+-qj,1opi,1o-qj,2opi,2o2cosθ+qj,2opi,1o-qj,1opi,2o2sinθ

Let the box dimensions be the same as the previous case. Also, let −π/2 ≤ θ ≤ 0. Again, choosing n = 9 as the degree of the polynomial regression, substituting the expression for d2 in 6, conducting polynomial expansion and noting that, cos2 θ = 1 − sin2 θ, results in the following expression for the pairwise energy:

ei,j=k=09βk,i,j(sinθ)k+γk,i,j(sinθ)kcosθ (22)

where, βk,i,j and γk,i,j are only functions of pio, λiP, qjo and λjQ. Similar to the previous case, Fig 7 compares the performances of conventional brute force and approximation method.

Fig 7.

Fig 7

(a) Each object has 500 charged particles, randomly distributed within its confining box (same objects as the case of translation example). The net electrostatic energy is evaluated at 500 snapshots. Conventional brute force method takes 40s of processor time compared to 21s taken by the approximation method. The average error is 0.99%. (b) Objects are similar to case a. Energy is evaluated in 100 snapshots. Conventional brute force method takes 8s long, while the approximation method is accomplished in 21s. The average error is 0.99%. (c) Each object has 1000 charged particles, randomly distributed within its confining box. Energy evaluation is conducted at 500 snapshots. Conventional brute force and approximation methods last 159s and 84s respectively. The average error is 1.57%.

Almost-rigid bodies

In several real cases, the objects under study do not remain absolutely rigid during their range of motion but rather fluctuate around a so-called average rigid structure. Such phenomenon is often seen in molecular domains and usually is reflected by an index called B factor [35]. To study the effect of flexibility factor on the performance of the approximation method, we repeat the first example for 3 different levels of rigidity. The brute force method computes the net interaction based on the exact coordinates of the particles at each snapshot, while the approximation method assumes a rigid body motion (Fig 8).

Fig 8. The translation example is repeated, but this time, we let particles deviate from their initial local coordinates at the reference pose, during the motion.

Fig 8

The deviation is confined by a cube whose edge takes a certain size and is 0.1 for case a, 0.3 for case b and 0.5 for case c. The average errors for the three cases are respectively 1.77%, 2.58% and 4.05%.

Net force and net moment approximation

Approximations of net force and net moment are shown using another example. Let a1 = a2 = a3 = a4 = 1 reflect the dimensions and 0 ≤ x1 ≤ 2 for the objects of Fig 4a. Figs 9 and 10 compare the approximation technique with the brute force method in computing different components of the net force as well as the net moment between the two objects at different snapshots.

Fig 9. Components of the net force are computed using the approximation technique as well as the conventional brute force method.

Fig 9

Each object has 500 charged particles, randomly distributed within its confining box. Net force evaluation is conducted at 500 snapshots. The conventional method takes 55s of processor time compared to 8s taken by the approximation method. The average error is 6.99%.

Fig 10. Components of the net moment are computed using the approximation technique as well as the conventional brute force method.

Fig 10

Each object has 500 charged particles, randomly distributed within its confining box. The net moment evaluation is conducted at 500 snapshots. The conventional method takes 55s of processor time compared to 8s taken by the approximation method. The average error is 12.37%.

Electrostatic energy of two alpha helices, 1-D translation

Fig 11 compares the two methods in evaluating the net interaction between two alpha helices. The first helix is fixated in the space, while the other one is translated 4 in the x direction. The electrostatic energy resulting from the partial charges on the atoms of the two objects is computed at different snapshots during the motion, both using the conventional brute force method and the suggested approximation technique.

Fig 11. Left is an all-glycine alpha helix with 25 residues and is fixated in space.

Fig 11

Right is an all-Alanine alpha helix again with 25 residues and is translated 4 in the x direction. The conventional and brute force evaluations of the electrostatic energy between the two object are shown. The average error is 11.26%.

Conclusion

Despite all the breakthroughs in the field of computer algorithms, as well as the huge computational power available on even personal computers, the quadratic computational complexity associated with exact pairwise interaction evaluations remains the bottleneck of static and dynamic simulations. This has caused an ongoing search for efficient approximation methods. In this paper, we proposed an approximation method for the special case that the net interaction between two rigid bodies, resulting from the cumulative effect of pairwise interactions between their constituents, must be evaluated. A linear predictor, the basis functions of which have separated forms, is used to approximate the values of a multivariate interaction function. In other words, the variables that describe the local geometries of the two rigid bodies and the ones that reflect the relative pose between them are split. This facilitates certain summation operations, when computing the net interaction. As a result, the quadratic number of interaction evaluations for each relative pose is replaced with a one-time quadratic computation of a set of characteristic parameters at a preprocessing step, plus constant number of pose function evaluations at each pose, where this constant is determined by the required accuracy of approximation as well as the efficiency of the used approximation method. We showed that the standard deviation of the error for the net interaction is linearly proportional to the regression error, if the regression errors are from a normal distribution. Our results also showed that even exploiting the simple polynomial regression/expansion method to obtain the separated representation can yield faster computation yet comparable in accuracy to the conventional brute force method. This promises even better performances if more efficient fitting algorithms are employed.

Data Availability

All relevant data are within the paper.

Funding Statement

The author received no specific funding for this work.

References

  • 1.Tavousi P, Behandish M, Kazerounian K, Ilieş HT. An improved free energy formulation and implementation for kinetostatic protein folding simulation. In: ASME 2013 International Design Engineering Technical Conferences and Computers and Information in Engineering Conference. American Society of Mechanical Engineers; 2013. p. V06AT07A006–V06AT07A006.
  • 2. Greengard L, Rokhlin V. A fast algorithm for particle simulations. Journal of computational physics. 1987;73(2):325–348. doi: 10.1016/0021-9991(87)90140-9 [Google Scholar]
  • 3. Hockney RW, Eastwood JW. Particle-Particle-Particle-Mesh (P3M) Algorithms Computer simulation using particles(CRC Press, 1988, pp 267–304). 1988;. [Google Scholar]
  • 4. Oshino S, Funato Y, Makino J. Particle–Particle Particle–Tree: A Direct-Tree Hybrid Scheme for Collisional N-Body Simulations. Publications of the Astronomical Society of Japan. 2011;63(4):881–892. doi: 10.1093/pasj/63.4.881 [Google Scholar]
  • 5. Baldwin RL, Rose GD. Is protein folding hierarchic? I. Local structure and peptide folding. Trends in biochemical sciences. 1999;24(1):26–33. doi: 10.1016/S0968-0004(98)01346-2 [DOI] [PubMed] [Google Scholar]
  • 6. Wodak SJ, De Crombrugghe M, Janin J. Computer studies of interactions between macromolecules. Progress in biophysics and molecular biology. 1987;49(1):29–63. doi: 10.1016/0079-6107(87)90008-3 [DOI] [PubMed] [Google Scholar]
  • 7. Méndez R, Leplae R, De Maria L, Wodak SJ. Assessment of blind predictions of protein–protein interactions: current status of docking methods. Proteins: Structure, Function, and Bioinformatics. 2003;52(1):51–67. doi: 10.1002/prot.10393 [DOI] [PubMed] [Google Scholar]
  • 8. Janin J, Henrick K, Moult J, Eyck LT, Sternberg MJ, Vajda S, et al. CAPRI: a critical assessment of predicted interactions. Proteins: Structure, Function, and Bioinformatics. 2003;52(1):2–9. doi: 10.1002/prot.10381 [DOI] [PubMed] [Google Scholar]
  • 9. Brennick CA, George MM, Corwin WL, Srivastava PK, Ebrahimi-Nik H. Neoepitopes as cancer immunotherapy targets: key challenges and opportunities. Immunotherapy. 2017;9(4):361–371. doi: 10.2217/imt-2016-0146 [DOI] [PubMed] [Google Scholar]
  • 10. Corwin WL, Ebrahimi-Nik H, Floyd SM, Tavousi P, Mandoiu II, Srivastava PK. Tumor Control Index as a new tool to assess tumor growth in experimental animals. Journal of immunological methods. 2017;445:71–76. doi: 10.1016/j.jim.2017.03.013 [DOI] [PubMed] [Google Scholar]
  • 11.Ebrahimi-Nik H, Corwin WL, Floyd SM, Tavousi P, Mandoiu II, Srivastava PK. Tumor Control Index: a novel tool to assess and compare tumor growth in experimental animals; 2017. [DOI] [PubMed]
  • 12.Ebrahimi-Nik H, Corwin WL, Yamamoto R, Srivastava PK. CD11c+ MHCII int bone marrow-derived dendritic cells as adjuvants for neoepitope–based cancer immunotherapy; 2017.
  • 13. Ebrahimi-Nik H, Bassami MR, Mohri M, Rad M, Khan MI. Bacterial ghost of avian pathogenic E. coli (APEC) serotype O78:K80 as a homologous vaccine against avian colibacillosis. PLOS ONE. 2018;13(3):1–16. doi: 10.1371/journal.pone.0194888 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 14.Zahra Shahbazi HIKKPB Tais A P F Pimentel. A Kinematic Observation and Conjecture for Stable Construct of a Peptide Nanoparticle. Advances in Robot Kinematics, Issue on Motion in Man and Machine, (J Lenarcic & M Stanisoc editors), ISBN 978-90-481-9261-8, Springer Science & Business Media. 2010;.
  • 15. Gandhi MV, Thompson BS. Smart materials and structures. Springer Science & Business Media; 1992. [Google Scholar]
  • 16. Luo T, Mohan K, Iglesias PA, Robinson DN. Molecular mechanisms of cellular mechanosensing. Nature materials. 2013;12(11):1064–1071. doi: 10.1038/nmat3772 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 17. Elmegreen DM, Kaufman M, Brinks E, Elmegreen BG, Sundin M. The Interaction between Spiral Galaxies IC 2163 and NGC 2207. I. Observations. The Astrophysical Journal. 1995;453:100 doi: 10.1086/176375 [Google Scholar]
  • 18. Nguyen TD, Phillips CL, Anderson JA, Glotzer SC. Rigid body constraints realized in massively-parallel molecular dynamics on graphics processing units. Computer Physics Communications. 2011;182(11):2307–2313. doi: 10.1016/j.cpc.2011.06.005 [Google Scholar]
  • 19. Dubbeldam D, Oxford GA, Krishna R, Broadbelt LJ, Snurr RQ. Distance and angular holonomic constraints in molecular simulations. The Journal of chemical physics. 2010;133(3):034114 doi: 10.1063/1.3429610 [DOI] [PubMed] [Google Scholar]
  • 20. Eastman P, Pande VS. Constant constraint matrix approximation: a robust, parallelizable constraint method for molecular simulations. Journal of chemical theory and computation. 2010;6(2):434–437. doi: 10.1021/ct900463w [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 21. Kazerounian K, Latif K, Alvarado C. Protofold: A successive kinetostatic compliance method for protein conformation prediction. Journal of Mechanical Design. 2005;127(4):712–717. doi: 10.1115/1.1867502 [Google Scholar]
  • 22. Tavousi P, Behandish M, Ilieş HT, Kazerounian K. Protofold ii: Enhanced model and implementation for kinetostatic protein folding. Journal of Nanotechnology in Engineering and Medicine. 2015;6(3):034601 doi: 10.1115/1.4032759 [Google Scholar]
  • 23.Behandish M, Tavousi P, Ilieş HT, Kazerounian K. GPU-Accelerated Computation of Solvation Free Energy for Kinetostatic Protein Folding Simulation. In: ASME 2013 International Design Engineering Technical Conferences and Computers and Information in Engineering Conference. American Society of Mechanical Engineers; 2013. p. V02AT02A009–V02AT02A009.
  • 24. Lotan I, Schwarzer F, Halperin D, Latombe JC. Algorithm and data structures for efficient energy maintenance during Monte Carlo simulation of proteins. Journal of Computational Biology. 2004;11(5):902–932. doi: 10.1089/cmb.2004.11.902 [DOI] [PubMed] [Google Scholar]
  • 25. Poursina M, Anderson KS. Long-range force and moment calculations in multiresolution simulations of molecular systems. Journal of Computational Physics. 2012;231(21):7237–7254. doi: 10.1016/j.jcp.2012.06.041 [Google Scholar]
  • 26.Kuriyan J, Konforti B, Wemmer D. The molecules of life: Physical and chemical principles. Garland Science; 2012.
  • 27. An Z, Wang X, Deng M, Mao J, Li M. A nonlinear spring model for an interface between two solids. Wave Motion. 2013;50(2):295–309. doi: 10.1016/j.wavemoti.2012.09.004 [Google Scholar]
  • 28. Beylkin G, Garcke J, Mohlenkamp MJ. Multivariate regression and machine learning with sums of separable functions. SIAM Journal on Scientific Computing. 2009;31(3):1840–1857. doi: 10.1137/070710524 [Google Scholar]
  • 29.Rassias TM, Simsa J. Finite sums decompositions in mathematical analysis; 1995.
  • 30. Čadek M, Šimša J. Decomposable functions of several variables. Aequationes Mathematicae. 1990;40(1):8–25. doi: 10.1007/BF02112277 [Google Scholar]
  • 31. Neuman F. Finite sums of products of functions in single variables. Linear Algebra and its Applications. 1990;134:153–164. doi: 10.1016/0024-3795(90)90014-4 [Google Scholar]
  • 32. González D, Ammar A, Chinesta F, Cueto E. Recent advances on the use of separated representations. International Journal for Numerical Methods in Engineering. 2010;81(5):637. [Google Scholar]
  • 33. Tavousi P, Kazerounian K, Ilies H. Synthesizing functional mechanisms from a link soup. Journal of Mechanical Design. 2016;138(6):062303 doi: 10.1115/1.4033394 [Google Scholar]
  • 34. Tavousi P, Amin R, Shahbazmohamadi S. Assemble-And-Match: A Novel Hybrid Tool for Enhancing Education and Research in Rational Structure Based Drug Design. Scientific reports. 2018;8(1):849 doi: 10.1038/s41598-017-18151-x [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 35. Trueblood K, Bürgi HB, Burzlaff H, Dunitz J, Gramaccioli C, Schulz H, et al. Atomic dispacement parameter nomenclature. Report of a subcommittee on atomic displacement parameter nomenclature. Acta Crystallographica Section A: Foundations of Crystallography. 1996;52(5):770–781. [Google Scholar]

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Data Availability Statement

All relevant data are within the paper.


Articles from PLoS ONE are provided here courtesy of PLOS

RESOURCES