def generate_report(out_dir, latex_summaries, nb_markers, nb_samples, options):
    """Generates the report.

    :param out_dir: the output directory.
    :param latex_summaries: the list of LaTeX summaries.
    :param nb_markers: the final number of markers.
    :param nb_samples: the final number of samples.
    :param options: the list of options.

    :type out_dir: str
    :type latex_summaries: list
    :type nb_markers: str
    :type nb_samples: str
    :type options: argparse.Namespace

    """
    # Getting the graphic paths file
    graphic_paths_fn = None
    if os.path.isfile(os.path.join(out_dir, "graphic_paths.txt")):
        graphic_paths_fn = os.path.join(out_dir, "graphic_paths.txt")

    # We create the automatic report
    report_name = os.path.join(out_dir, "merged_report.tex")
    auto_report.create_report(
        out_dir,
        report_name,
        project_name=options.report_number,
        steps_filename=os.path.join(out_dir, "steps_summary.tex"),
        summaries=latex_summaries,
        background=options.report_background,
        summary_fn=os.path.join(out_dir, "results_summary.txt"),
        report_title=options.report_title,
        report_author=options.report_author,
        initial_files=os.path.join(out_dir, "initial_files.txt"),
        final_files=os.path.join(out_dir, "final_files.txt"),
        final_nb_markers=nb_markers,
        final_nb_samples=nb_samples,
        plink_version=get_plink_version(),
        graphic_paths_fn=graphic_paths_fn,
    )
Generates the report.

    :param out_dir: the output directory.
    :param latex_summaries: the list of LaTeX summaries.
    :param nb_markers: the final number of markers.
    :param nb_samples: the final number of samples.
    :param options: the list of options.

    :type out_dir: str
    :type latex_summaries: list
    :type nb_markers: str
    :type nb_samples: str
    :type options: argparse.Namespace