|
Bsoft 2.1.4
Bernard's software package
|
General symmetry functions. More...
#include "symmetry.h"#include "random_numbers.h"#include "Euler.h"#include "linked_list.h"#include "utilities.h"Functions | |
| string | symmetry_helical_label (double helix_rise, double helix_angle, int dyad_axis, int cyclic, double seam_shift) |
| Returns the label for helical symmetry. More... | |
| View | view_symmetry_reference (Bsymmetry &sym) |
| Returns an asymmetric unit reference point. More... | |
| Matrix3 | symmetry_rotate_to_axis (Bsymmetry &sym, long axis, long axis_flag) |
| Rotation matrix to orient a symmetry axis on the z axis. More... | |
| vector< Vector3< double > > | symmetry_get_axes (Bsymmetry &sym) |
| Get all symmetry axes. More... | |
| View * | symmetry_get_all_views (Bsymmetry &sym, View asu_view) |
| Get all symmetry-related views of one given view. More... | |
| View * | symmetry_get_all_views (Bsymmetry &sym, View *views) |
| vector< Matrix3 > | symmetry_get_all_matrices (Bsymmetry &sym) |
| Get all symmetry-related views of one given view. More... | |
| View * | asymmetric_unit_views (Bsymmetry &sym, double theta_step, double phi_step, int flag) |
| Initializes a well-distributed set of views in an asymmetric unit. More... | |
| View * | asymmetric_unit_views (Bsymmetry &sym, double theta_step, double phi_step, double alpha_step, int flag) |
| View * | side_views (Bsymmetry &sym, double side_ang, double theta_step, double phi_step) |
| Initializes a set of views around the z-axis for helical projection. More... | |
| View * | side_views (Bsymmetry &sym, double side_ang, double theta_step, double phi_step, double alpha_step) |
| int | change_views_to_asymmetric_unit (Bsymmetry &sym, View *view) |
| Change the views to those in the asymmetric unit. More... | |
| View | find_asymmetric_unit_view (Bsymmetry &sym, View theview) |
| Finds the corresponding view in the asymmetric unit. More... | |
| View | find_closest_symmetric_view (Bsymmetry &sym, View view_ref, View view) |
| Finds the closest symmetric match between two views. More... | |
| View * | reference_asymmetric_unit_views (Bsymmetry &sym) |
| Returns a reference view for each asymmetric unit. More... | |
| View | random_symmetric_view (View &asu_view, Bsymmetry &sym) |
| Returns a randomly picked symmetry view. More... | |
| int | test_asymmetric_unit_view (View theview, Bsymmetry &sym) |
| Returns an asymmetric unit index number. More... | |
| int | sym_show_matrices (Bsymmetry &sym) |
| Show symmetry matrices. More... | |
| int | sym_show_operational_matrices (Bsymmetry &sym) |
| Show symmetry matrices associated with each symmetry operator. More... | |
| int | sym_show_pdb_matrices (Bsymmetry &sym) |
| Show PDB format symmetry matrices associated with each symmetry operator. More... | |
Variables | |
| int | verbose |
General symmetry functions.
| View * asymmetric_unit_views | ( | Bsymmetry & | sym, |
| double | theta_step, | ||
| double | phi_step, | ||
| double | alpha_step, | ||
| int | flag | ||
| ) |
Initializes a well-distributed set of views in an asymmetric unit.
| &sym | symmetry structure. |
| theta_step | angular step size from primary symmetry axis (radians). |
| phi_step | angular step size around primary symmetry axis (radians). |
| flag | flag: 0=half, 1=full, 2=no in-plane. |
A set of views is calculated with tesselation within each asymmetric
unit such that the views are well-distributed.
Flag bits:
1: both halves of the asymmetric unit are covered.
2: no in-plane rotations are applied.
Change the views to those in the asymmetric unit.
| &sym | symmetry structure. |
| *view | list of views (replaced). |
The view is replaced with the one in the standard asymmetric unit.
Finds the corresponding view in the asymmetric unit.
| &sym | symmetry structure. |
| theview | view. |
The asymmetric unit view is found and the the new view with the link from the old view is returned.
Finds the closest symmetric match between two views.
| &sym | symmetry structure. |
| view_ref | reference view. |
| view | test view. |
A list of symmetry-related views of the test view is searched for the closest to the reference view. The matched view is returned.
Returns a randomly picked symmetry view.
| &asu_view | asymmetric unit view. |
| &sym | symmetry structure. |
Returns a reference view for each asymmetric unit.
| &sym | symmetry structure. |
Initializes a set of views around the z-axis for helical projection.
| &sym | symmetry structure. |
| side_ang | starting angle (radians). |
| theta_step | angular step size perpendicular to equator (radians). |
| phi_step | angular step size around equator (radians). |
A set of views is calculated corresponding to views around the z-axis including some tilting to account for oblique views.
| View * side_views | ( | Bsymmetry & | sym, |
| double | side_ang, | ||
| double | theta_step, | ||
| double | phi_step, | ||
| double | alpha_step | ||
| ) |
| int sym_show_matrices | ( | Bsymmetry & | sym | ) |
Show symmetry matrices.
| &sym | symmetry structure. |
| int sym_show_operational_matrices | ( | Bsymmetry & | sym | ) |
Show symmetry matrices associated with each symmetry operator.
| &sym | symmetry structure. |
| int sym_show_pdb_matrices | ( | Bsymmetry & | sym | ) |
Show PDB format symmetry matrices associated with each symmetry operator.
| &sym | symmetry structure. |
Get all symmetry-related views of one given view.
| &sym | symmetry structure. |
The number of views generated for a point group symmetry is calculated as the product of the order fields in the symmetry structure.
Get all symmetry-related views of one given view.
| &sym | symmetry structure. |
| asu_view | asymmetric unit vector and rotation angle. |
The number of views generated for a point group symmetry is calculated as the product of the order fields in the symmetry structure.
Get all symmetry axes.
| &sym | symmetry structure. |
| string symmetry_helical_label | ( | double | helix_rise, |
| double | helix_angle, | ||
| int | dyad_axis, | ||
| int | cyclic, | ||
| double | seam_shift | ||
| ) |
Returns the label for helical symmetry.
| helix_rise | helical rise (angstroms). |
| helix_angle | helical rotation angle (radians). |
| dyad_axis | presence of dyad axis (1/2). |
| cyclic | cyclic symmetry. |
| seam_shift | fractional shift for seamed helices. |
Thge symmetry order is defined as the product of all the individual orders of the symmetry operations, or alternatively, the number of views.
Rotation matrix to orient a symmetry axis on the z axis.
| &sym | symmetry structure. |
| axis | desired symmetry axis order. |
| axis_flag | view modifier. |
Returns an asymmetric unit index number.
| theview | view to test. |
| &sym | symmetry structure. |
Returns an asymmetric unit reference point.
| &sym | symmetry structure. |
|
extern |