本文整理汇总了Python中Bio.PDB.Entity.Entity类的典型用法代码示例。如果您正苦于以下问题:Python Entity类的具体用法?Python Entity怎么用?Python Entity使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了Entity类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
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)
示例2: __init__
def __init__(self, id):
self.level="I"
self.id=id
self.neighbors = {}
self.uniq_pairs = []
Entity.__init__(self, id)
示例3: __init__
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 = {}
示例4: add
def add(self, atom):
"""Add an Atom object.
Checks for adding duplicate atoms, and raises a
PDBConstructionException if so.
"""
atom_id=atom.get_id()
if self.has_id(atom_id):
raise PDBConstructionException( \
"Atom %s defined twice in residue %s" % (atom_id, self))
Entity.add(self, atom)
示例5: __init__
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)
示例6: __init__
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)
示例7: __delitem__
def __delitem__(self, id):
"""
Arguments:
o id - (string, int, string) or int
"""
id=self._translate_id(id)
return Entity.__delitem__(self, id)
示例8: __contains__
def __contains__(self, id):
"""True if a residue with given id is present in this chain.
Arguments:
o id - (string, int, string) or int
"""
id=self._translate_id(id)
return Entity.__contains__(self, id)
示例9: __getitem__
def __getitem__(self, id):
"""Return the residue with given id.
The id of a residue is (hetero flag, sequence identifier, insertion code).
If id is an int, it is translated to (" ", id, " ") by the _translate_id
method.
Arguments:
o id - (string, int, string) or int
"""
id=self._translate_id(id)
return Entity.__getitem__(self, id)
示例10: __init__
def __init__(self, id):
self.level = "S"
Entity.__init__(self, id)
示例11: __init__
def __init__(self, id, resname, segid):
self.level="R"
self.disordered=0
self.resname=resname
self.segid=segid
Entity.__init__(self, id)
示例12: __init__
def __init__(self,id):
Entity.__init__(self, id)
self._SeqRes = None
self._SSBonds = None
self._structureErrors = None
示例13: __init__
def __init__(self, id):
"""Initialize the class."""
self.level = "S"
Entity.__init__(self, id)
示例14: __init__
def __init__(self,id):
Entity.__init__(self, id)
#Store the structure errors.
self._dicStructureErrors= {}
示例15: __init__
def __init__(self,id):
Entity.__init__(self, id)
#Store the SSBONDS protein.
self._SSBonds= {}