 |
Bsoft
2.1.0
Bernard's software package
|
Go to the documentation of this file.
26 "Usage: bdual [options] input1.star [input2.star]",
27 "------------------------------------------------",
28 "Handles dual tomographic tilt series of micrographs.",
29 "Expects exactly two input parameter files corresponding to the two tilt series.",
30 "Outputs only the second series to a parameter file.",
33 "-seed 1.3,-95,75 Transfers seed markers from first to second series,",
34 " using the angular increment to test for rotation angle,",
35 " within the angular limits (default -180,180).",
36 "-refine Refines markers from the second series after transfer.",
37 "-transform Calculates the correct micrograph transformations for the 2nd series.",
38 "-deselect 5-9,33 Deselect markers by id from all micrographs and models.",
39 "-zcompare Compare Z coordinates of the first and second series.",
42 "-verbose 7 Verbosity of output.",
43 "-sampling 1.5,1.5,1.5 Sampling (A/pixel; a single value can be given).",
44 "-resolution 900,300 High and low resolution limits for cross-correlation (default 0.1,1000 angstrom).",
45 "-shiftlimit 155.5 Limit on micrograph shift search in pixels (default 20% of micrograph width).",
48 "-output file.star Output parameter file for 2nd series.",
49 "-Postscript out.ps Postscript output with Z coordinate error plots.",
50 "-bild out.bld BILD output with fitted marker models.",
56 int main(
int argc,
char** argv)
59 double rot_start(-180), rot_end(180);
66 double hi_res(0), lo_res(1000);
67 double shift_limit(-1);
75 for ( curropt = option; curropt; curropt = curropt->
next ) {
76 if ( curropt->
tag ==
"seed" ) {
77 if ( curropt->
values(rot_step, rot_start, rot_end) < 1 )
78 cerr <<
"-rotation: A rotation angle step size must be specified." << endl;
80 rot_step *=
M_PI/180.0;
81 rot_start *=
M_PI/180.0;
82 rot_end *=
M_PI/180.0;
85 if ( curropt->
tag ==
"refine" ) refine = 1;
86 if ( curropt->
tag ==
"transform" ) transform = 1;
87 if ( curropt->
tag ==
"deselect" ) deselect = curropt->
value;
88 if ( curropt->
tag ==
"zcompare" ) zcompare = 1 ;
89 if ( curropt->
tag ==
"sampling" )
90 sam = curropt->
scale();
91 if ( curropt->
tag ==
"resolution" ) {
92 if ( curropt->
values(hi_res, lo_res) < 1 )
93 cerr <<
"-resolution: Resolution limits must be specified." << endl;
94 else if ( hi_res > lo_res )
97 if ( curropt->
tag ==
"shiftlimit" )
98 if ( ( shift_limit = curropt->
value.
real() ) < 1 )
99 cerr <<
"-shiftlimit: A shift limit in pixels must be specified." << endl;
100 if ( curropt->
tag ==
"output" )
102 if ( curropt->
tag ==
"Postscript" )
104 if ( curropt->
tag ==
"bild" )
113 if ( optind < argc )
string_add(&file_list, argv[optind++]);
114 if ( optind < argc )
string_add(&file_list, argv[optind++]);
116 cerr <<
"Error: No parameter files specified!" << endl;
122 cerr <<
"Error: No first tilt series!" << endl;
127 cerr <<
"Error: Two tilt series (fields) must be specified!" << endl;
142 if ( rot_step > 0 ) {
A class for a command line input option.
int project_kill(Bproject *project)
Frees a whole project.
Header file for postscript tools dealing with Bmarkers.
int project_transfer_seed(Bproject *project, double rot_start, double rot_end, double rot_step, double hi_res, double lo_res, double shift_limit)
Transfers the seed markers from the first to the second project.
Vector3< double > scale()
int main(int argc, char **argv)
int ps_dual_zcompare(Bstring &filename, Bproject *project)
Generates a PostScript file that displays X by X, Y by Y, and Z by Z plots for diagnostic purposes.
int project_sort_markers_by_id(Bproject *project)
Sorts markers for each micrograph by ID number.
int project_set_nominal_mg_origins(Bproject *project)
Sets micrograph origins to the centers of the micrographs.
int bexit(int value)
Exit function for cleanup and debugging.
int marker_sets_to_bild(Bstring &filename, Bmarker *mark1, Bmarker *mark2)
Generates a bild file with the two marker sets.
Functions to track fiducial markers in a tomographic series of images.
Boption * get_option_list(const char *use[], int argc, char *argv[], int &optind)
Parses command line arguments based on a template.
Header file for option handlers.
long values(T1 &v1, T2 &v2)
Header file for reading and writing micrograph parameters.
int project_set_mg_pixel_size(Bproject *project, Vector3< double > pixel_size)
Sets the pixel size for all the micrographs.
double project_dual_zcompare(Bproject *project)
Lists two sets of Z coordinates for comparison.
int project_transform_dual(Bproject *project)
Calculates the transformation of the second tilt series to fit the first.
Utilities for timing functions.
Header file for image processing from micrograph structures.
double timer_start()
Starts timer and prints the time.
Bproject * read_project(const char *filename, int flags=0)
Reading micrograph parameters from files.
Header file for general utilities.
double timer_report(double lasttime)
Reports the time elapsed since a given time.
int write_project(const char *filename, Bproject *project)
Writing micrograph parameters to a file.
Header file for micrograph processing.
int project_refine_markers(Bproject *project, double hi_res, double lo_res)
Refines marker positions in a tomographic series.
int option_kill(Boption *option)
Deallocates a linked list of option structures.
Bstring * string_add(Bstring **list, const char *string)
Adds a string to a linked list.
Header file for single particle image processing in Bsoft.
long project_deselect_markers(Bproject *project, Bstring &deselect_list)
Deletes selected markers in a project hierarchy.