SAMRI icon indicating copy to clipboard operation
SAMRI copied to clipboard

Correlation matrix example does not work.

Open TheChymera opened this issue 7 years ago • 2 comments

The recently contributed correlation matrix function seems to not work properly. It produces the following plot:

figure_1

Not least of all, it took a bit of fixing to get it to even execute, in the future, please try to:

  • import needed functions 903e227ac756284b4cd13564e3ae58a62a3ba04c
  • handle plausible input type possibilities in the appropriate fashion 2374ddaf2333f3e7b62ffc3ca5f4c70859268000
  • indent with tabs 23cb4db79be1d57bebb01d7873e24eb84dc1af90

TheChymera avatar Jul 10 '17 11:07 TheChymera

Also, while it is cool that the correlation matrix function can save the data file for later plotting, ideally we would not do this in any example (to avoid dropping trace files everywhere). This is best done by only saving when an optional save_as string argument evaluates to True.

TheChymera avatar Jul 10 '17 13:07 TheChymera

Reviewed and edited suggested changes. Should work now, also atlas annotation fixed. For testing please replace filenames and in the labels csv line 177 replace ‘,’ by something else (

Accessory olfactory bulb: glomerular, external plexiform and mitral cell layer ), since it messes up the parsing.

result should be something like this matrix

damaggu avatar Jul 20 '17 19:07 damaggu