'AG3233_4',
    'AG3488_7',
]
inc, exc, color, example_mouse = dataloc.experiment_selector(
    analysis, behavior_str=behavior_str)
summary = ethovision_tools.meta_sum_csv(newbase, inc, exc)

data = behavior.open_loop_summary_collect(newbase,
                                          inc,
                                          exc,
                                          update_rear=True,
                                          stim_analyze_dur=10)

smooth_amnt = [33, 33]
fig, stats, axs = plots.plot_openloop_mouse_summary(data,
                                                    smooth_amnt=smooth_amnt,
                                                    method=[10, 1])

# %% zone test

analysis = 'Str_A2a_ChR2_1mw'
behavior_str = 'zone_'
fn = '%s_rtpp_data' % analysis

inc, exc, color, example_mouse = dataloc.experiment_selector(
    analysis, behavior_str=behavior_str)

summary = ethovision_tools.meta_sum_csv(newbase, inc, exc)
summary = summary.sort_values('anid').reset_index()

data = behavior.zone_rtpp_summary_collect(newbase,
# %%
ex0 = [
    'exclude', 'and_GPe', 'and_Str', 'Left', 'Right', 'Other XLS', 'Exclude',
    '_gpe_muscimol', '_gpe_pbs', 'mW', 'mw', 'AG5769', 'AG5362', 'AG5477'
]  #Exclude Str + GPe fiber mice
# inc=[['AG','GPe','CAG','Arch','10x']]
# exc=[ex0]
inc = [['AG', 'Str', 'A2A', 'Ai32', '10x'],
       ['AG', 'Str', 'A2A', 'ChR2', '10x']]  # ['AG','GPe','CAG','Arch','10x']
exc = [ex0, ex0, ex0]

basepath = '/home/brian/Dropbox/Gittis Lab Data/OptoBehavior/'
data = behavior.open_loop_summary_collect(basepath, [inc[0]], [exc[0]])

# %%
fig = plots.plot_openloop_mouse_summary(data)

# %% FoxP2

ex0 = [
    'exclude',
    'bad',
    'Exclude',
    'broken',
    'Other XLS',
    'Exclude',
]
# inc=[['AG','GPe','CAG','Arch','10x']]
exc = [ex0]
inc = [
    ['AG', 'GPe', 'FoxP2', 'ChR2', '10x10_20mW'],