generate_vector_dist(mol=None,
res_name=None,
res_num=None,
chain_id='
' ,
centre=array([ 0., 0., 0.]),
R=array([[ 1., 0., 0... ,
warp=array([[ 1., 0., 0... ,
phi_max_fn=None,
scale=1.0,
inc=20,
distribution=' uniform ' )
| source code
|
Generate a uniformly distributed distribution of atoms on a warped
sphere.
The vectors from the function vect_dist_spherical_angles() are used to
generate the distribution. These vectors are rotated to the desired
frame using the rotation matrix 'R', then each compressed or stretched by
the dot product with the 'warp' matrix. Each vector is centred and at
the head of the vector, a proton is placed.
- Parameters:
mol (MolContainer instance) - The molecule container.
res_name (str) - The residue name.
res_num (int) - The residue number.
chain_id (str) - The chain identifier.
centre (numpy array, len 3) - The centre of the distribution.
R (3x3 numpy array) - The optional 3x3 rotation matrix.
warp (numpy array) - The optional 3x3 warping matrix.
phi_max_fn (function) - A function with determines the limits of the distribution. It
should accept the azimuthal angle theta as an argument and return
the corresponding maximum allowed polar angle phi.
scale (float) - The scaling factor to stretch all rotated and warped vectors by.
inc (int) - The number of increments or number of vectors.
distribution (str) - The type of point distribution to use. This can be 'uniform' or
'regular'.
|