Protool/mutate.py
def fast_mutatetoGLY(self,residue):
        """Mutate to Gly by removing all side chain atoms"""
        this_operation=[]
        for atom in self.PI.residues[residue]:
            this_operation.append(['delete',atom,self.PI.atoms[atom]])
            if not self.PI.is_backbone(atom):
                self.PI.remove_atom(atom)
            else:
                self.PI.atoms[atom]['RESNAME']='GLY'
                this_operation.append(['add',atom,self.PI.atoms[atom]])
        return this_operation
Mutate to Gly by removing all side chain atoms
Mutate to Gly by removing all side chain atoms
Mutate to Gly by removing all side chain atoms
def fast_mutatetoGLY(self,residue):
        this_operation=[]
        for atom in self.PI.residues[residue]:
            this_operation.append(['delete',atom,self.PI.atoms[atom]])
            if not self.PI.is_backbone(atom):
                self.PI.remove_atom(atom)
            else:
                self.PI.atoms[atom]['RESNAME']='GLY'
                this_operation.append(['add',atom,self.PI.atoms[atom]])
        return this_operation
def fast_mutatetoGLY ( self , residue ) : this_operation = [ ] for atom in self . PI . residues [ residue ] : this_operation . append ( [ 'delete' , atom , self . PI . atoms [ atom ] ] ) if not self . PI . is_backbone ( atom ) : self . PI . remove_atom ( atom ) else : self . PI . atoms [ atom ] [ 'RESNAME' ] = 'GLY' this_operation . append ( [ 'add' , atom , self . PI . atoms [ atom ] ] ) return this_operation
Mutate to Gly by removing all side chain atoms
Mutate to Gly by removing all side chain atoms
"""Mutate to Gly by removing all side chain atoms"""
self
residue