|
Bsoft
2.1.0
Bernard's software package
|
Header file for micrograph processing. More...
#include "ctf.h"#include "symmetry.h"#include "marker.h"#include "View.h"#include "Euler.h"#include "Bstring.h"Go to the source code of this file.
Classes | |
| struct | Bframe |
| struct | Bparticle |
| struct | Bfilnode |
| struct | Bfilament |
| struct | Bbadarea |
| struct | Bstrucfac |
| struct | Blayerline |
| struct | Bmicrograph |
| struct | Bfield |
| struct | Breconstruction |
| struct | Bproject |
Macros | |
| #define | NFOM 10 |
| #define | MODE_PPS 0 |
| #define | MODE_SCC 1 |
| #define | MODE_CCC 2 |
| #define | MODE 3 |
| #define | FULL_ASU 8 |
| #define | MULTI_FILE 16 |
| #define | APPLY_CTF 32 |
| #define | PART_LOG 64 |
| #define | WRITE_PPX 128 |
| #define | CHECK_PPX 256 |
| #define | _ProjectParamStructs_ |
Enumerations | |
| enum | FOMType { NoFOM, FOM, FOM_CC, FOM_CV, FOM_SNR, FOM_CC_AVG, FOM_CC_STD, FOM_HAND_A, FOM_HAND_B, FOM_PFT_CC, FOM_PFT_PRJ, FOM_PFT_CMP, FOM_RFACTORAB, COVERAGE, DENSITY, FOM1, FOM2, FOM3, FOM4, FOM5, FOM6, FOM7, FOM8, FOM9 } |
Functions | |
| Bproject * | project_init () |
| Initializes a micrograph processing project parameter structure. More... | |
| Bproject * | project_create (int nmg, int nrec) |
| Creates a micrograph processing project parameter structure. More... | |
| int | project_equal_mg_part_files (Bproject *project) |
| Sets micrograph and particle files to be the same. More... | |
| Bfield * | field_add (Bfield **field, Bstring &field_id) |
| Adds a field-of-view parameter structure to a linked list. More... | |
| Bmicrograph * | micrograph_add (Bmicrograph **mg, Bstring &mg_id) |
| Adds a micrograph parameter structure to a linked list. More... | |
| Bframe * | frame_add (Bframe **frame, int pid) |
| Adds a movie frame parameter structure to a linked list. More... | |
| Bparticle * | particle_add (Bparticle **part, int pid) |
| Adds a particle parameter structure to a linked list. More... | |
| int | mg_part_links (Bmicrograph *mg) |
| Sets the links from particles to micrographs. More... | |
| int | rec_part_links (Breconstruction *rec) |
| Sets the links from particles to reconstructions. More... | |
| Bparticle * | part_find_first (Bproject *project) |
| Finds the first particle in a project. More... | |
| Bfilament * | filament_add (Bfilament **fil, int pid) |
| Adds a filament parameter structure to a linked list. More... | |
| Bfilnode * | filament_node_add (Bfilnode **fnode, int pid) |
| Adds a filament node parameter structure to a linked list. More... | |
| double | filament_length (Bfilament *fil) |
| Calculates the length of a filament. More... | |
| Breconstruction * | reconstruction_add (Breconstruction **rec, Bstring &rec_id) |
| Adds a reconstruction parameter structure to a linked list. More... | |
| int | project_kill (Bproject *project) |
| Frees a whole project. More... | |
| int | field_kill (Bfield *field) |
| Frees a whole field-of-view structure. More... | |
| int | micrograph_kill (Bmicrograph *mg) |
| Frees a whole micrograph parameter structure. More... | |
| int | particle_kill (Bparticle *part) |
| Frees a list of particles. More... | |
| int | filament_kill (Bfilament *fil) |
| Frees a list of filaments. More... | |
| int | reconstruction_kill (Breconstruction *rec) |
| Frees a whole reconstruction parameter structure. More... | |
| Bparticle * | particle_copy (Bparticle **partlist, Bparticle *part) |
| Adds one particle onto a list of particle parameters. More... | |
| Bparticle * | particle_copy (Bparticle *partlist) |
| Copies a list of particle parameters to a new list. More... | |
| Bmicrograph * | micrograph_copy (Bmicrograph *mg) |
| Copies a micrograph. More... | |
| int | project_update (Bproject *project, Bproject *proj_new, int fom_index) |
| Updates an existing project with new information. More... | |
| int | micrograph_update (Bmicrograph *mg, Bmicrograph *nu_mg, int fom_index, int flags) |
| Updates an existing micrograph with new information. More... | |
| int | reconstruction_update (Breconstruction *rec, Breconstruction *nu_rec, int fom_index, int flags) |
| Updates an existing reconstruction with new information. More... | |
| int | particle_update (Bparticle *part, Bparticle *nu_part) |
| Updates one existing particle with new information. More... | |
| int | particle_update (Bparticle **pnt_part, Bparticle *new_part, int fom_index) |
| Updates an existing particle list with new information. More... | |
| int | project_merge_part_parameters (Bproject *project, Bproject *partproject) |
| Puts particle parameters from one project into another. More... | |
| long | project_set_part_links (Bproject *project) |
| Sets the links from particles back to the micrographs and reconstructions. More... | |
| long | micrograph_set_part_links (Bmicrograph *mg) |
| Sets the links from particles back to the micrograph. More... | |
| long | reconstruction_set_part_links (Breconstruction *rec) |
| Sets the links from particles back to the reconstruction. More... | |
| long | project_divide (Bproject *project, long n) |
| Divides a project into a number of micrograph subsets. More... | |
| Bmicrograph ** | project_micrograph_array (Bproject *project, long &nmg) |
| Sets up an array of selected micrograph pointers. More... | |
| Bparticle ** | project_mg_particle_array (Bproject *project, int part_select, long &npart) |
| Sets up an array of selected particle pointers. More... | |
| Bparticle ** | project_rec_particle_array (Bproject *project, int part_select, long &npart) |
| Sets up an array of selected particle pointers. More... | |
| Bparticle ** | particle_array (Bparticle *partlist, int part_select, long &npart) |
| Sets up an array of selected particle pointers. More... | |
| int | project_revert_filenames (Bproject *project, Bproject *project_old, int flag) |
| Reverts file names to what it was in an old project. More... | |
| int | project_set_field_id (Bproject *project, int nseries, Bstring &field_id) |
| Sets the field id's according to a regular series. More... | |
| long | project_show_hierarchy (Bproject *project) |
| Shows the project hierarchy. More... | |
| long | project_show_class_averages (Bproject *project) |
| Shows the class averages in a project. More... | |
| long | project_dump (Bproject *project, Bstring &filename) |
| Dumps particle info in the project hierarchy. More... | |
| int | project_set_micrograph_path (Bproject *project, Bstring &path) |
| Sets the path to micrograph files for all the micrographs. More... | |
| int | project_set_frame_path (Bproject *project, Bstring &path) |
| Sets the path to micrograph frames files for all the micrographs. More... | |
| int | project_set_powerspectrum_path (Bproject *project, Bstring &path) |
| Sets the path to powerspectrum files for all the micrographs. More... | |
| int | project_set_particle_path (Bproject *project, Bstring &path) |
| Sets the path to particle files for all the micrographs. More... | |
| int | project_set_filament_path (Bproject *project, Bstring &path) |
| Sets the path to filament files for all the micrographs. More... | |
| int | project_set_magnification (Bproject *project, double mag) |
| Sets the magnification for all the micrographs. More... | |
| int | project_set_scan_sampling (Bproject *project, double sampling) |
| Sets the scan sampling for all the micrographs. More... | |
| int | project_set_mg_pixel_size (Bproject *project, Vector3< double > pixel_size) |
| Sets the pixel size for all the micrographs. More... | |
| int | project_set_rec_voxel_size (Bproject *project, Vector3< double > pixel_size) |
| Sets the pixel size for all the reconstructions. More... | |
| int | project_set_part_pixel_size (Bproject *project, Vector3< double > pixel_size) |
| Sets the pixel size for all the particles. More... | |
| int | project_set_tilt (Bproject *project, double tilt_axis, double tilt_angle) |
| Sets the tilt parameters for all the micrographs. More... | |
| int | project_sort_by_tilt (Bproject *project) |
| Sorts the micrographs in each field by tilt angle. More... | |
| int | project_set_dose (Bproject *project, double dose) |
| Sets the electron dose of all the micrographs. More... | |
| int | project_set_micrograph_origins (Bproject *project, Vector3< double > origin) |
| Sets micrograph origins to the given origin. More... | |
| int | project_add_origins_to_coords (Bproject *project) |
| Adds the particle origins to the micrograph coordinates. More... | |
| int | project_flip_origins (Bproject *project, int flip) |
| Flip origin coordinates. More... | |
| long | project_renumber_particles (Bproject *project) |
| Renumbers particles. More... | |
| int | project_set_particle_box_size (Bproject *project, Vector3< long > box_size) |
| Sets particle box size to the given value. More... | |
| int | project_set_particle_box_size (Bproject *project, long box_size) |
| Sets particle box size to the given value. More... | |
| int | project_set_particle_origins (Bproject *project, Vector3< double > origin) |
| Sets particle origins to given values. More... | |
| int | project_set_particle_asu_views (Bproject *project, Bstring &symmetry_asu) |
| Sets particle views within the asymmetric unit. More... | |
| int | project_set_particle_asu_views (Bproject *project, Bsymmetry *sym) |
| int | project_rotate_particle_views (Bproject *project, View view) |
| Rotates particle views with respect to a reference view. More... | |
| int | project_apply_map_magnifications (Bproject *project, int mag_num, float *mag) |
| Change particle pixel sizes for particles based on map magnifications. More... | |
| long | project_reset (Bproject *project, Bstring &reset) |
| Reset a particle parameter from its micrograph. More... | |
| View * | views_from_project (Bproject *project, int selection) |
| Retrieves the particle views from a project. More... | |
| Bstring | get_fom_tag (FOMType fom_type) |
| Returns the tag associated with a particular FOM. More... | |
| int | get_fom_tag (FOMType fom_type, char *tag) |
| Returns the tag associated with a particular FOM. More... | |
Header file for micrograph processing.
Definition in file mg_processing.h.
| #define _ProjectParamStructs_ |
Definition at line 351 of file mg_processing.h.
| #define APPLY_CTF 32 |
Definition at line 24 of file mg_processing.h.
| #define CHECK_PPX 256 |
Definition at line 27 of file mg_processing.h.
| #define FULL_ASU 8 |
Definition at line 22 of file mg_processing.h.
| #define MODE 3 |
Definition at line 21 of file mg_processing.h.
| #define MODE_CCC 2 |
Definition at line 20 of file mg_processing.h.
| #define MODE_PPS 0 |
Definition at line 18 of file mg_processing.h.
| #define MODE_SCC 1 |
Definition at line 19 of file mg_processing.h.
| #define MULTI_FILE 16 |
Definition at line 23 of file mg_processing.h.
| #define NFOM 10 |
Definition at line 16 of file mg_processing.h.
| #define PART_LOG 64 |
Definition at line 25 of file mg_processing.h.
| #define WRITE_PPX 128 |
Definition at line 26 of file mg_processing.h.
| enum FOMType |
| Enumerator | |
|---|---|
| NoFOM | |
| FOM | |
| FOM_CC | |
| FOM_CV | |
| FOM_SNR | |
| FOM_CC_AVG | |
| FOM_CC_STD | |
| FOM_HAND_A | |
| FOM_HAND_B | |
| FOM_PFT_CC | |
| FOM_PFT_PRJ | |
| FOM_PFT_CMP | |
| FOM_RFACTORAB | |
| COVERAGE | |
| DENSITY | |
| FOM1 | |
| FOM2 | |
| FOM3 | |
| FOM4 | |
| FOM5 | |
| FOM6 | |
| FOM7 | |
| FOM8 | |
| FOM9 | |
Definition at line 38 of file mg_processing.h.
Adds a field-of-view parameter structure to a linked list.
| **field | pointer to any field-of-view in the list. |
| field_id | field identifier. |
The function allocates memory for a new field-of-view structure. If the content of the pointer is null, the new structure is the first in the list. Otherwise, the end of the list is found and the new structure added to it.
Definition at line 121 of file mg_processing.cpp.
| int field_kill | ( | Bfield * | field | ) |
Frees a whole field-of-view structure.
Frees all the structures down the hierarchy.
| *field | field-of-view parameter structure. |
Definition at line 466 of file mg_processing.cpp.
Adds a filament parameter structure to a linked list.
| **fil | pointer to any filament in the list. |
| pid | filament number in file (starts at 1). |
The function allocates memory for a new filament structure. If the content of the pointer is null, the new structure is the first in the list. Otherwise, the end of the list is found and the new structure added to it.
Definition at line 319 of file mg_processing.cpp.
| int filament_kill | ( | Bfilament * | fil | ) |
Frees a list of filaments.
Frees all the structures down the hierarchy.
| *fil | filament parameter structure. |
Definition at line 552 of file mg_processing.cpp.
| double filament_length | ( | Bfilament * | fil | ) |
Calculates the length of a filament.
| *fil | pointer to a filament. |
The length is defined as the sum of the link lengths connecting the nodes.
Definition at line 375 of file mg_processing.cpp.
Adds a filament node parameter structure to a linked list.
| **fnode | pointer to any filament node in the list. |
| pid | filament node number in file (starts at 1). |
The function allocates memory for a new filament node structure. If the content of the pointer is null, the new structure is the first in the list. Otherwise, the end of the list is found and the new structure added to it.
Definition at line 349 of file mg_processing.cpp.
Adds a movie frame parameter structure to a linked list.
| **frame | pointer to any frame in the list. |
| pid | particle number in file (starts at 1). |
The function allocates memory for a new frame structure. If the content of the pointer is null, the new structure is the first in the list. Otherwise, the end of the list is found and the new structure added to it.
Definition at line 189 of file mg_processing.cpp.
Returns the tag associated with a particular FOM.
| fom_type | type of FOM. |
Definition at line 2612 of file mg_processing.cpp.
| int get_fom_tag | ( | FOMType | fom_type, |
| char * | tag | ||
| ) |
Returns the tag associated with a particular FOM.
| fom_type | type of FOM. |
| *tag | FOM tag. |
Definition at line 2651 of file mg_processing.cpp.
| int mg_part_links | ( | Bmicrograph * | mg | ) |
Sets the links from particles to micrographs.
| *mg | pointer to micrograph. |
Definition at line 249 of file mg_processing.cpp.
| Bmicrograph* micrograph_add | ( | Bmicrograph ** | mg, |
| Bstring & | mg_id | ||
| ) |
Adds a micrograph parameter structure to a linked list.
| **mg | pointer to any micrograph in the list. |
| mg_id | micrograph identifier. |
The function allocates memory for a new micrograph structure. If the content of the pointer is null, the new structure is the first in the list. Otherwise, the end of the list is found and the new structure added to it.
Definition at line 154 of file mg_processing.cpp.
| Bmicrograph* micrograph_copy | ( | Bmicrograph * | mg | ) |
Copies a micrograph.
| *mg | micrograph structure to be copied. |
Definition at line 735 of file mg_processing.cpp.
| int micrograph_kill | ( | Bmicrograph * | mg | ) |
Frees a whole micrograph parameter structure.
Frees all the structures down the hierarchy.
| *mg | micrograph parameter structure. |
Definition at line 493 of file mg_processing.cpp.
| long micrograph_set_part_links | ( | Bmicrograph * | mg | ) |
Sets the links from particles back to the micrograph.
| *mg | micrograph parameter structure. |
Definition at line 1170 of file mg_processing.cpp.
| int micrograph_update | ( | Bmicrograph * | mg, |
| Bmicrograph * | nu_mg, | ||
| int | fom_index, | ||
| int | flags | ||
| ) |
Updates an existing micrograph with new information.
| *mg | micrograph structure to be updated. |
| *nu_mg | micrograph structure with new information. |
| fom_index | index of FOM to select on. |
| flags | flags indicating which parts to update. |
The new information is encoded as a micrograph structure.
All fields are updated if the new fields contain non-default data.
Defaults are defined here as zero-length strings or zeroes.
The particles in the original micrograph are matched by ID with
those in the new micrograph and updated, with any new particles
added from the new micrograph.
The bad area and marker coordinates are replaced if they exist
in the new structure.
The new micrograph structure is not modified, except for deletion
of bad areas and markers.
Flags:
1 particles
2 bad areas
4 filaments
8 structure factors
16 layer lines
32 markers
Definition at line 878 of file mg_processing.cpp.
Finds the first particle in a project.
| *project | pointer to project. |
The function searches for the first particle with a filename.
Definition at line 283 of file mg_processing.cpp.
Adds a particle parameter structure to a linked list.
| **part | pointer to any particle in the list. |
| pid | particle number in file (starts at 1). |
The function allocates memory for a new particle structure. If the content of the pointer is null, the new structure is the first in the list. Otherwise, the end of the list is found and the new structure added to it.
Definition at line 221 of file mg_processing.cpp.
Sets up an array of selected particle pointers.
| *partlist | particle linked list. |
| part_select | particle selection (-1 if none). |
| &npart | array length (modified). |
FOM's of non-selected particles are zeroed.
Definition at line 1360 of file mg_processing.cpp.
Adds one particle onto a list of particle parameters.
| **partlist | destination particle list. |
| *part | particle. |
Definition at line 614 of file mg_processing.cpp.
Copies a list of particle parameters to a new list.
| *partlist | source particle list. |
Definition at line 643 of file mg_processing.cpp.
| int particle_kill | ( | Bparticle * | part | ) |
Frees a list of particles.
Frees all the structures down the hierarchy.
| *part | particle parameter structure. |
Definition at line 528 of file mg_processing.cpp.
Updates an existing particle list with new information.
| **pnt_part | particle structure list to be updated. |
| *nu_part | particle structure list with new information. |
| fom_index | index of FOM to select on. |
The new information is encoded as a particle structure. All fields are updated if the new fields contain non-default data. Defaults are defined here as zeroes. The new particle structure is not modified.
Definition at line 1073 of file mg_processing.cpp.
Updates one existing particle with new information.
| *part | particle structure to be updated. |
| *nu_part | particle structure with new information. |
The new information is encoded as a particle structure. All fields are updated if the new fields contain non-default data. Defaults are defined here as zeroes. The new particle structure is not modified.
Definition at line 1026 of file mg_processing.cpp.
| int project_add_origins_to_coords | ( | Bproject * | project | ) |
Adds the particle origins to the micrograph coordinates.
| *project | project parameter structure. |
The coordinates of particles from a micrograph and particle origins in an image processing parameter structure are added. The old micrograph coordinates are overwritten with the results. Requirement: The box radius for picked particles must be specified.
Definition at line 2154 of file mg_processing.cpp.
| int project_apply_map_magnifications | ( | Bproject * | project, |
| int | mag_num, | ||
| float * | mag | ||
| ) |
Change particle pixel sizes for particles based on map magnifications.
| *project | project parameter structure. |
| mag_num | number of maps; |
| *mag | array of map magnifications. |
Definition at line 2471 of file mg_processing.cpp.
| Bproject* project_create | ( | int | nmg, |
| int | nrec | ||
| ) |
Creates a micrograph processing project parameter structure.
| nmg | number of micrograph structures. |
| nrec | number of reconstruction structures. |
The function allocates memory for the project structure, a field-of-view structure, and the requested number of micrographs and reconstructions.
Definition at line 48 of file mg_processing.cpp.
| long project_divide | ( | Bproject * | project, |
| long | n | ||
| ) |
Divides a project into a number of micrograph subsets.
| *project | project parameter structure. |
| n | number of subsets. |
Only selected micrographs are considered in the subdivision.
Definition at line 1204 of file mg_processing.cpp.
Dumps particle info in the project hierarchy.
| *project | project parameter structure. |
| &filename | output file name. |
Definition at line 1646 of file mg_processing.cpp.
| int project_equal_mg_part_files | ( | Bproject * | project | ) |
Sets micrograph and particle files to be the same.
| *project | project parameter structure. |
If the micrograph file name exists, that is used, otherwise the particle file name is used.
Definition at line 88 of file mg_processing.cpp.
| int project_flip_origins | ( | Bproject * | project, |
| int | flip | ||
| ) |
Flip origin coordinates.
| *project | project parameter structure. |
| flip | axes to flip. |
The particle origins are reversed.
The specification of axes to flip is embedded in the flip number:
first bit - x
second bit - y
third bit - z
Definition at line 2196 of file mg_processing.cpp.
| Bproject* project_init | ( | ) |
Initializes a micrograph processing project parameter structure.
The function allocates memory for the project structure.
Definition at line 30 of file mg_processing.cpp.
| int project_kill | ( | Bproject * | project | ) |
Frees a whole project.
Frees all the structures down the hierarchy.
| *project | project parameter structure. |
Definition at line 429 of file mg_processing.cpp.
Puts particle parameters from one project into another.
| *project | project parameter structure with all parameters. |
| *partproject | project parameter structure with particle parameters. |
Definition at line 1118 of file mg_processing.cpp.
Sets up an array of selected particle pointers.
| *project | project parameter structure. |
| part_select | particle selection (-1 if none). |
| &npart | array length (modified). |
FOM's of non-selected particles are zeroed.
Definition at line 1282 of file mg_processing.cpp.
| Bmicrograph** project_micrograph_array | ( | Bproject * | project, |
| long & | nmg | ||
| ) |
Sets up an array of selected micrograph pointers.
| *project | project parameter structure. |
| &nmg | array length (modified). |
FOM's of non-selected micrographs are zeroed.
Definition at line 1254 of file mg_processing.cpp.
Sets up an array of selected particle pointers.
| *project | project parameter structure. |
| part_select | particle selection (-1 if none). |
| &npart | array length (modified). |
FOM's of non-selected particles are zeroed.
Definition at line 1324 of file mg_processing.cpp.
| long project_renumber_particles | ( | Bproject * | project | ) |
Renumbers particles.
| *project | project parameter structure. |
For each micrograph the particles are renumbered starting from 1.
Definition at line 2247 of file mg_processing.cpp.
Reset a particle parameter from its micrograph.
| *project | project parameter structure. |
| &reset | a string specifying the parameter. |
Definition at line 2516 of file mg_processing.cpp.
Reverts file names to what it was in an old project.
| *project | project parameter structure. |
| *project_old | project parameter structure with old file names. |
| flag | 1=mg, 2=ps, 4=rec, 8=part, 16=frames. |
Definition at line 1388 of file mg_processing.cpp.
Rotates particle views with respect to a reference view.
| *project | project parameter structure. |
| view | reference view. |
Definition at line 2429 of file mg_processing.cpp.
| int project_set_dose | ( | Bproject * | project, |
| double | dose | ||
| ) |
Sets the electron dose of all the micrographs.
| *project | project parameter structure. |
| dose | electron dose (electrons/angstrom). |
Definition at line 2099 of file mg_processing.cpp.
Sets the field id's according to a regular series.
The micrograph data blocks must be arranged in a regular order with every nseries micrographs from the same field-of-view. The field id's are taken from the first micrograph id in a series.
| *project | project parameter structure. |
| nseries | number of micrographs per field-of-view. |
| &field_id | a user-specified field ID. |
Definition at line 1456 of file mg_processing.cpp.
Sets the path to filament files for all the micrographs.
| *project | project parameter structure. |
| &path | path to filament files. |
If the requested path is "." or "./", the path is completely removed.
Definition at line 1903 of file mg_processing.cpp.
Sets the path to micrograph frames files for all the micrographs.
| *project | project parameter structure. |
| &path | path to micrograph frames files. |
If the requested path is "." or "./", the path is completely removed.
Definition at line 1795 of file mg_processing.cpp.
| int project_set_magnification | ( | Bproject * | project, |
| double | mag | ||
| ) |
Sets the magnification for all the micrographs.
| *project | project parameter structure. |
| mag | magnification. |
Definition at line 1954 of file mg_processing.cpp.
Sets the pixel size for all the micrographs.
| *project | project parameter structure. |
| pixel_size | pixel size. |
Definition at line 1997 of file mg_processing.cpp.
Sets micrograph origins to the given origin.
| *project | project parameter structure. |
| origin | particle origin. |
For each micrograph the micrograph origin is set to the given origin.
Definition at line 2122 of file mg_processing.cpp.
Sets the path to micrograph files for all the micrographs.
| *project | project parameter structure. |
| &path | path to micrograph files. |
If the requested path is "." or "./", the path is completely removed.
Definition at line 1766 of file mg_processing.cpp.
| long project_set_part_links | ( | Bproject * | project | ) |
Sets the links from particles back to the micrographs and reconstructions.
| *project | project parameter structure. |
Definition at line 1148 of file mg_processing.cpp.
Sets the pixel size for all the particles.
| *project | project parameter structure. |
| pixel_size | pixel size. |
Definition at line 2042 of file mg_processing.cpp.
Sets particle views within the asymmetric unit.
| *project | project parameter structure. |
| &symmetry_asu | point group string. |
For each micrograph or reconstruction the particle view is set to within the asymmetric unit.
Definition at line 2383 of file mg_processing.cpp.
Definition at line 2396 of file mg_processing.cpp.
| int project_set_particle_box_size | ( | Bproject * | project, |
| long | box_size | ||
| ) |
Sets particle box size to the given value.
| *project | project parameter structure. |
| box_size | particle box size. |
For each micrograph or reconstruction the particle box size is set to the given radius and the particle origins are adjusted as well.
Definition at line 2329 of file mg_processing.cpp.
Sets particle box size to the given value.
| *project | project parameter structure. |
| box_size | particle box size. |
For each micrograph or reconstruction the particle box size is set to the given radius and the particle origins are adjusted as well.
Definition at line 2284 of file mg_processing.cpp.
Sets particle origins to given values.
| *project | project parameter structure. |
| origin | particle origin. |
For each micrograph or reconstruction the particle origin is set to the given origin.
Definition at line 2348 of file mg_processing.cpp.
Sets the path to particle files for all the micrographs.
| *project | project parameter structure. |
| &path | path to particle files. |
If the requested path is "." or "./", the path is completely removed.
Definition at line 1853 of file mg_processing.cpp.
Sets the path to powerspectrum files for all the micrographs.
| *project | project parameter structure. |
| &path | path to powerspectrum files. |
If the requested path is "." or "./", the path is completely removed.
Definition at line 1824 of file mg_processing.cpp.
Sets the pixel size for all the reconstructions.
| *project | project parameter structure. |
| pixel_size | pixel size. |
Definition at line 2021 of file mg_processing.cpp.
| int project_set_scan_sampling | ( | Bproject * | project, |
| double | sampling | ||
| ) |
Sets the scan sampling for all the micrographs.
| *project | project parameter structure. |
| sampling | sampling. |
Sampling is isotropic.
Definition at line 1977 of file mg_processing.cpp.
| int project_set_tilt | ( | Bproject * | project, |
| double | tilt_axis, | ||
| double | tilt_angle | ||
| ) |
Sets the tilt parameters for all the micrographs.
| *project | project parameter structure. |
| tilt_axis | micrograph tilt axis angle. |
| tilt_angle | micrograph tilt angle. |
Definition at line 2076 of file mg_processing.cpp.
| long project_show_class_averages | ( | Bproject * | project | ) |
Shows the class averages in a project.
| *project | project parameter structure. |
Definition at line 1617 of file mg_processing.cpp.
| long project_show_hierarchy | ( | Bproject * | project | ) |
Shows the project hierarchy.
| *project | project parameter structure. |
Definition at line 1506 of file mg_processing.cpp.
| int project_sort_by_tilt | ( | Bproject * | project | ) |
Sorts the micrographs in each field by tilt angle.
| *project | project parameter structure. |
Definition at line 1613 of file mg_select.cpp.
Updates an existing project with new information.
| *project | project parameter structure to be updated. |
| *proj_new | project parameter structure with new information. |
| fom_index | index of FOM to select on. |
The new information is encoded as a project hierarchy. The original project hierarchy is searched for the micrograph ID tags that correspond to the original project hierarchy and those micrograph parameters are updated. Because the micrograph ID tags should be unique in themselves, the field ID tags are ignored and the two project hierarchies may have different field designations. If a micrograph ID from the new project hierarchy is not found in the original project hierarchy, it is added. The new project hierarchy is not modified.
Definition at line 809 of file mg_processing.cpp.
| int rec_part_links | ( | Breconstruction * | rec | ) |
Sets the links from particles to reconstructions.
| *rec | pointer to reconstruction. |
Definition at line 265 of file mg_processing.cpp.
| Breconstruction* reconstruction_add | ( | Breconstruction ** | rec, |
| Bstring & | rec_id | ||
| ) |
Adds a reconstruction parameter structure to a linked list.
| **rec | pointer to any reconstruction in the list. |
| &rec_id | reconstruction identifier. |
The function allocates memory for a new micrograph structure. If the content of the pointer is null, the new structure is the first in the list. Otherwise, the end of the list is found and the new structure added to it.
Definition at line 398 of file mg_processing.cpp.
| int reconstruction_kill | ( | Breconstruction * | rec | ) |
Frees a whole reconstruction parameter structure.
Frees all the structures down the hierarchy.
| *rec | reconstruction parameter structure. |
Definition at line 582 of file mg_processing.cpp.
| long reconstruction_set_part_links | ( | Breconstruction * | rec | ) |
Sets the links from particles back to the reconstruction.
| *rec | reconstruction parameter structure. |
Definition at line 1185 of file mg_processing.cpp.
| int reconstruction_update | ( | Breconstruction * | rec, |
| Breconstruction * | nu_rec, | ||
| int | fom_index, | ||
| int | flags | ||
| ) |
Updates an existing reconstruction with new information.
| *rec | reconstruction structure to be updated. |
| *nu_rec | reconstruction structure with new information. |
| fom_index | index of FOM to select on. |
| flags | flags indicating which parts to update. |
The new information is encoded as a reconstruction structure. The update is only done if the FOM of the new reconstruction is better. All fields are updated if the new fields contain non-default data. Defaults are defined here as zero-length strings or zeroes. The particles in the original reconstruction are matched by ID with those in the new reconstruction and updated, with any new particles added from the new reconstruction. The bad area and marker coordinates are replaced if they exist in the new structure. The new reconstruction structure is not modified, except for deletion of bad areas and markers.
Definition at line 982 of file mg_processing.cpp.
Retrieves the particle views from a project.
| *project | project parameter structure. |
| selection | selection number (-1 selects positives, 0 selects all). |
Definition at line 2566 of file mg_processing.cpp.