当前位置: 首页>>代码示例>>Python>>正文


Python Entity.Entity类代码示例

本文整理汇总了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)
开发者ID:HuttonICS,项目名称:biopython,代码行数:7,代码来源:Residue.py

示例2: __init__

    def __init__(self, id):
        self.level="I"
        self.id=id
        self.neighbors = {}
        self.uniq_pairs = []

        Entity.__init__(self, id)
开发者ID:aparente,项目名称:biopython,代码行数:7,代码来源:Interface.py

示例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 = {}
开发者ID:tmcalixto,项目名称:ContributeToBioPython,代码行数:7,代码来源:FcfrpPDBSeqRes.py

示例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)
开发者ID:BingW,项目名称:biopython,代码行数:11,代码来源:Residue.py

示例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)
开发者ID:BIGLabHYU,项目名称:biopython,代码行数:13,代码来源:Model.py

示例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)
开发者ID:kblin,项目名称:biopython,代码行数:15,代码来源:Model.py

示例7: __delitem__

 def __delitem__(self, id):
     """
     Arguments:
     o id - (string, int, string) or int
     """
     id=self._translate_id(id)
     return Entity.__delitem__(self, id)
开发者ID:Ambuj-UF,项目名称:ConCat-1.0,代码行数:7,代码来源:Chain.py

示例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)
开发者ID:Ambuj-UF,项目名称:ConCat-1.0,代码行数:8,代码来源:Chain.py

示例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)
开发者ID:Ambuj-UF,项目名称:ConCat-1.0,代码行数:12,代码来源:Chain.py

示例10: __init__

 def __init__(self, id):
     self.level = "S"
     Entity.__init__(self, id)
开发者ID:Benjamin-Lee,项目名称:biopython,代码行数:3,代码来源:Structure.py

示例11: __init__

 def __init__(self, id, resname, segid):
     self.level="R"
     self.disordered=0
     self.resname=resname
     self.segid=segid
     Entity.__init__(self, id)
开发者ID:BingW,项目名称:biopython,代码行数:6,代码来源:Residue.py

示例12: __init__

 def __init__(self,id):
     Entity.__init__(self, id)
     self._SeqRes = None
     self._SSBonds = None
     self._structureErrors = None
开发者ID:tmcalixto,项目名称:ContributeToBioPython,代码行数:5,代码来源:FcfrpEntity.py

示例13: __init__

 def __init__(self, id):
     """Initialize the class."""
     self.level = "S"
     Entity.__init__(self, id)
开发者ID:HuttonICS,项目名称:biopython,代码行数:4,代码来源:Structure.py

示例14: __init__

 def __init__(self,id):
     Entity.__init__(self, id)
     #Store the structure errors.
     self._dicStructureErrors= {}
开发者ID:tmcalixto,项目名称:ContributeToBioPython,代码行数:4,代码来源:FcfrpPDBErrors.py

示例15: __init__

 def __init__(self,id):
     Entity.__init__(self, id)
     #Store the SSBONDS protein.
     self._SSBonds= {}
开发者ID:tmcalixto,项目名称:ContributeToBioPython,代码行数:4,代码来源:FcfrpPDBSSBonds.py


注:本文中的Bio.PDB.Entity.Entity类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。