python/methylnet/model_interpretability.py
def plot_all_lola_outputs(head_lola_dir,plot_output_dir,description_col,cell_types,overwrite):
    """Iterate through all LOLA csv results and plot forest plots of all enrichment scores."""
    import glob
    for lola_csv in glob.iglob(join(head_lola_dir,'**','*_LOLA.csv'),recursive=True):
        output_dir=join(plot_output_dir,lola_csv.split('/')[-2])
        if overwrite and len(glob.glob(join(output_dir,'{}*.png'.format(lola_csv.split('/')[-1].replace('.csv',''))))):
            continue
        else:
            plot_lola_output_(lola_csv, output_dir, description_col, cell_types)
Iterate through all LOLA csv results and plot forest plots of all enrichment scores.
Iterate through all LOLA csv results and plot forest plots of all enrichment scores.
Iterate through all LOLA csv results and plot forest plots of all enrichment scores .
def plot_all_lola_outputs(head_lola_dir,plot_output_dir,description_col,cell_types,overwrite):
    import glob
    for lola_csv in glob.iglob(join(head_lola_dir,'**','*_LOLA.csv'),recursive=True):
        output_dir=join(plot_output_dir,lola_csv.split('/')[-2])
        if overwrite and len(glob.glob(join(output_dir,'{}*.png'.format(lola_csv.split('/')[-1].replace('.csv',''))))):
            continue
        else:
            plot_lola_output_(lola_csv, output_dir, description_col, cell_types)
def plot_all_lola_outputs ( head_lola_dir , plot_output_dir , description_col , cell_types , overwrite ) : import glob for lola_csv in glob . iglob ( join ( head_lola_dir , '**' , '*_LOLA.csv' ) , recursive = True ) : output_dir = join ( plot_output_dir , lola_csv . split ( '/' ) [ - 2 ] ) if overwrite and len ( glob . glob ( join ( output_dir , '{}*.png' . format ( lola_csv . split ( '/' ) [ - 1 ] . replace ( '.csv' , '' ) ) ) ) ) : continue else : plot_lola_output_ ( lola_csv , output_dir , description_col , cell_types )
Iterate through all LOLA csv results and plot forest plots of all enrichment scores.
Iterate through all LOLA csv results and plot forest plots of all enrichment scores .
"""Iterate through all LOLA csv results and plot forest plots of all enrichment scores."""
head_lola_dir
plot_output_dir
description_col
cell_types
overwrite