def residue_amino(residue) :
    """Expects an MMTK residue, returns the three letter amino acid code in upper case"""
    if residue :
        return residue.name[0:3].upper()
    else :
        return None