Python-44 用Biopython计算DNA/RNA的GC含量和分子量 2020-08-25

具体实现与解释如下:

from Bio.SeqUtils import GC
dna=("GCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCTGTTATGGGTCGTTGGAAGGGTGGTCGTGCT")
dna1=("GACC")
CONTENT= GC(dna) #计算GC含量
print("GC content is " )
print( CONTENT)


from Bio.SeqUtils import molecular_weight#计算分子量
print("Molecular weight is : " )
print(  molecular_weight(dna1))

得到的结果为:
GC content is
77.77777777777777
Molecular weight is :
1238.7912999999999

image.png

你可能感兴趣的:(Python-44 用Biopython计算DNA/RNA的GC含量和分子量 2020-08-25)