import pathlib


def check_agp(assembly: pathlib.Path):
    """
    Check if the AGP files already exist. 

    Args: 
        assembly: File path to assembly genome. 
    """

    reference = pathlib.Path(f"{assembly.stem}_reference.agp")
    assembly = pathlib.Path(f"{assembly.stem}_assembly.agp")

    if reference.is_file() and assembly.is_file():
        return reference, assembly