Protool/structure.py
def remove_residue(self,unique_identifier,update=True):
        """Remove a residue. This includes deleted all atoms in the residue"""
        if not self.residues.has_key(unique_identifier):
            raise ResidueNotFoundError(unique_identifier)
        for atom in self.residues[unique_identifier]:
            self.remove_atom(atom,update=False)
        if update:
            self.Update()
        return
Remove a residue. This includes deleted all atoms in the residue
Remove a residue. This includes deleted all atoms in the residue
Remove a residue . This includes deleted all atoms in the residue
def remove_residue(self,unique_identifier,update=True):
        if not self.residues.has_key(unique_identifier):
            raise ResidueNotFoundError(unique_identifier)
        for atom in self.residues[unique_identifier]:
            self.remove_atom(atom,update=False)
        if update:
            self.Update()
        return
def remove_residue ( self , unique_identifier , update = True ) : if not self . residues . has_key ( unique_identifier ) : raise ResidueNotFoundError ( unique_identifier ) for atom in self . residues [ unique_identifier ] : self . remove_atom ( atom , update = False ) if update : self . Update ( ) return
Remove a residue.
Remove a residue .
"""Remove a residue. This includes deleted all atoms in the residue"""
self
unique_identifier
update