RNA Folding simulation
|
RNA folding algorithm implementation. More...
Go to the source code of this file.
Functions | |
std::vector< std::vector< int > > | create_matrix (const std::string &rna_sequence, const int &minimal_loop_length=0) |
Function to create the DP matrix for RNA folding. More... | |
int | rna_score (const std::string &rna_sequence, const int &minimal_loop_length=0) |
Function to calculate number of bonds (theoretical) in the RNA. More... | |
void | traceback (const std::vector< std::vector< int >> &nm, const std::string &rna, std::vector< std::pair< int, int >> &fold, int i, int j) |
Function to traceback DP and get the bonds structure. More... | |
std::string | dot_write (const std::string &rna, const std::vector< std::pair< int, int >> &fold) |
Function to create the dot-bracket notation from the bonds. More... | |
void | dot_bracket_to_dot (const std::string &sequence, const std::string &structure) |
Creates a DOT script from the RNA sequence and structure and calls graphviz. More... | |
RNA folding algorithm implementation.
Definition in file rna_folding.hh.
std::vector<std::vector<int> > create_matrix | ( | const std::string & | rna_sequence, |
const int & | minimal_loop_length = 0 |
||
) |
Function to create the DP matrix for RNA folding.
rna_sequence |
Definition at line 22 of file rna_folding.hh.
void dot_bracket_to_dot | ( | const std::string & | sequence, |
const std::string & | structure | ||
) |
Creates a DOT script from the RNA sequence and structure and calls graphviz.
sequence | |
structure |
Definition at line 129 of file rna_folding.hh.
std::string dot_write | ( | const std::string & | rna, |
const std::vector< std::pair< int, int >> & | fold | ||
) |
Function to create the dot-bracket notation from the bonds.
rna | |
fold |
Definition at line 111 of file rna_folding.hh.
int rna_score | ( | const std::string & | rna_sequence, |
const int & | minimal_loop_length = 0 |
||
) |
Function to calculate number of bonds (theoretical) in the RNA.
rna_sequence | |
minimal_loop_length |
Definition at line 61 of file rna_folding.hh.
void traceback | ( | const std::vector< std::vector< int >> & | nm, |
const std::string & | rna, | ||
std::vector< std::pair< int, int >> & | fold, | ||
int | i, | ||
int | j | ||
) |
Function to traceback DP and get the bonds structure.
nm | |
rna | |
fold | |
i | |
j |
Definition at line 77 of file rna_folding.hh.