import copy


def add_markers(idx, pkl):
    """
    Adding markers to the metaphlan pkl.
    """
    for cluster_id,v in idx.items():
        marker_name = cluster_id.split('|')[0]
        pkl['markers'][marker_name] = copy.deepcopy(v)
    return pkl