pKa/pKD_tools.py
def filter_deletion_insertion(mutation):
    """Process insertions and mutations so we get the right residue numbers"""
    if mutation.split(':')[0]=='delete':
        # Right now we model deletions as glycines
        mutation=mutation.replace('delete:','')
        mutation=mutation+':GLY'
    elif mutation.find('insert')!=-1:
        sp=mutation.split(':')
        mutation='%s:%s:NON:%s' %(sp[1],sp[2],sp[3])
    elif mutation.find('+')!=-1:
        raise Exception('Something went wrong. I should have gotten a single mutation and got %s' %mutation)
    return mutation
Process insertions and mutations so we get the right residue numbers
Process insertions and mutations so we get the right residue numbers
Process insertions and mutations so we get the right residue numbers
def filter_deletion_insertion(mutation):
    if mutation.split(':')[0]=='delete':
        mutation=mutation.replace('delete:','')
        mutation=mutation+':GLY'
    elif mutation.find('insert')!=-1:
        sp=mutation.split(':')
        mutation='%s:%s:NON:%s' %(sp[1],sp[2],sp[3])
    elif mutation.find('+')!=-1:
        raise Exception('Something went wrong. I should have gotten a single mutation and got %s' %mutation)
    return mutation
def filter_deletion_insertion ( mutation ) : if mutation . split ( ':' ) [ 0 ] == 'delete' : mutation = mutation . replace ( 'delete:' , '' ) mutation = mutation + ':GLY' elif mutation . find ( 'insert' ) != - 1 : sp = mutation . split ( ':' ) mutation = '%s:%s:NON:%s' % ( sp [ 1 ] , sp [ 2 ] , sp [ 3 ] ) elif mutation . find ( '+' ) != - 1 : raise Exception ( 'Something went wrong. I should have gotten a single mutation and got %s' % mutation ) return mutation
Process insertions and mutations so we get the right residue numbers
Process insertions and mutations so we get the right residue numbers
"""Process insertions and mutations so we get the right residue numbers""" # Right now we model deletions as glycines
mutation