def generate_similarity_bokeh(data_dir=op.join('generated', 'data'),
                              output_dir=op.join('generated', 'plots',
                                                 'similarity')):
    """Asymmetry partial correlation matrix"""

    for atlas, measures in prefixes.items():
        if atlas == 'destrieux':  # skip destrieux
            continue
        for measure, prefix in measures.items():
            # Generate similarity matrix for given dataset / data point
            do_similarity(atlas=atlas, prefixes=[prefix],
                          metric='partial-correlation',
                          measures=['Asymmetry Index'],
                          data_dir=data_dir,
                          output_dir=output_dir, output_format='bokeh')
def generate_similarity_json(data_dir=op.join('generated', 'data'),
                             output_dir=op.join('generated', 'data')):
    """Asymmetry partial correlation data as json overlay for roygbiv"""
    from ping.ping.data import prefixes
    from ping.scripts.similarity import do_similarity

    for atlas, measures in prefixes.items():
        if atlas == 'destrieux':  # skip destrieux
            continue
        for measure, prefix in measures.items():
            do_similarity(atlas=atlas, prefixes=[prefix],
                          metric='partial-correlation',
                          measures=['Asymmetry Index'],
                          data_dir=data_dir,
                          output_dir=op.join(output_dir, 'fsaverage', atlas),
                          output_format='json')