 |
Bsoft
2.1.0
Bernard's software package
|
Go to the documentation of this file.
41 double theta_step,
double phi_step,
int number);
43 double theta_step,
double phi_step,
double threshfrac,
double sigma,
int fom_index);
45 double theta_step,
double phi_step,
int number,
int fom_index);
Header file for utility functions for use in qsort calls.
double part_series_comparison(Bproject *project, Bsymmetry *sym, double angle_cutoff)
A function to select particles based on comparison of the orientations within a series.
long part_set_selection(Bproject *project, int number)
Selects one selection number and sets all others to zero.
long part_set_first_view_in_series(Bproject *project)
Sets all orientation parameters for a particle to the first in the set.
Header file for general symmetry functions.
long part_select_best_within_view(Bproject *project, Bsymmetry *sym, double theta_step, double phi_step, int number, int fom_index)
Selects the best number of particles within each view.
long part_select_group(Bproject *project, int group)
Selects particles with a given group identifier.
long part_set_sequential(Bproject *project)
Selects one selection number and sets all others to zero.
long part_reselect(Bproject *project, Bstring &tag, double reselect_min, double reselect_max)
Reselects particles identified by an input STAR tag and between a minimum and maximum.
long part_select_to_group(Bproject *project)
Transfer selection numbers to the group identifiers.
int_float * project_fom_order(Bproject *project, long &npart, int fom_index, int defocus_fit)
long part_deselect_from_list(Bproject *project, Bstring list)
Deselects particles with selection numbers from a list.
long part_set_best_view_in_series(Bproject *project, int fom_index)
Sets all orientation parameters for a particle to the best in the set.
long part_deselect_redundant(Bparticle *partlist, double excl_dist, int part_select, int fom_index)
Deselects particles overlapping with better ones.
long part_consolidate_selection(Bproject *project, int number)
Consolidates selected particles under one selection number.
long part_view_select(Bproject *project, View view, double angle)
Selects particles based on a distance from a reference view.
long part_set_multi_maps(Bproject *project, int part_select, int nmaps)
Sets selection for generating multiple maps.
long part_select_random_fraction(Bproject *project, double fraction)
Selects particles randomly based on a fraction of the total.
long part_reset_selection(Bproject *project, int flag=0)
Resets selection to all particles.
long part_filament_direction(Bproject *project, double minpct)
Checks the direction of particles associated with filaments.
long part_select_furthest_from_focus(Bproject *project)
Deselects all particles except those from micrographs furthest from focus.
long part_series_from_seed(Bproject *project, int flags)
Calculates the locations of particles in a series from a seed.
long part_deselect(Bproject *project, int fom_index, double fommin, double fommax=1e30)
Deselects particles below a given FOM cutoff.
vector< pair< Bparticle *, double > > project_part_sort(Bproject *project, Bstring tag)
Sorts the Particles by a selected parameter.
long part_select_maxsmooth(Bproject *project, Bsymmetry *sym, double theta_step, double phi_step, double threshfrac, double sigma, int fom_index)
Selects particles based on a smoothed maximum surface.
long part_select_random_group(Bproject *project, long number)
Selects groups randomly to give at least a number of particles.
long part_side_view_select(Bproject *project, double angle)
Selects particles based on a distance from a side view.
long part_set_FOM(Bproject *project, int fom_index, double fom)
Sets the FOM for all particles.
long part_fix_defocus(Bproject *project, double max_dev)
Resets defocus values for particles thata are too far off.
double part_fom_defocus_fit_deselect(Bproject *project, int fom_index, double cutoff)
Deselects particles below a given FOM cutoff, adjusted for the defocus.
long part_select_FOM_avg_std(Bproject *project, double factor, int fom_index)
Selects particles based on FOM average and standard deviation.
Tcl_Obj * part_select(Bparticle *part, int objc, Tcl_Obj *CONST objv[])
long part_select_best(Bproject *project, long number, int fom_index, int defocus_fit)
Selects the best particles based on the FOM.
long part_select_percentage(Bproject *project, double percentage, int fom_index, int defocus_fit)
Selects a percentage of particles based on the FOM.
double distance(vector< T1 > &v1, vector< T2 > &v2)
long part_select_bootstrap(Bproject *project, int number)
Selects a given number of particles randomly with replacement.
long part_select_FOM_groups(Bproject *project, int ngroups, int fom_index, int defocus_fit)
Selects groups of particles based on the FOM.
long part_select_sets(Bproject *project, int size, int flag)
Selects sets of particles, each set with the same size.
long part_select_series(Bproject *project, int size, int flag)
Select series where all are already selected.
double part_fom_defocus_fit(Bproject *project, int fom_index, double &intercept, double &slope)
Fits the particle FOMs as a function of the defocus.
int_float * part_fom_order(Bparticle *partlist, long &npart, int fom_index)
long part_unset_selection(Bproject *project)
Unsets selection to no particles.
Header file for micrograph processing.
long part_delete_deselected(Bproject *project)
Deletes deselected particles and renumber the remaining.
long part_euler_angle_select(Bproject *project, double *euler6)
Selects particles based on Euler angle limits.
long part_select_random(Bproject *project, long number)
Selects a specific number of particles randomly.
long part_select_frames(Bproject *project, int frame_start, int frame_end)
Select particles from frames in a series.
long part_select_closest_to_focus(Bproject *project)
Deselects all particles except those from micrographs closest to focus.
long part_select_micrograph(Bproject *project, Bstring &mgselect)
Sets selection to the micrographs indicated.
long part_select_random_within_view(Bproject *project, Bsymmetry *sym, double theta_step, double phi_step, int number)
Selects a given number of particles within each view.
long part_invert_selection(Bproject *project)
Inverts the selection.
long part_set_filament_maps(Bproject *project)
Generates a selection number from the group number for each filament.
long part_origin_select(Bproject *project, Vector3< double > origin, double distance)
Selects particles based on the distance from the nominal origin.