 |
Bsoft
2.1.0
Bernard's software package
|
Go to the documentation of this file.
22 "Usage: bparam [options] param.star",
23 "----------------------------------",
24 "Manipulate molecular parameter files.",
27 "-select CA Atom selection (default all).",
28 "-bonds List all bond lengths.",
29 "-angles List all angles.",
30 "-length 1.85 Length to define bonds.",
33 "-verbose 7 Verbosity of output.",
34 "-elements Use elements as identifiers rather than atom names.",
37 "-from input.pdb Extract parameters from an atomic coordinate file.",
38 "-parameters parm.star Molecular parameter file (default atom_prop.star)",
41 "-output param.star Output parameter file.",
46 int main(
int argc,
char **argv)
52 double length_cutoff(0);
61 for ( curropt = option; curropt; curropt = curropt->
next ) {
62 if ( curropt->
tag ==
"select" ) {
63 atom_select = curropt->
value;
64 if ( atom_select.
length() < 1 )
65 cerr <<
"-select: A selection must be specified!" << endl;
67 if ( curropt->
tag ==
"bonds" ) show_bonds = 1;
68 if ( curropt->
tag ==
"angles" ) show_angles = 1;
69 if ( curropt->
tag ==
"length" )
71 if ( curropt->
tag ==
"elements" ) elements = 1;
72 if ( curropt->
tag ==
"from" )
74 if ( curropt->
tag ==
"parameters" )
76 if ( curropt->
tag ==
"output" )
86 if ( optind < argc ) {
87 filename = argv[optind];
90 cerr <<
"Error: Parameter file " << argv[optind] <<
" not read!" << endl;
99 cerr <<
"Error: Coordinate file not read!" << endl;
103 if ( length_cutoff ) {
105 molgroup->
bond = NULL;
A class for a command line input option.
int molgroup_kill(Bmolgroup *molgroup)
Destroys a molecule group.
int md_kill(Bmd *md)
Deallocates a molecular dynamics structure.
int bexit(int value)
Exit function for cleanup and debugging.
Header to read and write molecular dynamics parameters in STAR format.
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 for functions to extract parameters from coordinate files.
Header file for reading reflection files.
Utilities for timing functions.
double timer_start()
Starts timer and prints the time.
Header file for general utilities.
Bmd * md_calculate_parameters(Bmolgroup *molgroup, int elements, int show_bond, int show_angle)
Calculates atomic parameters from molecule groups.
double timer_report(double lasttime)
Reports the time elapsed since a given time.
int main(int argc, char **argv)
int option_kill(Boption *option)
Deallocates a linked list of option structures.
Bbond * molgroup_bond_list_generate(Bmolgroup *molgroup, double maxlength, int wrap)
Generates a bond list based on atom separation.
int bond_kill(Bbond *bond)
Dealocates a list of bonds.
Bmd * read_md_parameters(Bstring &filename)
Reading molecular dynamics parameters from STAR files.
int write_md_parameters(Bstring &filename, Bmd *md)
Writing molecular dynamics parameters to a STAR file.