Stores information about an RNA molecule: the sequence string containing bases in a sequence, and the dot bracket structure, which contains information about how the bases pair up.
Reads the input sequence file and uses the ViennaRNA package to compute the dot bracket structure for the RNA sequence.
Reads the input file containing the RNA sequence. Runs the RNAfold command.
Parameters: (none) Return: FILE* - the file stream variable.Extracts the RNA sequence and the dot bracket structure from the output of the getRnaFoldOutput() function and creates a struct instance to store that information.
Calls getSequenceAndDotStructure(FILE*) and returns the struct instance.
Parameters: (none) Return: struct Sequence : the instance of the Sequence struct conataining the sequence string and the dot bracket structure.Takes an RNA sequence as input and calculates the maximum number of pairs that are possible such that there are no sharp turns or knots.
Computes the maximum number of matching base pairs in an RNA sequence using dynamic programming. The function updates a DP table based on valid RNA base pair matches (A-U, U-A, G-C, C-G).
Recursively reconstructs the matching base pairs from the DP table and stores them in a list of pairs.
Calls solve to fill the table, and makePairs to reconstruct the pairings, and finally outputs the results.
Produces a URL as an output to which the user can navigate to for visualizing the secondary structure of the RNA sequence.
Converts the dot bracket structure into an encoded form that can be passed over a URL.
Generates the URL for visualizing the secondary structure of the RNA.
calls the getURL(std::string, std:string) function that generates the URL.