Skip to content

Commit ee68cb6

Browse files
committed
Adding a readme for the figures
1 parent 9a24eca commit ee68cb6

4 files changed

Lines changed: 112 additions & 9 deletions

File tree

figures/kCSD_properties/README.txt

Lines changed: 103 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,106 @@
1-
Instructions for the figures from kCSD paper.
1+
Instructions for the figures from kCSD-revisited paper.
22

3-
To create Figure 6 (figure6_kCSD2d.py) and 7 (figure7_kCSD2d.py) data available
4-
at Dropbox PNI folder is required (Dropbox/PNI/kCSDrev-pics/error_maps_2D).
3+
~~~~~~~~~~~~~~~~~~~~~~~
4+
Figure 1 - Schematic
55

6-
To create Figure 9 (tutorial_broken_electrodes.py) and extended version of this
7-
figure (tutorial_broken_electrodes_sig_err.py) download necessary data from:
6+
sources_electrodes.odg
7+
8+
~~~~~~~~~~~~~~~~~~~~~~~
9+
Figure 2 - 1D spectral properties of kCSD method
10+
11+
figure_eigensources_M_1D.py
12+
figure_eigensources_R_1D.py (another version with inset plot)
13+
14+
~~~~~~~~~~~~~~~~~~~~~~~
15+
Figure 3 and 4 - Noise-free Electrode/Basis source placement
16+
17+
figure_Tbasis.py
18+
19+
~~~~~~~~~~~~~~~~~~~~~~~
20+
Figure 3 and 4 - Noisy electrodes / Basis source placement
21+
22+
figure_Tbasis.py
23+
24+
~~~~~~~~~~~~~~~~~~~~~~~
25+
Figure 5 - L-curve method for regularization
26+
27+
~~~~~~~~~~~~~~~~~~~~~~~
28+
Figure 6 - L-curve versus Cross-validation
29+
30+
fig2_cv_vs_lc.py
31+
32+
~~~~~~~~~~~~~~~~~~~~~~~
33+
Figure 7 - Error propagation map
34+
35+
error_propagation.py
36+
colorblind_friendly.py
37+
38+
~~~~~~~~~~~~~~~~~~~~~~~
39+
Figure 8 - Reliability map
40+
41+
reliability_map_2d.py
42+
43+
error_maps_2D/point_error_large_100_all_ele.npy
44+
error_maps_2D/point_error_small_100_all_ele.npy
45+
46+
~~~~~~~~~~~~~~~~~~~~~~~
47+
Figure 9 - Reliability map; Use case in a 2D dipolar large source
48+
49+
figure7_kCSD2d.py
50+
51+
error_maps_2D/point_error_large_100_all_ele.npy
52+
error_maps_2D/point_error_small_100_all_ele.npy
53+
54+
~~~~~~~~~~~~~~~~~~~~~~~
55+
Figure 10 - Average Error (Diff) when broken electrode and loss in reconstruction quality
56+
57+
~~~~~~~~~~~~~~~~~~~~~~~
58+
Figure 11 - Basic features tutorial
59+
60+
You will need to run tutorial3.py first or download files from here
861
https://www.dropbox.com/sh/6kykj4d3dx3fp5s/AAACtN49VCbAHA9otOfNXbnOa?dl=0
62+
63+
tutorial_basic.py
64+
65+
~~~~~~~~~~~~~~~~~~~~~~~
66+
Figure 12 - Noisy electrodes tutorial
67+
68+
tutorial_noisy_electrodes.py
69+
70+
~~~~~~~~~~~~~~~~~~~~~~~~
71+
Figure 13 - Broken electrodes tutorial
72+
73+
Download first from
74+
https://www.dropbox.com/sh/6kykj4d3dx3fp5s/AAACtN49VCbAHA9otOfNXbnOa?dl=0
75+
(generated from tweaking tutorial3.py)
76+
77+
tutorial_broken_electrodes.py
78+
tutorial_broken_electrodes_sig_err.py (another variant)
79+
80+
~~~~~~~~~~~~~~~~~~~~~~~~
81+
Figure 14 - L-Curve and CV landscape
82+
83+
84+
=====================
85+
Supplementary Figures
86+
=====================
87+
~~~~~~~~~~~~~~~~~~~~~~~~~~
88+
Figure S1 / 15 - spectral properties of kCSD method for simple 2D case
89+
90+
figure_eigensources_M_2D.py
91+
92+
~~~~~~~~~~~~~~~~~~~~~~~~~~
93+
Figure S2 / 16 - Error propagation maps for 1D
94+
95+
pots_propagation.py
96+
97+
~~~~~~~~~~~~~~~~~~~~~~~~~~
98+
Figure S3 / 17 - 3D source reconstruction
99+
100+
tutorial_basic_3d.py
101+
102+
~~~~~~~~~~~~~~~~~~~~~~~~~~
103+
Figure S4 / 18 - sKCSD example
104+
105+
106+
1.15 KB
Binary file not shown.

figures/kCSD_properties/tutorial3.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,13 @@ def do_kcsd(CSD_PROFILE, csd_seed, prefix, missing_ele):
148148
true_csd=true_csd, pots=pots, post_cv=est_csd_post_cv, R=k.R)
149149

150150
if __name__ == '__main__':
151-
CSD_PROFILE = CSD.gauss_2d_large #CSD.gauss_2d_small #
152-
prefix = '/home/chaitanya/kCSD-python/figures/kCSD_properties/large_srcs_minus_20'
151+
CSD_PROFILE = CSD.gauss_2d_large
152+
prefix = '/home/chaitanya/kCSD-python/figures/kCSD_properties/large_srcs_all_ele'
153153
for csd_seed in range(100):
154-
do_kcsd(CSD_PROFILE, csd_seed, prefix, missing_ele=20)
154+
do_kcsd(CSD_PROFILE, csd_seed, prefix, missing_ele=0)
155+
print("Done ", csd_seed)
156+
CSD_PROFILE = CSD.gauss_2d_small
157+
prefix = '/home/chaitanya/kCSD-python/figures/kCSD_properties/small_srcs_all_ele'
158+
for csd_seed in range(100):
159+
do_kcsd(CSD_PROFILE, csd_seed, prefix, missing_ele=0)
155160
print("Done ", csd_seed)

figures/kCSD_properties/tutorial_broken_electrodes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def fetch_values(csd_type):
134134
if csd_type =='small':
135135
seed_list = range(100)
136136
else:
137-
seed_list = range(60)
137+
seed_list = range(100)
138138
fldrs = fetch_folder(csd_type=csd_type)
139139
list_dicts = load_files(fldrs, seed_list)
140140
errs = eval_errors(list_dicts, seed_list)

0 commit comments

Comments
 (0)