IMP logo
IMP Reference Guide  develop.7482b7c7af, 2026/12/05
The Integrative Modeling Platform
IMP::misc::FreelyJointedChain Class Reference

Score on end-to-end distance of freely jointed chain. More...

#include <IMP/misc/FreelyJointedChain.h>

Inheritance diagram for IMP::misc::FreelyJointedChain:

Detailed Description

Score on end-to-end distance of freely jointed chain.

A flexible linker can be represented by the freely jointed chain model as a polymer under a Gaussian random walk. The end-to-end distance \( z \) then follows the distribution

\[p(z | \beta) = 4 \pi z^2 (\frac{\beta}{\pi})^{3/2)} \exp{(-\beta z^2)},\]

where \( \beta = \frac{3}{2 N b^2} \), \( N \) is the number of links, and \( b \) is the average length of a single link. The score reaches its minimum value when \( z = \frac{1}{\sqrt{\beta}} \).

See KA Dill, S Bromberg. Molecular Driving Forces. 2nd Edition. 2010. Eqs 33.26, 33.27.

Note
While the Gaussian approximation breaks down when \(z > N b\), the score naturally increases as a harmonic restraint with force constant \(2 \beta\).
The resulting score blows up as the \( z \) approaches 0. Therefore, in this implementation, when \( z = .01 z_{min} \), where \( z_{min} \) is the value of \( z \) where the score is minimized, then the score increases linearly as \( z \) decreases.
See also
WormLikeChain
core::Harmonic

Definition at line 41 of file FreelyJointedChain.h.

Public Member Functions

 FreelyJointedChain (int link_num, double link_length)
virtual double evaluate (double feature) const
 Calculate score with respect to the given feature.
virtual DerivativePair evaluate_with_derivative (double feature) const
 Calculate score and derivative with respect to the given feature.
double get_average_distance () const
 Get the average distance from the surface.
double get_distance_at_minimum () const
 Get the distance at which the score is at its minimum value.
double get_link_length () const
 Get length of each chain link.
int get_link_number () const
 Get number of links in chain.
virtual std::string get_type_name () const override
virtual ::IMP::VersionInfo get_version_info () const override
 Get information about the module and version of the object.
void set_link_length (double b)
 Set the length of each chain link.
void set_link_number (int N)
 Set the number of links in chain.
Public Member Functions inherited from IMP::UnaryFunction
 UnaryFunction (std::string name="UnaryFunction%1%")
Public Member Functions inherited from IMP::Object
CheckLevel get_check_level () const
 get_derived_object (self)
 Return this object cast to the most derived subclass.
LogLevel get_log_level () const
void set_check_level (CheckLevel l)
void set_log_level (LogLevel l)
 Set the logging level used in this object.
const std::string & get_name () const
 Get the (not necessarily unique) name of this object.
void set_name (std::string name)
void set_was_used (bool tf) const
void show (std::ostream &out=std::cout) const
virtual void clear_caches ()

Additional Inherited Members

Protected Member Functions inherited from IMP::Object
 Object (std::string name)
 Construct an object with the given name.
virtual void do_destroy ()

Constructor & Destructor Documentation

◆ FreelyJointedChain()

IMP::misc::FreelyJointedChain::FreelyJointedChain ( int link_num,
double link_length )

Definition at line 53 of file FreelyJointedChain.h.

◆ ~FreelyJointedChain()

virtual IMP::misc::FreelyJointedChain::~FreelyJointedChain ( )
virtual

Definition at line 77 of file FreelyJointedChain.h.

Member Function Documentation

◆ evaluate()

virtual double IMP::misc::FreelyJointedChain::evaluate ( double feature) const
virtual

Calculate score with respect to the given feature.

Parameters
[in]featureValue of feature being tested.
Returns
Score

Reimplemented from IMP::UnaryFunction.

Definition at line 73 of file FreelyJointedChain.h.

Here is the call graph for this function:

◆ evaluate_with_derivative()

virtual DerivativePair IMP::misc::FreelyJointedChain::evaluate_with_derivative ( double feature) const
virtual

Calculate score and derivative with respect to the given feature.

Parameters
[in]featureValue of feature being tested.
Returns
a DerivativePair containing the score and its partial derivative with respect to the given feature.

Reimplemented from IMP::UnaryFunction.

Definition at line 60 of file FreelyJointedChain.h.

◆ get_average_distance()

double IMP::misc::FreelyJointedChain::get_average_distance ( ) const

Get the average distance from the surface.

Definition at line 105 of file FreelyJointedChain.h.

◆ get_distance_at_minimum()

double IMP::misc::FreelyJointedChain::get_distance_at_minimum ( ) const

Get the distance at which the score is at its minimum value.

Definition at line 100 of file FreelyJointedChain.h.

◆ get_link_length()

double IMP::misc::FreelyJointedChain::get_link_length ( ) const

Get length of each chain link.

Definition at line 83 of file FreelyJointedChain.h.

◆ get_link_number()

int IMP::misc::FreelyJointedChain::get_link_number ( ) const

Get number of links in chain.

Definition at line 80 of file FreelyJointedChain.h.

◆ get_type_name()

virtual std::string IMP::misc::FreelyJointedChain::get_type_name ( ) const
overridevirtual

Reimplemented from IMP::Object.

Definition at line 77 of file FreelyJointedChain.h.

◆ get_version_info()

virtual ::IMP::VersionInfo IMP::misc::FreelyJointedChain::get_version_info ( ) const
overridevirtual

Get information about the module and version of the object.

Reimplemented from IMP::Object.

Definition at line 77 of file FreelyJointedChain.h.

◆ set_link_length()

void IMP::misc::FreelyJointedChain::set_link_length ( double b)

Set the length of each chain link.

Definition at line 93 of file FreelyJointedChain.h.

◆ set_link_number()

void IMP::misc::FreelyJointedChain::set_link_number ( int N)

Set the number of links in chain.

Definition at line 86 of file FreelyJointedChain.h.


The documentation for this class was generated from the following file: