ensemble_hic/setup_functions.py
def make_sphere_prior(sphere_prior_params, bead_radii, n_structures):
    """
    Makes a sphere structural prior object.

    This is a Boltzmann-like distribution with a potential energy
    harmonically restraining all beads to stay within a sphere
    of a given radius.

    :param sphere_prior_params: settings for the sphere prior as
                                specified in a config file
    :type sphere_prior_params: dict

    :param bead_radii: list of bead radii
    :type bead_radii: :class:`numpy.ndarray`

    :param n_structures: number of ensemble members
    :type n_structures: int

    :returns: the sphere prior object with parameters set as given
              in the settings
    :rtype: :class:`.SpherePrior`
    """
    from .sphere_prior import SpherePrior
    radius = sphere_prior_params['radius']
    if radius == 'auto':
        radius = 2 * bead_radii.mean() * len(bead_radii) ** (1 / 3.0)
    else:
        radius = float(radius)
    SP = SpherePrior('sphere_prior',
                     sphere_radius=radius,
                     sphere_k=float(sphere_prior_params['force_constant']),
                     n_structures=n_structures, bead_radii=bead_radii)

    return SP

    Makes a sphere structural prior object.

    This is a Boltzmann-like distribution with a potential energy
    harmonically restraining all beads to stay within a sphere
    of a given radius.

    :param sphere_prior_params: settings for the sphere prior as
                                specified in a config file
    :type sphere_prior_params: dict

    :param bead_radii: list of bead radii
    :type bead_radii: :class:`numpy.ndarray`

    :param n_structures: number of ensemble members
    :type n_structures: int

    :returns: the sphere prior object with parameters set as given
              in the settings
    :rtype: :class:`.SpherePrior`
    
Makes a sphere structural prior object.
This is a Boltzmann-like distribution with a potential energy
harmonically restraining all beads to stay within a sphere
of a given radius.
Makes a sphere structural prior object . This is a Boltzmann - like distribution with a potential energy harmonically restraining all beads to stay within a sphere of a given radius .
def make_sphere_prior(sphere_prior_params, bead_radii, n_structures):
    from .sphere_prior import SpherePrior
    radius = sphere_prior_params['radius']
    if radius == 'auto':
        radius = 2 * bead_radii.mean() * len(bead_radii) ** (1 / 3.0)
    else:
        radius = float(radius)
    SP = SpherePrior('sphere_prior',
                     sphere_radius=radius,
                     sphere_k=float(sphere_prior_params['force_constant']),
                     n_structures=n_structures, bead_radii=bead_radii)
    return SP
def make_sphere_prior ( sphere_prior_params , bead_radii , n_structures ) : from . sphere_prior import SpherePrior radius = sphere_prior_params [ 'radius' ] if radius == 'auto' : radius = 2 * bead_radii . mean ( ) * len ( bead_radii ) ** ( 1 / 3.0 ) else : radius = float ( radius ) SP = SpherePrior ( 'sphere_prior' , sphere_radius = radius , sphere_k = float ( sphere_prior_params [ 'force_constant' ] ) , n_structures = n_structures , bead_radii = bead_radii ) return SP
Makes a sphere structural prior object.
Makes a sphere structural prior object .
"""
    Makes a sphere structural prior object.

    This is a Boltzmann-like distribution with a potential energy
    harmonically restraining all beads to stay within a sphere
    of a given radius.

    :param sphere_prior_params: settings for the sphere prior as
                                specified in a config file
    :type sphere_prior_params: dict

    :param bead_radii: list of bead radii
    :type bead_radii: :class:`numpy.ndarray`

    :param n_structures: number of ensemble members
    :type n_structures: int

    :returns: the sphere prior object with parameters set as given
              in the settings
    :rtype: :class:`.SpherePrior`
    """
the sphere prior object with parameters set as given
in the settings
the sphere prior object with parameters set as given in the settings
:class:`.SpherePrior`
sphere_prior_params
settings for the sphere prior as
specified in a config file
settings for the sphere prior as specified in a config file
bead_radii
list of bead radii
list of bead radii
n_structures
number of ensemble members
number of ensemble members