|
Bsoft
2.1.0
Bernard's software package
|
Library routines used for atomic coordinates. More...
Go to the source code of this file.
Classes | |
| struct | Latom |
Functions | |
| int | molgroup_Bfactors (Bmolgroup *molgroup) |
| Calculates the average Bfactors for residues in molecules. More... | |
| int | molgroup_print_sequence (Bmolgroup *molgroup) |
| Prints the sequence of a molecule as a single letter code string. More... | |
| int | molgroup_set_radius (Bmolgroup *molgroup, double radius) |
| Shifts all coordinates to a given radius. More... | |
| int | molgroup_rename (Bmolgroup *molgroup, char first_name) |
| Renames molecules. More... | |
| int | molgroup_residue_renumber (Bmolgroup *molgroup, int first) |
| Renumbers residues. More... | |
| int | molgroup_atom_renumber (Bmolgroup *molgroup, int first) |
| Renumbers all atoms, disregarding molecule distinction. More... | |
| int | molgroup_coor_reset_occupancy (Bmolgroup *molgroup, int range_first, int range_last, double occupancy) |
| Sets occupancies to new values.. More... | |
| double | molgroup_calculate_weight (Bmolgroup *molgroup) |
| Calculates the weight of each molecule. More... | |
| Vector3< double > | molgroup_center_of_mass (Bmolgroup *molgroup) |
| Calculates the center of mass of a molecule group. More... | |
| Vector3< double > | molgroup_selected_center_of_mass (Bmolgroup *molgroup) |
| Calculates the center of mass of a molecule group. More... | |
| Vector3< double > | molgroup_show_center_of_mass (Bmolgroup *molgroup) |
| Calculates the center of mass of a molecule group. More... | |
| Vector3< double > | mol_center_of_mass (Bmolecule *mol) |
| Calculates the center of mass of a molecule. More... | |
| Vector3< double > | mol_show_center_of_mass (Bmolecule *mol) |
| Calculates the center of mass of a molecule. More... | |
| Vector3< double > | molgroup_principal_axes (Bmolgroup *molgroup, Vector3< double > *eigenvec) |
| Calculates the principal axes of a molecule group. More... | |
| Vector3< double > | mol_principal_axes (Bmolecule *mol, Vector3< double > *eigenvec) |
| Calculates the principal axes of a molecule. More... | |
| double | molgroup_sphericity (Bmolgroup *molgroup, double da) |
| Calculates how close the coordinate set is to a spherical shape. More... | |
| double | molgroup_density (Bmolgroup *molgroup) |
| Calculates the number and mass density of a molecular system. More... | |
| double | molgroup_volume (Bmolgroup *molgroup, Bstring ¶mfile, int wrap) |
| Calculates the volume of a molecular system. More... | |
| int | molgroup_composition (Bmolgroup *molgroup, Bstring ¶mfile) |
| Calculates the elemental composition of a molecular system. More... | |
| JSvalue | molgroup_elements (Bmolgroup *molgroup) |
| Calculates the elemental composition. More... | |
| JSvalue | molgroup_elements (Bmolgroup *molgroup, Bstring ¶mfile) |
| Calculates the elemental composition from residue compositions. More... | |
| JSvalue | protein_composition_default (double mass) |
| Default protein composition adjusted by mass. More... | |
| int | molgroup_radial_density (Bmolgroup *molgroup, double interval, double cutoff, int wrap) |
| Calculates a radial distribution function. More... | |
| Latom ** | molgroup_atom_mesh_lists (Bmolgroup *molgroup, Vector3< int > size, Vector3< double > sampling) |
| Generates lists of atoms based on a grid. More... | |
| vector< Batom * > | atom_get_array (Bmolgroup *molgroup) |
| Generates an array of pointers to atom structures. More... | |
Library routines used for atomic coordinates.
Definition in file mol_util.h.
Generates an array of pointers to atom structures.
| *molgroup | molecule group structure to be modified. |
Definition at line 1180 of file mol_util.cpp.
Calculates the center of mass of a molecule.
| *mol | molecule structure. |
Definition at line 401 of file mol_util.cpp.
Calculates the principal axes of a molecule.
| *mol | molecule structure. |
| *eigenvec | eigen vectors (can be NULL). |
Definition at line 500 of file mol_util.cpp.
Calculates the center of mass of a molecule.
| *mol | molecule structure. |
Definition at line 439 of file mol_util.cpp.
| Latom** molgroup_atom_mesh_lists | ( | Bmolgroup * | molgroup, |
| Vector3< int > | size, | ||
| Vector3< double > | sampling | ||
| ) |
Generates lists of atoms based on a grid.
The coordinates must be positive to fit into a grid starting at {0,0,0}.
| *molgroup | molecule group structure to be modified. |
| size | size of grid. |
| sampling | spacing in each dimension. |
Definition at line 1132 of file mol_util.cpp.
| int molgroup_atom_renumber | ( | Bmolgroup * | molgroup, |
| int | first | ||
| ) |
Renumbers all atoms, disregarding molecule distinction.
| *molgroup | molecule group structure. |
| first | number of first atom. |
Definition at line 211 of file mol_util.cpp.
| int molgroup_Bfactors | ( | Bmolgroup * | molgroup | ) |
Calculates the average Bfactors for residues in molecules.
| *molgroup | molecule group structure. |
Definition at line 28 of file mol_util.cpp.
| double molgroup_calculate_weight | ( | Bmolgroup * | molgroup | ) |
Calculates the weight of each molecule.
| *molgroup | molecule group structure. |
Definition at line 270 of file mol_util.cpp.
Calculates the center of mass of a molecule group.
| *molgroup | molecule group structure. |
Definition at line 307 of file mol_util.cpp.
Calculates the elemental composition of a molecular system.
| *molgroup | molecule group structure. |
| ¶mfile | atomic parameter file. |
Definition at line 817 of file mol_util.cpp.
| int molgroup_coor_reset_occupancy | ( | Bmolgroup * | molgroup, |
| int | range_first, | ||
| int | range_last, | ||
| double | occupancy | ||
| ) |
Sets occupancies to new values..
| *molgroup | molecule group structure. |
| range_first | first residue in range to change. |
| range_last | last residue in range to change. |
| occupancy | value to set occupancy to. |
Definition at line 243 of file mol_util.cpp.
| double molgroup_density | ( | Bmolgroup * | molgroup | ) |
Calculates the number and mass density of a molecular system.
| *molgroup | molecule group structure. |
Requirement: The box size must be correctly specified in the molecular group structure. The number of molecules, residues and atoms are calculated and the density for each number reported. The total mass is calculated and the mass density reported as Da/A^3 and g/ml.
Definition at line 666 of file mol_util.cpp.
Calculates the elemental composition.
| *molgroup | molecule group. |
Definition at line 892 of file mol_util.cpp.
Calculates the elemental composition from residue compositions.
| *molgroup | molecule group. |
| ¶mfile | residue parameter file. |
Definition at line 919 of file mol_util.cpp.
Calculates the principal axes of a molecule group.
| *molgroup | molecule group structure. |
| *eigenvec | eigen vectors (can be NULL). |
Definition at line 455 of file mol_util.cpp.
| int molgroup_print_sequence | ( | Bmolgroup * | molgroup | ) |
Prints the sequence of a molecule as a single letter code string.
| *molgroup | molecule group structure. |
Definition at line 92 of file mol_util.cpp.
| int molgroup_radial_density | ( | Bmolgroup * | molgroup, |
| double | interval, | ||
| double | cutoff, | ||
| int | wrap | ||
| ) |
Calculates a radial distribution function.
| *molgroup | molecule group. |
| interval | interval between bins. |
| cutoff | distance cutoff. |
| wrap | flag to use periodic boundaries. |
The atoms are not distinguished by type or properties.
Definition at line 1030 of file mol_util.cpp.
| int molgroup_rename | ( | Bmolgroup * | molgroup, |
| char | first_name | ||
| ) |
Renames molecules.
| *molgroup | molecule group structure. |
| first_name | letter of first molecule. |
Letters are assigned to the molecules in sequence starting from the given first letter. If it extends beyond 'Z', it restarts at 'A'.
Definition at line 161 of file mol_util.cpp.
| int molgroup_residue_renumber | ( | Bmolgroup * | molgroup, |
| int | first | ||
| ) |
Renumbers residues.
| *molgroup | molecule group structure. |
| first | number of first residue. |
Definition at line 182 of file mol_util.cpp.
Calculates the center of mass of a molecule group.
| *molgroup | molecule group structure. |
Definition at line 347 of file mol_util.cpp.
| int molgroup_set_radius | ( | Bmolgroup * | molgroup, |
| double | radius | ||
| ) |
Shifts all coordinates to a given radius.
| *molgroup | molecule group structure. |
| radius | spherical radius. |
Definition at line 114 of file mol_util.cpp.
Calculates the center of mass of a molecule group.
| *molgroup | molecule group structure. |
Definition at line 387 of file mol_util.cpp.
| double molgroup_sphericity | ( | Bmolgroup * | molgroup, |
| double | da | ||
| ) |
Calculates how close the coordinate set is to a spherical shape.
| *molgroup | molecule group structure. |
| da | angular step size. (in radians) |
For each solid angle, the algorithm finds the coordinates with the maximum distance from the center-of-mass.
Definition at line 545 of file mol_util.cpp.
Calculates the volume of a molecular system.
The volume occupied by all the atoms is estimated from the footprint under the Van der Waals volume of each atom.
| *molgroup | molecule group structure. |
| ¶mfile | atomic parameter file. |
| wrap | flag to turn on wrapping. |
Definition at line 704 of file mol_util.cpp.
| JSvalue protein_composition_default | ( | double | mass | ) |
Default protein composition adjusted by mass.
| mass | molecular weight. |
Definition at line 991 of file mol_util.cpp.