本文整理汇总了Python中Bio.Emboss.Applications.WaterCommandline.similarity方法的典型用法代码示例。如果您正苦于以下问题:Python WaterCommandline.similarity方法的具体用法?Python WaterCommandline.similarity怎么用?Python WaterCommandline.similarity使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Bio.Emboss.Applications.WaterCommandline
的用法示例。
在下文中一共展示了WaterCommandline.similarity方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: GetExec
# 需要导入模块: from Bio.Emboss.Applications import WaterCommandline [as 别名]
# 或者: from Bio.Emboss.Applications.WaterCommandline import similarity [as 别名]
def GetExec(self, optList, frame):
# Respond to the "embossn" type command.
self.frame = frame
plugin_exe = r"C:/mEMBOSS/water.exe"
self.outfile = r"C:\Users\francis\Documents\Monguis\BioGui\plugins\water.txt"
self.outtype = "fasta"
cline = WaterCommandline(plugin_exe, asequence=str(self.frame.paramBoxes[1].GetValue()), bsequence=str(self.frame.paramBoxes[3].GetValue()))
cline.outfile = self.outfile
cline.gapopen = self.param[7].GetValue()
cline.gapextend = self.param[9].GetValue()
if self.param[10].GetValue():
cline.similarity = True
else:
cline.similarity = False
if self.frame.abet=="AA":
cline.snucleotide = True
cline.sprotein = False
elif self.frame.abet=="DNA" or self.frame.abet=="RNA":
cline.snucleotide = True
cline.sprotein = False
if self.frame.options:
t = self.boxList[3].GetValue()
if t != '':
cline.datafile = str(t)
return str(cline)