original_docstring: Create a new Chain and add it to the Topology.
  
          Parameters
          ----------
          id : string=None
              An optional identifier for the chain.  If this is omitted, an id is
              generated based on the chain index.
  
          Returns
          -------
          Chain
               the newly created Chain
          
docstring: Create a new Chain and add it to the Topology.
  Parameters
  
  id : string=None
  An optional identifier for the chain.  If this is omitted, an id is
  generated based on the chain index.
  
  Returns
  
  Chain
  the newly created Chain
docstring_tokens: Create a new Chain and add it to the Topology . Parameters id : string = None An optional identifier for the chain . If this is omitted an id is generated based on the chain index . Returns Chain the newly created Chain
code: def addChain(self, id=None):
          """Create a new Chain and add it to the Topology.
  
          Parameters
          ----------
          id : string=None
              An optional identifier for the chain.  If this is omitted, an id is
              generated based on the chain index.
  
          Returns
          -------
          Chain
               the newly created Chain
          """
          if id is None:
              id = str(len(self._chains)+1)
          chain = Chain(len(self._chains), self, id)
          self._chains.append(chain)
          return chain
code_tokens: def addChain ( self , id = None ) : if id is None : id = str ( len ( self . _chains ) + 1 ) chain = Chain ( len ( self . _chains ) , self , id ) self . _chains . append ( chain ) return chain
short_docstring: Create a new Chain and add it to the Topology.
short_docstring_tokens: Create a new Chain and add it to the Topology .
comment: """Create a new Chain and add it to the Topology.
  
          Parameters
          ----------
          id : string=None
              An optional identifier for the chain.  If this is omitted, an id is
              generated based on the chain index.
  
          Returns
          -------
          Chain
               the newly created Chain
          """