Private Sub Form_Load()
Dim A As String
Dim B As String
A = InputBox("请输入碱基序列:", "输入!")
A = UCase(A) '变成大写
Rem 碱基互补配对
A = Replace(A, "C", "1")
A = Replace(A, "T", "2")
A = Replace(A, "G", "3")
A = Replace(A, "A", "4")
A = Replace(A, "1", "G")
A = Replace(A, "2", "A")
A = Replace(A, "3", "C")
A = Replace(A, "4", "T")
Rem 反向
For i = Len(A) - 1 To 1 Step -1
B = B & Mid(A, i, 1)
Next i
Rem 输出
Call InputBox("反向碱基序列为:", "输出反向碱基序列!", B)
End
End Sub
------------------------------
复制上述代码至代码框运行看下效果吧,有问题再说.
非常感谢,能否给出参考代码?谢谢!
追答不会VB。。。 给你C的代码看看吧。。。
int i,n;
char a[1000]; *假设有1000长度*
gets(a); *输入序列*
n=strlen(a); *计算序列的长度*
for(i=0;i=0;i--) *反向输出*
printf("%c",a[i]);
}
VB如何实现反向互补序列,如将CGCCAGGGTTTTCCCAGTCACGAC 转换为...
Private Sub Form_Load()Dim A As String Dim B As String A = InputBox("请输入碱基序列:", "输入!")A = UCase(A) '变成大写 Rem 碱基互补配对 A = Replace(A, "C", "1")A = Replace(A, "T", "2")A = Replace(A, "G", "3")A = Replace(A, "A", "4")A = ...
大肠杆菌PUC19的质粒碱基序列
这是它完整的序列,你可以用软件分析一下,如omiga2.0。我查了一下,可以用BamHI,EcoRI,HindIII,KpnI,PstI,SalI,SmaI,SphI,和XbaI。
请高手给该段序列加酶切位点MluI、T7启动子序列和上游引物(方向:5...
acgcgt AATTCTAATACGACTCACTATAGGG GAAAATAGTGCCCAAAGAGT MluI T7 5‘特异序列 另外,酶切位点前最好加上保护碱基,例如"GC".
reporter gene
CTACACTCGGATATTTGATATGTGGATTTCGAGTCGTCTTAATGTATAGATTTGAAGAAGAGCTGTTTTT ACGATCCCTTCAGGATTACAAAATTCAAAGTGCGTTGCTAGTACCAACCCTATTTTCATTCTTCGCCAAA AGCACTCTGATTGACAAATACGATTTATCTAATTTACACGAAATTGCTTCTGGGGGCGCACCTCTTTCGA AAGAAGTCGGGGAAGCGGTTGCAAAACGCTTCCATCTTCCAGGGATACGACAAGGATATGGGCTCACTGA G...
如何获得Taq聚合酶和绿色荧光蛋白的基因
Taq聚合酶的基因如下:>gi|1526546|dbj|D87664.1| Thermus aquaticus DNA for DNA polymerase family X, aminopeptidase T, QAH\/OAS sulfhydrylase, complete cds GAGCTCCTCCAGGGTGTTCTGGCCGTCGGAGTAGGTGGAGTGGACCTGGAGGTCCCCCTTTACCTGGGAA AGCTCCAGAAGCCGGGGAAGGGGCCCCCCTCTGGGCCGCCTCAATCTCCCCGTGGTCCT...