![]() |
Bsoft 2.1.4
Bernard's software package
|
Header file for functions to generate and analyze dot plots. More...
Functions | |
long | seq_pair_align (Bmolecule *mol1, Bmolecule *mol2, double gapopen, double gapextend, Bresidue_matrix *simat) |
Aligns two sequences. More... | |
int | seq_find_best_offset (Bmolecule *mol1, Bmolecule *mol2, long &nres, Bresidue_matrix *simat) |
Finds the best offset for aligning two sequences without gaps. More... | |
Matrix | seq_dot_plot (Bmolecule *mol1, Bmolecule *mol2, Bresidue_matrix *simat) |
Calculates a dot plot for two sequences. More... | |
Matrix | seq_dot_plot_mov_avg (Matrix dot_plot, int window) |
Calculates a moving average along the diagonals of a dot plot. More... | |
int | seq_dot_plot_interpret (Matrix dot_plot) |
Finds the row and column maxima in a dot plot. More... | |
double | seq_dot_plot_best_segments (Matrix dot_plot) |
Finding the best segments in a dot plot. More... | |
int | seq_show_segments (Bmolecule *mol1, Bmolecule *mol2, double threshold, Matrix dot_plot) |
Finds the best offset for aligning two sequences without gaps. More... | |
Header file for functions to generate and analyze dot plots.
Matrix seq_dot_plot | ( | Bmolecule * | mol1, |
Bmolecule * | mol2, | ||
Bresidue_matrix * | simat | ||
) |
Calculates a dot plot for two sequences.
*mol1 | first molecule structure. |
*mol2 | second molecule structure. |
*simat | residue similarity matrix. |
double seq_dot_plot_best_segments | ( | Matrix | dot_plot | ) |
Finding the best segments in a dot plot.
dot_plot | dot plot matrix. |
int seq_dot_plot_interpret | ( | Matrix | dot_plot | ) |
Finds the row and column maxima in a dot plot.
dot_plot | dot plot matrix. |
Calculates a moving average along the diagonals of a dot plot.
dot_plot | dot plot matrix. |
window | moving average window size. |
int seq_find_best_offset | ( | Bmolecule * | mol1, |
Bmolecule * | mol2, | ||
long & | nres, | ||
Bresidue_matrix * | simat | ||
) |
Finds the best offset for aligning two sequences without gaps.
*mol1 | first molecule structure. |
*mol2 | second molecule structure. |
*nres | number of similar residues in best diagonal. |
*simat | residue similarity matrix. |
The best offset is determined as the diagonal of a dot plot with the highest value.
long seq_pair_align | ( | Bmolecule * | mol1, |
Bmolecule * | mol2, | ||
double | gapopen, | ||
double | gapextend, | ||
Bresidue_matrix * | simat | ||
) |
Aligns two sequences.
*mol1 | first molecule structure. |
*mol2 | second molecule structure. |
gapopen | gap opening penalty. |
gapextend | gap extension penalty. |
*simat | residue similarity matrix. |
Two sequences are aligned and returned in the sequence strings of the molecule structures.
Finds the best offset for aligning two sequences without gaps.
*mol1 | first molecule structure. |
*mol2 | second molecule structure. |
threshold | threshold to identify segments. |
dot_plot | dot plot. |
The best offset is determined as the diagonal of a dot plot with the highest value.