For my most recent project at U of C, I had to write some script to find places where DNA and RNA might bind.
DNA (and RNA) will bind when 2 strands have a complementary sequence. A binds with T, T bind with A, G binds with C and C binds with G.
Basically the same thing happens with RNA.
Here are 2 functions that will quickly find the complementary sequence for DNA and RNA:
Public Function FlipRnaCode(ByVal sEnd As String) As String sEnd = Replace(sEnd, "U", "a", 1, -1, CompareMethod.Binary) sEnd = Replace(sEnd, "A", "u", 1, -1, CompareMethod.Binary) sEnd = Replace(sEnd, "G", "c", 1, -1, CompareMethod.Binary) sEnd = Replace(sEnd, "C", "g", 1, -1, CompareMethod.Binary) sEnd = UCase(sEnd) Return sEnd End Function Public Function FlipDnaCode(ByVal sEnd As String) As String sEnd = Replace(sEnd, "T", "a", 1, -1, CompareMethod.Binary) sEnd = Replace(sEnd, "A", "t", 1, -1, CompareMethod.Binary) sEnd = Replace(sEnd, "G", "c", 1, -1, CompareMethod.Binary) sEnd = Replace(sEnd, "C", "g", 1, -1, CompareMethod.Binary) sEnd = UCase(sEnd) Return sEnd End Function
Remember Me
Powered by: newtelligence dasBlog 1.9.6264.0
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.
E-mail
Theme design by Jelle Druyts