本文整理汇总了Python中General.store_Residues方法的典型用法代码示例。如果您正苦于以下问题:Python General.store_Residues方法的具体用法?Python General.store_Residues怎么用?Python General.store_Residues使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类General
的用法示例。
在下文中一共展示了General.store_Residues方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: Btn_StartGetCleft_Clicked
# 需要导入模块: import General [as 别名]
# 或者: from General import store_Residues [as 别名]
def Btn_StartGetCleft_Clicked(self):
if self.top.ValidateProcessRunning():
return
if self.Validate_Fields():
self.DisplayMessage(" ERROR: Not all fields are validated.", 2)
return
try:
TmpFile = os.path.join(self.top.GetCleftProject_Dir,'tmp.pdb')
if self.PyMOL:
if cmd.count_atoms(self.defaultOption.get()) == 0:
self.DisplayMessage(" ERROR: No atoms found for object/selection '" + self.defaultOption.get() + "'", 2)
return
cmd.save(TmpFile, self.defaultOption.get(), 1)
except:
self.DisplayMessage(" ERROR: Could not save the object/selection '" + self.defaultOption.get() + "'", 2)
return
if self.ResiduValue.get() != '':
# with HETATM groups
if General.store_Residues(self.listResidues, TmpFile, 1) == -1:
self.DisplayMessage(" ERROR: Could not retrieve list of residues for object/selection '" + self.defaultOption.get() + "'", 2)
return
if self.listResidues.count(self.ResiduValue.get()) == 0:
self.DisplayMessage(" ERROR: The residue entered could not be found in the object/selection '" + self.defaultOption.get() + "'", 2)
self.EntryResidu.config(bg=self.top.Color_Red)
return
self.EntryResidu.config(bg=self.top.Color_White)
self.DisplayMessage(" Analyzing clefts for object/selection '" + self.defaultOption.get() + "'...", 0)
#TmpFile = '/Users/francisgaudreault/1stp.pdb'
Command_Line = '"' + self.top.GetCleftExecutable + '" -p "' + TmpFile + '"' + self.Get_Arguments()
# Clear temporary clefts
self.Btn_Clear_Clicked()
self.top.ProcessError = False
self.top.ProcessRunning = True
self.GetCleftRunning(True)
# Run GetCleft
StartRun = Start(self, self.queue, Command_Line)