 |
Bsoft
2.1.0
Bernard's software package
|
Go to the documentation of this file.
27 "Usage: bmodview [options] in1.star [in2.star...]",
28 "------------------------------------------------",
29 "Manipulates models.",
32 "-merge Merge models in different files rather than concatenate.",
33 "-views local Calculate views for components. Modes: origin: current origin,",
34 " com: center-of-mass origin, map: map origin, local: neigbor plane.",
35 "-invert Invert views for selected components.",
36 "-setasu D6 Set components to within an asymmetric unit.",
37 "-directions 10,1 Histogram of component view directions with histogram bin width (degrees)",
38 " and a flag: 0=wrt z-axis, 1=wrt component locations.",
39 "-setfom 0.8 Set the FOM of selected components to a specific value.",
42 "-all Reset selection to all models and components before other selections.",
43 "-select #232@14 Select models and components.",
46 "-verbose 7 Verbose output.",
47 "-componentradius 8.4 Set display radius for all components.",
48 "-linkradius 5.1 Set display radius for all links.",
49 "-combined The views for all models are combined (-Postscript option).",
50 "-separate Each model is defined as a separate molecule group (-coordinates option).",
53 "-parameters param.star Input parameter file.",
57 "-output file.star Output model parameter file.",
58 "-split 3 Split models into individual files:",
59 " Argument: 1-6: number of digits inserted before extension",
60 " Argument: \"id\": model ID's are used as file names.",
61 "-coordinates all.pdb Output coordinate files.",
62 "-Postscript plot.ps Output postscript file with a plot of views.",
67 int main(
int argc,
char **argv)
92 for ( curropt = option; curropt; curropt = curropt->
next ) {
93 if ( curropt->
tag ==
"all" ) reset = 1;
94 if ( curropt->
tag ==
"select" ) mod_select = curropt->
value;
95 if ( curropt->
tag ==
"merge" )
merge = 1;
96 if ( curropt->
tag ==
"views" ) calc_views = curropt->
value.
lower();
97 if ( curropt->
tag ==
"invert" ) inv_views = 1;
98 if ( curropt->
tag ==
"setasu" ) asu_sym = curropt->
value.
upper();
99 if ( curropt->
tag ==
"directions" )
100 if ( curropt->
values(view_dir_bins, view_dir_flag) < 1 )
101 cerr <<
"-directions: A histogram bin width in degrees must be specified!" << endl;
102 if ( curropt->
tag ==
"setfom" )
103 if ( ( setfom = curropt->
value.
real() ) < 0 )
104 cerr <<
"-setfom: A FOM value must be specified!" << endl;
105 if ( curropt->
tag ==
"componentradius" )
106 if ( ( comprad = curropt->
value.
real() ) <= 0 )
107 cerr <<
"-componentradius: A display radius must be specified!" << endl;
108 if ( curropt->
tag ==
"linkradius" )
109 if ( ( linkrad = curropt->
value.
real() ) <= 0 )
110 cerr <<
"-linkradius: A radius must be specified!" << endl;
111 if ( curropt->
tag ==
"combined" ) combined = 1;
112 if ( curropt->
tag ==
"parameters" )
114 if ( curropt->
tag ==
"output" )
116 if ( curropt->
tag ==
"split" ) {
119 cerr <<
"-split: An integer must be specified!" << endl;
123 if ( curropt->
tag ==
"coordinates" )
125 if ( curropt->
tag ==
"Postscript" )
134 while ( optind < argc )
string_add(&file_list, argv[optind++]);
136 cerr <<
"Error: No model files specified!" << endl;
144 cerr <<
"Error: Input file not read!" << endl;
A class for a command line input option.
long model_invert_views(Bmodel *model)
Invert views.
int string_kill(Bstring *list)
Kills a string linked list.
Header file for reading and writing atomic model files.
long model_set_link_radius(Bmodel *model, double linkrad)
Set the display radius for all links to a specific value.
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.
Library routines used for model symmetry operations.
Header file for option handlers.
long model_merge(Bmodel *model)
Merges components from all models into one.
Library routines used for model link processing.
long models_process(Bmodel *model, long(modfunc)(Bmodel *))
Process a list of models using the specified function.
long model_view_directions(Bmodel *model, int bin_width, int ref_flag)
Analyzes view directions in a model.
long model_selection_stats(Bmodel *model)
Calculates selection statistics.
long values(T1 &v1, T2 &v2)
int ps_model_symmetry_views(Bstring &filename, Bmodel *model, Bstring &symmetry_string, int combined)
Postscript plot of the distribution of model views.
int model_kill(Bmodel *model)
Deallocates all memory in the list.
Header file for reading and writing atomic model files.
Utilities for timing functions.
long model_calculate_views(Bmodel *model, Bstring &mode)
Calculates the views associated with each component.
long model_reset_selection(Bmodel *model)
Resets the selection to all components.
long model_set_fom(Bmodel *model, double fom)
Set the FOM of selected components to a specific value.
int main(int argc, char **argv)
double timer_start()
Starts timer and prints the time.
Header file for general utilities.
long model_find_asymmetric_unit(Bmodel *model, Bstring &symmetry_string)
Set model component locations within the asymmetric unit.
int write_model(Bstring &filename, Bmodel *model)
Writes model parameters.
vector< string > split(const string &s)
Splits a string on whitespace.
double timer_report(double lasttime)
Reports the time elapsed since a given time.
Library routines used for analysing model component views.
int merge(Bimage *p, int padd)
Pads an image and shifts it to the middle.
int option_kill(Boption *option)
Deallocates a linked list of option structures.
Library routines used for model processing.
Bmodel * read_model(Bstring &filename)
bool contains(const Bstring &s)
long model_set_component_radius(Bmodel *model, double comprad)
Set the display radius for all components to a specific value.
Header file for postscript tools dealing with models.
Bstring * string_add(Bstring **list, const char *string)
Adds a string to a linked list.
long model_select(Bmodel *model, Bstring &comptype)
Selects models, components and component types.