Skip to content

Commit

Permalink
Merge pull request #1 from dylansutterlin/elm
Browse files Browse the repository at this point in the history
Local bug fix on elm, ready to run
  • Loading branch information
dylansutterlin authored Mar 8, 2024
2 parents aaa9df6 + 567c27d commit ebb6696
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
pwd_main=pwd_main,
conf_dir=conf_dir,
save_base= os.path.join(pwd_main, 'debug'),
save_folder="difumo64_correlation",
save_folder="difumo64_correl_negw",
atlas_name="difumo64",
sphere_coord = [(54, -28, 26)],
connectivity_measure="correlation",
Expand Down
2 changes: 1 addition & 1 deletion scripts/func.py
Original file line number Diff line number Diff line change
Expand Up @@ -592,4 +592,4 @@ def export_txt_NBS(save_to, atlas, atlas_labels, pre_connectomes, post_connectom
os.path.join(save_to, f"diffcon-{sub}.txt"),
diffmat,
fmt="%.4f",
)
)
2 changes: 1 addition & 1 deletion scripts/plot_func.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ def dist_mean_edges(cond, matrix_list, save_to ):
#plt.tight_layout()

def visu_correl(vd, vi, save_to, vd_name, vi_name, title):
corr_coeff, p_value = pearsonr(vd, vi)
corr_coeff, p_value = stats.pearsonr(vd, vi)
r_squared = np.corrcoef(np.array(vd), np.array(vi))[0, 1]**2
# Scatter plot of vd score vs mean rCBF diff
plt.scatter(vd, vi)
Expand Down

0 comments on commit ebb6696

Please sign in to comment.