def set_parallel(n_core):
    """
    Set parallel.

    This helper function decides whether the analysis should be run in parallel based on the number of cores specified.

    :param n_core: An integer; specifies the number of cores to use for this analysis.
    :return: A boolean; whether analysis should be run in parallel or not.
    """
    n_core = int(n_core)
    if n_core == 1:
        parallel = False
    elif n_core > 1:
        parallel = True
    else:
        raise ValueError
    return parallel