|
Bsoft
2.1.0
Bernard's software package
|
Header file for general symmetry functions. More...
Go to the source code of this file.
Classes | |
| struct | Bsymop |
| struct | Bsymmetry |
Macros | |
| #define | _Bsymmetry_ |
Functions | |
| Bsymmetry * | init_point_group_symmetry (Bstring symmetry_string) |
| Sets up a symmetry structure from a string identifier. More... | |
| int | kill_symmetry (Bsymmetry *sym) |
| Deallocates a symmetry structure. More... | |
| Bstring | symmetry_clean_pointgroup (Bstring &symmetry_string) |
| Corrects an existing point group string. More... | |
| 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... | |
| int | symmetry_order (Bsymmetry *sym) |
| Returns the symmetry order. 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) |
| Matrix3 * | symmetry_get_all_matrices (Bsymmetry *sym, long &nsym) |
| 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... | |
| float * | sym_matrices_from_text_list (int nsym, char *symop, int line_len) |
| Calculates symmetry matrices from a list of strings. 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... | |
Header file for general symmetry functions.
Definition in file symmetry.h.
| #define _Bsymmetry_ |
Definition at line 45 of file symmetry.h.
| View* asymmetric_unit_views | ( | Bsymmetry * | sym, |
| double | theta_step, | ||
| double | phi_step, | ||
| double | alpha_step, | ||
| int | flag | ||
| ) |
Definition at line 740 of file symmetry.cpp.
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 for generating a full asymmetric unit (default 0=half). |
A set of views is calculated with tesselation within each asymmetric unit such that the views are well-distributed. If the full flag is set, both halves of the asymmetric unit are covered.
Definition at line 564 of file symmetry.cpp.
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.
Definition at line 828 of file symmetry.cpp.
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.
Definition at line 850 of file symmetry.cpp.
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.
Definition at line 933 of file symmetry.cpp.
Sets up a symmetry structure from a string identifier.
| symmetry_string | string containing point group identifier. |
The point group symmetries are identified by the following strings:
C<n> cyclic point group of order n.
D<n> dihedral point group of order n.
T tetrahedral point group.
O octahedral/cubic point group.
I icosahedral/dodecahedral point group.
H<r>,<a>,<d> helical symmetry with rise r, rise angle a and dyad d (1/2).
For the higher symmetries the following adjustments are available:
T-3 no three-fold operator.
O-3 no three-fold operator.
I-3 no three-fold operator.
I90 90 degrees rotated around z-axis.
I90-3 90 degrees rotated around z-axis and no three-fold operator.
If the point group string is empty (NULL), the default is C1 (asymmetric).
Definition at line 39 of file symmetry.cpp.
| int kill_symmetry | ( | Bsymmetry * | sym | ) |
Deallocates a symmetry structure.
| *sym | symmetry structure. |
Definition at line 207 of file symmetry.cpp.
Returns a randomly picked symmetry view.
| &asu_view | asymmetric unit view. |
| *sym | symmetry structure. |
Definition at line 1005 of file symmetry.cpp.
Returns a reference view for each asymmetric unit.
| *sym | symmetry structure. |
Definition at line 966 of file symmetry.cpp.
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.
Definition at line 763 of file symmetry.cpp.
| View* side_views | ( | Bsymmetry * | sym, |
| double | side_ang, | ||
| double | theta_step, | ||
| double | phi_step, | ||
| double | alpha_step | ||
| ) |
Definition at line 808 of file symmetry.cpp.
| float* sym_matrices_from_text_list | ( | int | nsym, |
| char * | symop, | ||
| int | line_len | ||
| ) |
Calculates symmetry matrices from a list of strings.
| nsym | number of symmetry operators. |
| *symop | array of symmetry operator lines. |
| line_len | length of text line in the array. |
The list of strings is expected to be packed into a single character array with a fixed length for each string. Each string encodes a symmetry operation in terms of x, y and z operations in reciprocal space.
Definition at line 1063 of file symmetry.cpp.
| int sym_show_matrices | ( | Bsymmetry * | sym | ) |
Show symmetry matrices.
| *sym | symmetry structure. |
Definition at line 1112 of file symmetry.cpp.
| int sym_show_operational_matrices | ( | Bsymmetry * | sym | ) |
Show symmetry matrices associated with each symmetry operator.
| *sym | symmetry structure. |
Definition at line 1140 of file symmetry.cpp.
| int sym_show_pdb_matrices | ( | Bsymmetry * | sym | ) |
Show PDB format symmetry matrices associated with each symmetry operator.
| *sym | symmetry structure. |
Definition at line 1161 of file symmetry.cpp.
Corrects an existing point group string.
| &symmetry_string | string containing point group identifier. |
A point group string is converted to .
Definition at line 226 of file symmetry.cpp.
Get all symmetry-related views of one given view.
| *sym | symmetry structure. |
| &nsym | number of matrices. |
The number of views generated for a point group symmetry is calculated as the product of the order fields in the symmetry structure.
Definition at line 514 of file symmetry.cpp.
Definition at line 486 of file symmetry.cpp.
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.
Definition at line 442 of file symmetry.cpp.
Get all symmetry axes.
| *sym | symmetry structure. |
Definition at line 378 of file symmetry.cpp.
| 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.
Definition at line 280 of file symmetry.cpp.
| int symmetry_order | ( | Bsymmetry * | sym | ) |
Returns the symmetry order.
| *sym | symmetry structure. |
The symmetry order is defined as the product of all the individual orders of the symmetry operations, or alternatively, the number of views.
Definition at line 301 of file symmetry.cpp.
Rotation matrix to orient a symmetry axis on the z axis.
| *sym | symmetry structure. |
| axis | desired symmetry axis order. |
| axis_flag | view modifier. |
Definition at line 347 of file symmetry.cpp.
Returns an asymmetric unit index number.
| theview | view to test. |
| *sym | symmetry structure. |
Definition at line 1029 of file symmetry.cpp.
Returns an asymmetric unit reference point.
| *sym | symmetry structure. |
Definition at line 315 of file symmetry.cpp.