 |
Bsoft
2.1.0
Bernard's software package
|
Go to the documentation of this file.
23 "Usage: bcatmol [options] input.pdb [input2.pdb ...]",
24 "---------------------------------------------------",
25 "Concatenates sets of coordinates with shifts from sets of files.",
28 "-select CA Atom selection (default all).",
29 "-rename D Rename molecules from the given letter.",
32 "-verbose 7 Verbosity of output.",
33 "-box 10,10,10 Size of enclosing box (angstrom, default from coordinates).",
34 "-pbc Resolve periodic boundary bonds before catenation.",
37 "-parameters parm.star Atomic properties parameter file (default atom_prop.star).",
40 "-output output.pdb Output coordinate file (default temp.pdb).",
45 int main(
int argc,
char **argv)
58 for ( curropt = option; curropt; curropt = curropt->
next ) {
59 if ( curropt->
tag ==
"select" ) {
60 atom_select = curropt->
value;
61 if ( atom_select.
length() < 1 )
62 cerr <<
"-select: A selection must be specified!" << endl;
64 if ( curropt->
tag ==
"rename" )
65 if ( ( first_name = curropt->
value[0] ) < 1 )
66 cerr <<
"-rename: The first molecule name must be specified!" << endl;
67 if ( curropt->
tag ==
"box" ) {
70 cerr <<
"-box: All three dimensions must be specified" << endl;
72 if ( curropt->
tag ==
"pbc" )
74 if ( curropt->
tag ==
"parameters" )
76 if ( curropt->
tag ==
"output" )
84 cerr <<
"Error: No output file name given!" << endl;
90 while ( optind < argc )
string_add(&file_list, argv[optind++]);
92 cerr <<
"Error: No molecule files specified!" << endl;
A class for a command line input option.
int molgroup_kill(Bmolgroup *molgroup)
Destroys a molecule group.
int molecule_update_comment(Bmolgroup *molgroup, int n, char **strings)
Puts a set of strings and time in the main comment of a molecule group.
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.
Bmolgroup * read_molecule(const char *filename, const char *select, const char *paramfile)
The generalized function for reading molecular files.
Header file for option handlers.
Header file for reading reflection files.
Utilities for timing functions.
double timer_start()
Starts timer and prints the time.
Header file for general utilities.
Vector3< double > vector3()
double timer_report(double lasttime)
Reports the time elapsed since a given time.
int write_molecule(char *filename, Bmolgroup *molgroup)
Writes a molecule group.
int molgroup_rename(Bmolgroup *molgroup, char first_name)
Renames molecules.
int option_kill(Boption *option)
Deallocates a linked list of option structures.
int main(int argc, char **argv)
Bstring * string_add(Bstring **list, const char *string)
Adds a string to a linked list.
Library routines used for atomic coordinates.