def parse_fasta_file(path: str) -> str:
    """Parses contents of an input text file in FASTA format.

    Args:
        path: Path to input text file.

    Returns:
        The sequence.
    """

    file = open(path, "r")
    contents = file.readlines()
    text = "".join(contents[1:]).replace("\n", "")
    file.close()

    return text