|
Bsoft
2.1.0
Bernard's software package
|
Selection of single particle parameters from multiple files for classification. More...
#include "mg_processing.h"#include "rwmg.h"#include "symmetry.h"#include "utilities.h"#include "timer.h"Go to the source code of this file.
Functions | |
| Bproject * | project_multi_merge (Bstring *file_list, int fom_index, int flags) |
| Merges multiple projects. More... | |
| int | project_multi_add (Bproject *project, Bstring *file_list, int fom_index) |
| Merges multiple projects with an existing one. More... | |
| long | project_multi_select_best_FOM (Bproject *project_list, double fom_cut, int fom_index, int fom_def_flag) |
| Selects the best particle orientations from multiple parameter files. More... | |
| long | project_multi_selection_stats (Bproject *project_list) |
| Counts particle assignment distributions using selection arrays. More... | |
| long | project_multi_select_low_variance (Bproject *project_list, Bsymmetry *sym, double origin_dev, double view_dev, double angle_dev, double mag_dev) |
| Selects the best particle orientations from multiple parameter files. More... | |
| long | project_multi_select_low_difference (Bproject *project1, Bproject *project2, Bsymmetry *sym, double origin_err, double view_err, double angle_err, double mag_err) |
| Selects the best particle orientations from two parameter files. More... | |
| long | project_multi_select_low_rmsd (Bproject *project1, Bproject *project2, Bsymmetry *sym, double origin_rmsd, double view_rmsd, double angle_rmsd, double mag_rmsd, int flag) |
| Selects the best particle orientations from two parameter files. More... | |
| long | project_multi_selection_compare (Bproject *project1, Bproject *project2) |
| Calculates the number of selections that are the same. More... | |
Selection of single particle parameters from multiple files for classification.
Definition in file mg_multiple.h.
Merges multiple projects with an existing one.
| *project | project to add/merge to. |
| *file_list | linked list of parameter file names. |
| fom_index | index of FOM to select on. |
The selected particles are merged with existing ones. Requirement: The project component ID's must correspond.
Definition at line 207 of file mg_multiple.cpp.
Merges multiple projects.
| *file_list | linked list of parameter file names. |
| fom_index | index of FOM to select on. |
| flags | flags: 1=rec, 2=template, 4=reset. |
The selected particles are merged. Requirement: The project component ID's must correspond. If bit 2 of the flag is set (2), it signifies a template and the FOM's of the template are set to zero.
Definition at line 68 of file mg_multiple.cpp.
| long project_multi_select_best_FOM | ( | Bproject * | project_list, |
| double | fom_cut, | ||
| int | fom_index, | ||
| int | fom_def_flag | ||
| ) |
Selects the best particle orientations from multiple parameter files.
| *project_list | linked list of project structures with all parameters. |
| fom_cut | FOM cutoff to eliminate bad particles. |
| fom_index | index of FOM to select on. |
| fom_def_flag | flag to adjust the cutoff for defocus. |
The orientation parameters for each particle is selected from the file with the highest FOM. The selection flag gets the number of the file from which the particle was selected, with the first file getting the number 1. If the best FOM is under the cutoff, the selection flag is set to zero. The selected orientation parameters are written into the first micrograph parameter structure. Requirement: The project structures must be of identical form.
Definition at line 338 of file mg_multiple.cpp.
| long project_multi_select_low_difference | ( | Bproject * | project1, |
| Bproject * | project2, | ||
| Bsymmetry * | sym, | ||
| double | origin_err, | ||
| double | view_err, | ||
| double | angle_err, | ||
| double | mag_err | ||
| ) |
Selects the best particle orientations from two parameter files.
| *project1 | first project structure with all parameters. |
| *project2 | second project structure with all parameters. |
| *sym | symmetry. |
| origin_err | cutoff to accept origins (pixels). |
| view_err | cutoff to accept views (radians). |
| angle_err | cutoff to accept rotation angles (radians). |
| mag_err | cutoff to accept magnifications (fraction). |
The error is calculated between parameters.
Requirement: The origin, view and rotation angle (or Euler angle),
and magnification arrays in the micrographs must be defined.
Definition at line 769 of file mg_multiple.cpp.
| long project_multi_select_low_rmsd | ( | Bproject * | project1, |
| Bproject * | project2, | ||
| Bsymmetry * | sym, | ||
| double | origin_rmsd, | ||
| double | view_rmsd, | ||
| double | angle_rmsd, | ||
| double | mag_rmsd, | ||
| int | flag | ||
| ) |
Selects the best particle orientations from two parameter files.
| *project1 | first project structure with all parameters. |
| *project2 | second project structure with all parameters. |
| *sym | symmetry. |
| origin_rmsd | cutoff to accept origins (pixels). |
| view_rmsd | cutoff to accept views (radians). |
| angle_rmsd | cutoff to accept rotation angles (radians). |
| mag_rmsd | cutoff to accept magnifications (fraction). |
| flag | 0=RMSD, 1=MSD |
The error is calculated between parameters.
Requirement: The origin, view and rotation angle (or Euler angle),
and magnification arrays in the micrographs must be defined.
Definition at line 920 of file mg_multiple.cpp.
| long project_multi_select_low_variance | ( | Bproject * | project_list, |
| Bsymmetry * | sym, | ||
| double | origin_dev, | ||
| double | view_dev, | ||
| double | angle_dev, | ||
| double | mag_dev | ||
| ) |
Selects the best particle orientations from multiple parameter files.
| *project_list | linked list of project structures with all parameters. |
| *sym | symmetry. |
| origin_dev | cutoff to accept origins (pixels). |
| view_dev | cutoff to accept views (radians). |
| angle_dev | cutoff to accept rotation angles (radians). |
| mag_dev | cutoff to accept magnifications (fraction). |
The standard deviations of particle parameters are calculated as
follows:
origin_std = sqrt(var(origin_x) + var(origin_y))
view_std = sqrt(var(view_x) + var(view_y) + var(view_z))
angle_std = sqrt(var(angle))
size_std = sqrt(var(magnification))
Requirement: The origin, view and rotation angle (or Euler angle),
and magnification arrays in the micrographs must be defined.
Definition at line 598 of file mg_multiple.cpp.
Calculates the number of selections that are the same.
| *project1 | first project structure with all parameters. |
| *project2 | second project structure with all parameters. |
Definition at line 1032 of file mg_multiple.cpp.
| long project_multi_selection_stats | ( | Bproject * | project_list | ) |
Counts particle assignment distributions using selection arrays.
| *project_list | linked list of project structures with all parameters. |
Requirement: The project structures must be of identical form.
Definition at line 460 of file mg_multiple.cpp.