Skip to content

Commit

Permalink
Update compute_anova.py
Browse files Browse the repository at this point in the history
give list of anova selective as output
  • Loading branch information
MirkoZanon committed Sep 9, 2024
1 parent f4197ef commit b1d0a2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/numan_plus/compute_anova.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ def compute_anova_neurons(Q, C, Hf, alpha_level, n_permutations, filtered_idx):#
#anova_df.to_csv(f'./caiman_final_datasets/numerosityCells_{brain_region_tag}.csv')
#print('\033[1m\nYour number units are calculated.\033[0m\nYou can find them in ./processed/caiman_final_dataset')

return R, chance_lev, anova_df, pref_num, excitatory_or_inhibitory#, save_df
return anova_cells, R, chance_lev, anova_df, pref_num, excitatory_or_inhibitory#, save_df

def compute_shuffled_anova_neurons(Q, C, Hf, alpha_level, n_permutations):#, save_df):

Expand All @@ -249,7 +249,7 @@ def compute_shuffled_anova_neurons(Q, C, Hf, alpha_level, n_permutations):#, sav
#for n in range(6):
# save_df[f'Preferring_{n}'].append(sum(pref_num_shuffled==n))

return Q_S, C_S, R_S#, save_df
return anova_cells_shuffled, Q_S, C_S, R_S#, save_df


def replot_tuning_curves(output_real, output_shuffled):
Expand Down

0 comments on commit b1d0a2f

Please sign in to comment.