rnaconvert
Convert secondary structure of RNA sequence between bracket and matrix notations
Syntax
RNAStruct2 = rnaconvert(RNAStruct)
Input Arguments
RNAStruct | Secondary structure of an RNA sequence represented by either:
Tip Use the |
Output Arguments
RNAStruct2 | Secondary structure of an RNA sequence represented by either:
|
Description
returns RNAStruct2 = rnaconvert(RNAStruct)RNAStruct2,
the secondary structure of an RNA sequence, in matrix notation (if RNAStruct is
in bracket notation), or in bracket notation (if RNAStruct is
in matrix notation).
Examples
Create a character vector representing a secondary structure of an RNA sequence in bracket notation.
Bracket = '(((..((((.......)))).((.....)).))).';Convert the secondary structure to a connectivity matrix representation.
Matrix = rnaconvert(Bracket);
Create a connectivity matrix representing a secondary structure of an RNA sequence.
Matrix2 = zeros(12); Matrix2(1,12) = 1; Matrix2(2,11) = 1; Matrix2(3,10) = 1; Matrix2(4,9) = 1;Convert the secondary structure to bracket notation.
Bracket2 = rnaconvert(Matrix2) Bracket2 = ((((....))))
Version History
Introduced in R2007b