本文整理汇总了Python中Bio.PDB.Entity.Entity.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python Entity.__init__方法的具体用法?Python Entity.__init__怎么用?Python Entity.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Bio.PDB.Entity.Entity
的用法示例。
在下文中一共展示了Entity.__init__方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from Bio.PDB.Entity import Entity [as 别名]
# 或者: from Bio.PDB.Entity.Entity import __init__ [as 别名]
def __init__(self,id):
Entity.__init__(self, id)
#Store the SEQRES protein. Whole its SEQRES will be record it
self._SeqRes={}
self._iSeq = -1
#Store chain and its residue number. Because this value is very used. Thus, this dictionary help to get it
self._ChainNumRes = {}
示例2: __init__
# 需要导入模块: from Bio.PDB.Entity import Entity [as 别名]
# 或者: from Bio.PDB.Entity.Entity import __init__ [as 别名]
def __init__(self, id, resname, segid):
"""Initialize the class."""
self.level = "R"
self.disordered = 0
self.resname = resname
self.segid = segid
Entity.__init__(self, id)
示例3: __init__
# 需要导入模块: from Bio.PDB.Entity import Entity [as 别名]
# 或者: from Bio.PDB.Entity.Entity import __init__ [as 别名]
def __init__(self, id):
self.level="I"
self.id=id
self.neighbors = {}
self.uniq_pairs = []
Entity.__init__(self, id)
示例4: __init__
# 需要导入模块: from Bio.PDB.Entity import Entity [as 别名]
# 或者: from Bio.PDB.Entity.Entity import __init__ [as 别名]
def __init__(self, id, serial_num=None):
"""
Arguments:
o id - int
o serial_num - int
"""
self.level = "M"
if serial_num is None:
self.serial_num = id
else:
self.serial_num = serial_num
Entity.__init__(self, id)
示例5: __init__
# 需要导入模块: from Bio.PDB.Entity import Entity [as 别名]
# 或者: from Bio.PDB.Entity.Entity import __init__ [as 别名]
def __init__(self, id, serial_num=None):
"""Initialize.
Arguments:
- id - int
- serial_num - int
"""
self.level = "M"
if serial_num is None:
self.serial_num = id
else:
self.serial_num = serial_num
Entity.__init__(self, id)
示例6: __init__
# 需要导入模块: from Bio.PDB.Entity import Entity [as 别名]
# 或者: from Bio.PDB.Entity.Entity import __init__ [as 别名]
def __init__(self, id):
self.level = "S"
Entity.__init__(self, id)
示例7: __init__
# 需要导入模块: from Bio.PDB.Entity import Entity [as 别名]
# 或者: from Bio.PDB.Entity.Entity import __init__ [as 别名]
def __init__(self, id, resname, segid):
self.level="R"
self.disordered=0
self.resname=resname
self.segid=segid
Entity.__init__(self, id)
示例8: __init__
# 需要导入模块: from Bio.PDB.Entity import Entity [as 别名]
# 或者: from Bio.PDB.Entity.Entity import __init__ [as 别名]
def __init__(self,id):
Entity.__init__(self, id)
self._SeqRes = None
self._SSBonds = None
self._structureErrors = None
示例9: __init__
# 需要导入模块: from Bio.PDB.Entity import Entity [as 别名]
# 或者: from Bio.PDB.Entity.Entity import __init__ [as 别名]
def __init__(self, id):
"""Initialize the class."""
self.level = "S"
Entity.__init__(self, id)
示例10: __init__
# 需要导入模块: from Bio.PDB.Entity import Entity [as 别名]
# 或者: from Bio.PDB.Entity.Entity import __init__ [as 别名]
def __init__(self,id):
Entity.__init__(self, id)
#Store the structure errors.
self._dicStructureErrors= {}
示例11: __init__
# 需要导入模块: from Bio.PDB.Entity import Entity [as 别名]
# 或者: from Bio.PDB.Entity.Entity import __init__ [as 别名]
def __init__(self,id):
Entity.__init__(self, id)
#Store the SSBONDS protein.
self._SSBonds= {}