Protool/mutate.py
def fast_mutatetoALA(self,residue):
        """Mutate to Ala by removing all atoms that are not backbone or CB"""
        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) and not self.PI.is_CB(atom):
                self.PI.remove_atom(atom)
            else:
                self.PI.atoms[atom]['RESNAME']='ALA'
                this_operation.append(['add',atom,self.PI.atoms[atom]])
        return this_operation
Mutate to Ala by removing all atoms that are not backbone or CB
Mutate to Ala by removing all atoms that are not backbone or CB
Mutate to Ala by removing all atoms that are not backbone or CB
def fast_mutatetoALA(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) and not self.PI.is_CB(atom):
                self.PI.remove_atom(atom)
            else:
                self.PI.atoms[atom]['RESNAME']='ALA'
                this_operation.append(['add',atom,self.PI.atoms[atom]])
        return this_operation
def fast_mutatetoALA ( 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 ) and not self . PI . is_CB ( atom ) : self . PI . remove_atom ( atom ) else : self . PI . atoms [ atom ] [ 'RESNAME' ] = 'ALA' this_operation . append ( [ 'add' , atom , self . PI . atoms [ atom ] ] ) return this_operation
Mutate to Ala by removing all atoms that are not backbone or CB
Mutate to Ala by removing all atoms that are not backbone or CB
"""Mutate to Ala by removing all atoms that are not backbone or CB"""
self
residue