 |
Bsoft
2.1.0
Bernard's software package
|
Go to the documentation of this file.
26 "Usage: bmark [options] in.star [in2.star...]",
27 "--------------------------------------------",
28 "Operates on sets of micrograph markers.",
31 "-reconstructions Operate on reconstruction parameters rather than micrographs.",
32 "-list List all micrograph and reconstruction markers.",
33 "-rotate 0.3,0.1,-0.5,81 Rotate around an axis by an angle.",
34 "-scale 0.5,3,1 Scale.",
35 "-translate 12.2,0.5,-50 Shift after rotation and scaling.",
36 "-plane Calculate a plane through the markers.",
37 "-fom 0.55 Select markers with a figure-of-merit above this cutoff.",
40 "-verbose 7 Verbosity of output.",
41 "-origin 0,22.5,30 Set the origin for rotation.",
45 "-output out.star Output micrograph parameter file.",
50 int main(
int argc,
char **argv)
66 for ( curropt = option; curropt; curropt = curropt->
next ) {
67 if ( curropt->
tag ==
"reconstructions" ) use_rec = 1;
68 if ( curropt->
tag ==
"list" ) list = 1;
69 if ( curropt->
tag ==
"rotate" ) {
72 cerr <<
"-rotate: All three vector elements and an angle must be specified!" << endl;
79 if ( curropt->
tag ==
"scale" ) {
82 cerr <<
"-scale: At least one value must be specified!" << endl;
88 if ( curropt->
tag ==
"translate" ) {
91 cerr <<
"-translate: At least one translation value must be specified!" << endl;
95 if ( curropt->
tag ==
"plane" ) calcplane = 1;
96 if ( curropt->
tag ==
"fom" )
97 if ( ( fom = curropt->
value.
real() ) < 0.0001 )
98 cerr <<
"-fom: A figure-of-merit must be specified!" << endl;
99 if ( curropt->
tag ==
"origin" ) {
105 if ( curropt->
tag ==
"output" )
114 while ( optind < argc )
string_add(&file_list, argv[optind++]);
116 cerr <<
"Error: No parameter files specified!" << endl;
124 cerr <<
"Error: No input file read!" << endl;
147 double marker_radius(10);
A class for a command line input option.
int project_kill(Bproject *project)
Frees a whole project.
int marker_transform(Bmarker *markers, Transform t)
Transforming markers.
int project_mg_marker_select(Bproject *project, double fom)
Selects markers.
int string_kill(Bstring *list)
Kills a string linked list.
Header file for file checking functions.
int bexit(int value)
Exit function for cleanup and debugging.
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.
Vector3< double > origin()
long marker_stats(Bmarker *markers)
Calculating marker statistics.
Header file for image parameter functions.
Header file for reading and writing micrograph parameters.
Utilities for timing functions.
vector< double > split_into_doubles(const Bstring &delim)
int main(int argc, char **argv)
int marker_plane(Bmarker *markers, Vector3< double > origin)
Fits a plane to a set of markers.
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.
long project_marker_in_particle_image(Bproject *project, double marker_radius)
Enumerates markers within particles.
Vector3< double > vector3()
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 option_kill(Boption *option)
Deallocates a linked list of option structures.
Header file for micrograph marker functions.
Bstring * string_add(Bstring **list, const char *string)
Adds a string to a linked list.
long project_marker_lists(Bproject *project)
Lists micrograph markers.
Header file for single particle image processing in Bsoft.