Biopython
利用Biopython – Pairwise Alignment计算序列相似度
# Import librariesfrom Bio import pairwise2from Bio.Seq import Seq # Creating sample sequencesseq1 = Seq("TGTGACTA")seq2 = Seq("CATGGTCA") # Finding s ......
biopython Bio.Alphabet
参考:https://biopython.org/wiki/Alphabet 作用: 1. 记录序列的分子类型(DNA, RNA或蛋白质), 2. 在序列、alignment、motif等中声明预期的字符。 在Biopython 1.78及以后的版本中删除了Bio.Alphabet模块。 #old ......