def get_correlation_metrics_from_args(args):
    """
    Extract a list of correlation metrics to use from the program arguments.
    """
    correlation_metrics = []
    if args.pearson:
        correlation_metrics.append('pearson')
    if args.spearman:
        correlation_metrics.append('spearman')
    if args.kendall:
        correlation_metrics.append('kendall')
    if args.r2_linear:
        correlation_metrics.append('r2_linear')
    if args.r2_isotonic:
        correlation_metrics.append('r2_isotonic')
    return correlation_metrics