import re


def getProteinSequences(path_to_data: str) -> dict:
    """
    Read protein sequence data file and extract protein sequences
    """
    with open(path_to_data) as file:
        data = file.read()

    # Isolate protein sequences (using key: CRC64 with 12 empty spaces before start)
    pstart = [m.start() for m in re.finditer('CRC64', data)]
    pend = [m.start() for m in re.finditer("\n//", data)]

    proteins = {}
    for idx in range(len(pstart)):
        proteins[idx] = re.sub(' ', '', re.sub('\n', '', data[pstart[idx]+12:pend[idx]]))

    return proteins