My main criticism is that the code in the main script is not generic enough - it runs ok for the current choices, but if you want to run a different subject or change even one analysis setting you have to dig through the whole file to make sure everything is changed accordingly. That is not a good practice.
You make all kinds of assumptions about which subjects to run, which channels to plot etc. and put all these as bare numbers in your code. That is not a good style.
[x] You should define these variables at the top and use them in later code.
Also there is a lot of code duplication - you want to do the identical analysis for parvo/magno/konio.
[x] use a loop that re-uses the code with different parameter values, NO copy and paste.
The same is true for the graphcial output: duplicated code, and parameters that are hard-coded.
[x] Use variables at the top of the script (maybe grouped ina struct) that you can change later.
[x] The table in the figure overlaps the data and the alignment seems to change. Please fix.
Is this figure really something you would submit to JNeurosci?
My main criticism is that the code in the main script is not generic enough - it runs ok for the current choices, but if you want to run a different subject or change even one analysis setting you have to dig through the whole file to make sure everything is changed accordingly. That is not a good practice.
You make all kinds of assumptions about which subjects to run, which channels to plot etc. and put all these as bare numbers in your code. That is not a good style.
Also there is a lot of code duplication - you want to do the identical analysis for parvo/magno/konio.
The same is true for the graphcial output: duplicated code, and parameters that are hard-coded.
[x] Use variables at the top of the script (maybe grouped ina struct) that you can change later.
[x] The table in the figure overlaps the data and the alignment seems to change. Please fix.
Is this figure really something you would submit to JNeurosci?