def get_prot_res_seq_cif(CifDict, EntNum):
    """
    Gives sequence as taken from mmCIF file, entity poly pdbx seq section
    Takes the canonical sequence. 

    Parameters
    ----------
    CifDict: dict
    EntNum: int

    Returns
    -------
    canonseq: str
    """
#    canon_seqlist = CifDict["_entity_poly.pdbx_seq_one_letter_code_can"][EntNum-1].split('\n')
    canon_seqlist = CifDict["_entity_poly.pdbx_seq_one_letter_code"][EntNum-1].split('\n')
    canonseq = ''.join(canon_seqlist)
    return canonseq