 |
Bsoft
2.1.0
Bernard's software package
|
Go to the documentation of this file.
22 "Usage: balpha [options] [input.pdb] output.pdb",
23 "----------------------------------------------",
24 "Creates and manipulates alpha helices.",
27 "-create 12 Create an alpha helix of a given length.",
28 "-helix 213,236 Set residues to a helix (all molecules).",
29 "-find Find a helix center and orientation (only for a single helix).",
30 "-set Set a helix to the standard orientation (only for a single helix).",
31 "-consolidate Consolidate a set of helices to eliminate redundancy.",
34 "-verbose 7 Verbosity of output.",
39 int main(
int argc,
char **argv)
43 int helix_start(0), helix_end(0);
44 int find_orientation(0);
45 int set_orientation(0);
53 for ( curropt = option; curropt; curropt = curropt->
next ) {
54 if ( curropt->
tag ==
"create" )
56 cerr <<
"-create: The desired helix length must be specified!" << endl;
57 if ( curropt->
tag ==
"helix" )
58 if ( curropt->
values(helix_start, helix_end) < 2 )
59 cerr <<
"-helix: Both the start and end of the helix must be specified!" << endl;
60 if ( curropt->
tag ==
"find" )
62 if ( curropt->
tag ==
"set" )
63 find_orientation = set_orientation = 1;
64 if ( curropt->
tag ==
"consolidate" )
73 Bstring filename(argv[optind++]);
75 if ( create_number > 0 )
81 cerr <<
"Error: No molecules created or read!" << endl;
90 if ( find_orientation )
97 if ( optind < argc ) {
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.
Bmolgroup * molgroup_consolidate_alpha(Bmolgroup *molgroup)
Cluster a set of alpha helices to consolidate helices.
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.
int molgroup_find_helical_axes(Bmolgroup *molgroup)
Calculates the centers and orientations of all alpha helices.
long values(T1 &v1, T2 &v2)
Header file for reading reflection files.
Utilities for timing functions.
Vector3< double > mol_find_alpha_orientation(Bmolecule *mol, int set_std)
Calculates the orientation of an alpha helix.
double timer_start()
Starts timer and prints the time.
Header file for general utilities.
int main(int argc, char **argv)
double timer_report(double lasttime)
Reports the time elapsed since a given time.
Header for functions to make and analyze alpha helices.
int molgroup_set_alpha_helix(Bmolgroup *molgroup, int helix_start, int helix_end)
Sets a residue range to an alpha helix in all molecules.
int write_molecule(char *filename, Bmolgroup *molgroup)
Writes a molecule group.
int option_kill(Boption *option)
Deallocates a linked list of option structures.
Bmolgroup * molgroup_generate_alpha_helix(int length)
Generates an alpha helix of the desired length.
Library routines used for atomic coordinates.