 |
Bsoft
2.1.0
Bernard's software package
|
Go to the documentation of this file.
22 "Usage: bcormut [options] input.pir output.pir",
23 "---------------------------------------------",
24 "Analyzes for correlated mutations in aligned protein sequences.",
25 "The -cutoff option must be used to do the correlated mutation analysis.",
26 "All sequence numbers and position numbers start at 1.",
27 "Sequence numbering is according to the input, including gaps.",
30 "-cutoff 0.3 Correlated mutations: cutoff to report.",
31 "-limit Limit output to reference sequence.",
34 "-verbose 7 Verbosity of output.",
35 "-datatype b Set the output image data type.",
36 "-reference HUMAN Reference sequence identifier (substring).",
39 "-properties file.star Property file (default = internal values).",
42 "-matrix file.mat Correlation coefficient matrix.",
43 "-image file.map Correlation coefficient matrix as an image.",
46 "bcormut -verbose 7 -cutoff 0.4 -image coeff.map -datatype byte seq.pir",
51 int main(
int argc,
char **argv)
68 for ( curropt = option; curropt; curropt = curropt->
next ) {
69 if ( curropt->
tag ==
"datatype" )
71 if ( curropt->
tag ==
"reference" ) {
72 refseq = curropt->
value;
74 cerr <<
"-reference: A reference sequence ID must be specified!" << endl;
76 if ( curropt->
tag ==
"limit" ) limit = 1;
77 if ( curropt->
tag ==
"cutoff" )
78 if ( ( cutoff = curropt->
value.
real() ) < 1e-10 )
79 cerr <<
"-cutoff: A cutoff must be specified!" << endl;
80 if ( curropt->
tag ==
"properties" )
82 if ( curropt->
tag ==
"matrix" )
84 if ( curropt->
tag ==
"image" )
92 Bstring filename(argv[optind++]);
95 cerr <<
"Error: No input file read!" << endl;
101 for ( i=j=0; i<molgroup->
maxlen; i++ )
105 cout <<
"Alignment positions flagged: " << j << endl;
A class for a command line input option.
int main(int argc, char **argv)
int molgroup_kill(Bmolgroup *molgroup)
Destroys 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.
long seq_limit(Bmolgroup *molgroup, Bstring &refseq)
Limits the selection to the reference sequence in an aligned set.
int write_img(const char *filename, Bimage *p, int compression)
General driver function to write multiple image formats.
Header file for reading reflection files.
General image parameter class.
Utilities for timing functions.
double timer_start()
Starts timer and prints the time.
Header file for general utilities.
Header file for sequence analysis functions.
double timer_report(double lasttime)
Reports the time elapsed since a given time.
Matrix seq_correlated_mutation(Bmolgroup *molgroup, Bstring &refseqid, double cutoff, Bstring &simfile)
Correlated mutation analysis of an alignment.
int write_molecule(char *filename, Bmolgroup *molgroup)
Writes a molecule group.
void change_type(char letter)
Get the data type indicated by a single letter code.
Header file for 2D and 3D image I/O.
int option_kill(Boption *option)
Deallocates a linked list of option structures.
void write(Bstring &filename)
DataType
Base data type specifier.