original_docstring: Create a new Residue and add it to the Topology.
  
          Parameters
          ----------
          name : string
              The name of the residue to add
          chain : Chain
              The Chain to add it to
          id : string=None
              An optional identifier for the residue.  If this is omitted, an id
              is generated based on the residue index.
          insertionCode: string=''
              An optional insertion code for the residue.
  
          Returns
          -------
          Residue
               the newly created Residue
          
docstring: Create a new Residue and add it to the Topology.
  Parameters
  
  name : string
  The name of the residue to add
  chain : Chain
  The Chain to add it to
  id : string=None
  An optional identifier for the residue.  If this is omitted, an id
  is generated based on the residue index.
  insertionCode: string=''
  An optional insertion code for the residue.
  
  Returns
  
  Residue
  the newly created Residue
docstring_tokens: Create a new Residue and add it to the Topology . Parameters name : string The name of the residue to add chain : Chain The Chain to add it to id : string = None An optional identifier for the residue . If this is omitted an id is generated based on the residue index . insertionCode : string = ' ' An optional insertion code for the residue . Returns Residue the newly created Residue
code: def addResidue(self, name, chain, id=None, insertionCode=''):
          """Create a new Residue and add it to the Topology.
  
          Parameters
          ----------
          name : string
              The name of the residue to add
          chain : Chain
              The Chain to add it to
          id : string=None
              An optional identifier for the residue.  If this is omitted, an id
              is generated based on the residue index.
          insertionCode: string=''
              An optional insertion code for the residue.
  
          Returns
          -------
          Residue
               the newly created Residue
          """
          if len(chain._residues) > 0 and self._numResidues != chain._residues[-1].index+1:
              raise ValueError('All residues within a chain must be contiguous')
          if id is None:
              id = str(self._numResidues+1)
          residue = Residue(name, self._numResidues, chain, id, insertionCode)
          self._numResidues += 1
          chain._residues.append(residue)
          return residue
code_tokens: def addResidue ( self , name , chain , id = None , insertionCode = '' ) : if len ( chain . _residues ) > 0 and self . _numResidues != chain . _residues [ - 1 ] . index + 1 : raise ValueError ( 'All residues within a chain must be contiguous' ) if id is None : id = str ( self . _numResidues + 1 ) residue = Residue ( name , self . _numResidues , chain , id , insertionCode ) self . _numResidues += 1 chain . _residues . append ( residue ) return residue
short_docstring: Create a new Residue and add it to the Topology.
short_docstring_tokens: Create a new Residue and add it to the Topology .
comment: """Create a new Residue and add it to the Topology.
  
          Parameters
          ----------
          name : string
              The name of the residue to add
          chain : Chain
              The Chain to add it to
          id : string=None
              An optional identifier for the residue.  If this is omitted, an id
              is generated based on the residue index.
          insertionCode: string=''
              An optional insertion code for the residue.
  
          Returns
          -------
          Residue
               the newly created Residue
          """