PEATDB/Mutate.py
def suggest_name(self,parent,aa_number,newresidue,org_res,ChainID):
        
        """Suggest a name for new mutation"""
        
        if not parent:
            return '?+?#?'
        if not newresidue:
            newresidue='?'
        
        if not org_res:
            org_res='X'
        else:
            import DNAtool.mutation
            if DNAtool.mutation.three_to_one.has_key(org_res):
                org_res=DNAtool.mutation.three_to_one[org_res]
            else:
                org_res='?'

        import string
        if string.find(string.lower(parent),'select')!=-1:
            parent='P'
        if string.find(string.lower(newresidue),'select')!=-1:
            newresidue='X'
        else:
            import DNAtool.mutation
            newresidue=DNAtool.mutation.three_to_one[newresidue]
        import types
        if type(aa_number) is types.IntType:
            aa_number=int(aa_number)
        else:
            aa_number=str(int(str(aa_number[1:])))
        return '%s+%s:%s:%s:%s' %(parent,ChainID,aa_number,org_res,newresidue)
Suggest a name for new mutation
Suggest a name for new mutation
Suggest a name for new mutation
def suggest_name(self,parent,aa_number,newresidue,org_res,ChainID):
        if not parent:
            return '?+?#?'
        if not newresidue:
            newresidue='?'
        if not org_res:
            org_res='X'
        else:
            import DNAtool.mutation
            if DNAtool.mutation.three_to_one.has_key(org_res):
                org_res=DNAtool.mutation.three_to_one[org_res]
            else:
                org_res='?'
        import string
        if string.find(string.lower(parent),'select')!=-1:
            parent='P'
        if string.find(string.lower(newresidue),'select')!=-1:
            newresidue='X'
        else:
            import DNAtool.mutation
            newresidue=DNAtool.mutation.three_to_one[newresidue]
        import types
        if type(aa_number) is types.IntType:
            aa_number=int(aa_number)
        else:
            aa_number=str(int(str(aa_number[1:])))
        return '%s+%s:%s:%s:%s' %(parent,ChainID,aa_number,org_res,newresidue)
def suggest_name ( self , parent , aa_number , newresidue , org_res , ChainID ) : if not parent : return '?+?#?' if not newresidue : newresidue = '?' if not org_res : org_res = 'X' else : import DNAtool . mutation if DNAtool . mutation . three_to_one . has_key ( org_res ) : org_res = DNAtool . mutation . three_to_one [ org_res ] else : org_res = '?' import string if string . find ( string . lower ( parent ) , 'select' ) != - 1 : parent = 'P' if string . find ( string . lower ( newresidue ) , 'select' ) != - 1 : newresidue = 'X' else : import DNAtool . mutation newresidue = DNAtool . mutation . three_to_one [ newresidue ] import types if type ( aa_number ) is types . IntType : aa_number = int ( aa_number ) else : aa_number = str ( int ( str ( aa_number [ 1 : ] ) ) ) return '%s+%s:%s:%s:%s' % ( parent , ChainID , aa_number , org_res , newresidue )
Suggest a name for new mutation
Suggest a name for new mutation
"""Suggest a name for new mutation"""
self
parent
aa_number
newresidue
org_res
ChainID