本文整理汇总了Python中_paml.Paml.run方法的典型用法代码示例。如果您正苦于以下问题:Python Paml.run方法的具体用法?Python Paml.run怎么用?Python Paml.run使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类_paml.Paml
的用法示例。
在下文中一共展示了Paml.run方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: run
# 需要导入模块: from _paml import Paml [as 别名]
# 或者: from _paml.Paml import run [as 别名]
def run(self, ctl_file = None, verbose = False, command = "yn00",
parse = True):
Paml.run(self, ctl_file, verbose, command)
if parse:
results = read(self.out_file)
else:
results = None
return results
示例2: run
# 需要导入模块: from _paml import Paml [as 别名]
# 或者: from _paml.Paml import run [as 别名]
def run(self, ctl_file = None, verbose = False, command = "codeml",
parse = True):
"""Run codeml using the current configuration and then parse the results.
Return a process signal so the user can determine if
the execution was successful (return code 0 is successful, -N
indicates a failure). The arguments may be passed as either
absolute or relative paths, despite the fact that CODEML
requires relative paths.
"""
if self.tree is None:
raise ValueError, "Tree file not specified."
if not os.path.exists(self.tree):
raise IOError, "The specified tree file does not exist."
Paml.run(self, ctl_file, verbose, command)
if parse:
results = read(self.out_file)
else:
results = None
return results