|
1 | | -Instructions for the figures from kCSD-revisited paper. |
| 1 | +Instructions for the figures from kCSD-python, reliable current source density estimation with quality control. |
2 | 2 |
|
3 | 3 | ~~~~~~~~~~~~~~~~~~~~~~~ |
4 | 4 | Figure 1 - Schematic |
5 | 5 |
|
6 | 6 | name: figure1.png |
7 | 7 |
|
8 | 8 | ~~~~~~~~~~~~~~~~~~~~~~~ |
9 | | -Figure 2 - 1D spectral properties of kCSD method |
10 | | - |
11 | | -figure_eigensources_M_1D.py |
12 | | - |
13 | | -~~~~~~~~~~~~~~~~~~~~~~~ |
14 | | -Figure 3 - Noise-free Electrode / Basis source placement |
15 | | - |
16 | | -figure_Tbasis.py |
17 | | - |
18 | | -~~~~~~~~~~~~~~~~~~~~~~~ |
19 | | -Figure 4 - Noisy electrodes / Basis source placement |
20 | | - |
21 | | -figure_Tbasis_noise.py |
22 | | - |
23 | | -~~~~~~~~~~~~~~~~~~~~~~~ |
24 | | -Figure 5 - L-curve method for regularization |
| 9 | +Figure 2 - L-curve method for regularization |
25 | 10 |
|
26 | 11 | You will need to run L_curve_simulation.py first. |
27 | 12 |
|
28 | 13 | figure_LC.py |
29 | 14 |
|
30 | 15 | ~~~~~~~~~~~~~~~~~~~~~~~ |
31 | | -Figure 6 - L-curve versus Cross-validation |
32 | | - |
33 | | -You will need to run L_curve_simulation.py first. |
34 | | - |
35 | | -figure_LCandCVperformance.py |
36 | | - |
37 | | -~~~~~~~~~~~~~~~~~~~~~~~ |
38 | | -Figure 7 - Error propagation map |
| 16 | +Figure 3 - Error propagation map |
39 | 17 |
|
40 | 18 | error_propagation.py |
41 | 19 | colorblind_friendly.py |
42 | 20 |
|
43 | 21 | ~~~~~~~~~~~~~~~~~~~~~~~ |
44 | | -Figure 8 - Reliability map |
| 22 | +Figure 4 - Reliability map 2D |
45 | 23 |
|
46 | 24 | reliability_map_2d.py |
47 | 25 |
|
48 | 26 | error_maps_2D/point_error_large_100_all_ele.npy |
49 | 27 | error_maps_2D/point_error_small_100_all_ele.npy |
50 | 28 |
|
51 | 29 | ~~~~~~~~~~~~~~~~~~~~~~~ |
52 | | -Figure 9 - Reliability map; Use case in a 2D dipolar large source |
| 30 | +Figure 5 - Reliability map; Use case in a 2D dipolar large source |
53 | 31 |
|
54 | 32 | kCSD_with_reliability_map_2D.py |
55 | 33 |
|
56 | 34 | error_maps_2D/point_error_large_100_all_ele.npy |
57 | 35 | error_maps_2D/point_error_small_100_all_ele.npy |
58 | 36 |
|
59 | 37 | ~~~~~~~~~~~~~~~~~~~~~~~ |
60 | | -Figure 10 - Average Error (Diff) when broken electrode and loss in reconstruction quality |
| 38 | +Figure 6 - Average Error (Diff) when broken electrode and loss in reconstruction quality |
61 | 39 |
|
62 | 40 | You will need to run tutorial3.py first or download files from here |
63 | 41 | https://www.dropbox.com/sh/6kykj4d3dx3fp5s/AAACtN49VCbAHA9otOfNXbnOa?dl=0 |
64 | 42 |
|
65 | 43 | tutorial_broken_electrodes_diff_err.py |
66 | 44 |
|
67 | 45 | ~~~~~~~~~~~~~~~~~~~~~~~ |
68 | | -Figure 11 - Simulated cortical recordings in Traubs's model |
69 | | - |
70 | | -You will need to download files from: |
71 | | -https://repod.pon.edu.pl/dataset/thalamocortical-network/resource/6add09e1-bfe4-4082-b990-24b469756886 |
72 | | - |
73 | | -npx/traub_data_kcsd_column_figure.py |
74 | | - |
75 | | -~~~~~~~~~~~~~~~~~~~~~~~ |
76 | | -Figure 12 - LFP and CSD as a function of time - Traub's model |
77 | | - |
78 | | -You will need to download files from: |
79 | | -https://repod.pon.edu.pl/dataset/thalamocortical-network/resource/6add09e1-bfe4-4082-b990-24b469756886 |
80 | | - |
81 | | -npx/figure_traub_timespace.py |
82 | | - |
83 | | -~~~~~~~~~~~~~~~~~~~~~~~ |
84 | | -Figure 13 - Six first eigensources for a single bank of a Neuropixels probe |
85 | | - |
86 | | -You will need to download files from: |
87 | | -https://repod.pon.edu.pl/dataset/thalamocortical-network/resource/6add09e1-bfe4-4082-b990-24b469756886 |
88 | | - |
89 | | -npx/figure_traub_eigensources.py |
90 | | - |
91 | | -~~~~~~~~~~~~~~~~~~~~~~~ |
92 | | -Figure 14 - LFP and CSD space profiles - experimental data from a single bank of a Neuropixels probe |
93 | 46 |
|
94 | | -You will need to download files from: |
95 | | - |
96 | | -npx/kCSD2D_reconstruction_from_npx.py |
97 | | - |
98 | | -~~~~~~~~~~~~~~~~~~~~~~~ |
99 | | -Figure 15 - LFP and CSD as a function of time - experimental data |
100 | | - |
101 | | -You will need to download files from: |
102 | | - |
103 | | -npx/kCSD2D_reconstruction_from_npx.py |
104 | | - |
105 | | -~~~~~~~~~~~~~~~~~~~~~~~~ |
106 | | -Figure 16 - L-Curve and CV landscape |
| 47 | +Figure 7 - L-Curve and CV landscape |
107 | 48 |
|
108 | 49 | You will need to run L_curve_simulation.py first. |
109 | 50 |
|
110 | 51 | figure_LCandCV.py |
111 | 52 |
|
112 | 53 | ~~~~~~~~~~~~~~~~~~~~~~~ |
113 | | -Figure 17 - Schematic - location of Neuropixels bank 0 |
114 | | - |
115 | | -name: figure17.png |
116 | | - |
117 | | -===================== |
118 | | -Supplementary Figures |
119 | | -===================== |
120 | | - |
121 | | -~~~~~~~~~~~~~~~~~~~~~~~~~~ |
122 | | -Figure 2-Figure supplement 1 - spectral properties of kCSD method for simple 2D case |
123 | | - |
124 | | -figure_eigensources_M_2D.py |
125 | | - |
126 | | -~~~~~~~~~~~~~~~~~~~~~~~~~~ |
127 | | -Figure 7-Figure supplement 1 - Error propagation maps for 1D |
128 | | - |
129 | | -pots_propagation.py |
130 | 54 |
|
131 | | -~~~~~~~~~~~~~~~~~~~~~~~~~~ |
132 | | -Figure 13-Figure supplement 1 - Eigensurces 7-12 ('start=6', 'stop=12'), |
133 | | -Figure 13-Figure supplement 2 - Eigensurces 13-18 ('start=12', 'stop=18'), |
134 | | -Figure 13-Figure supplement 3 - Eigensurces 19-24 ('start=18', 'stop=24'), |
135 | | -Figure 13-Figure supplement 4 - Eigensurces 25-30 ('start=24', 'stop=30'), |
136 | | -Figure 13-Figure supplement 5 - Eigensurces 31-36 ('start=30', 'stop=36'), |
137 | | -Figure 13-Figure supplement 6 - Eigensurces 37-42 ('start=36', 'stop=42'), |
138 | | -Figure 13-Figure supplement 7 - Eigensurces 43-48 ('start=42', 'stop=48') |
139 | | - |
140 | | -All supplementary figures to Figure 13 were created using different |
141 | | -'start' and 'stop'parameters at: |
142 | | -npx/figure_traub_eigensources.py |
143 | | - |
144 | | -================ |
145 | | -Appendix Figures |
146 | | -================ |
147 | | - |
148 | | -~~~~~~~~~~~~~~~~~~~~~~~ |
149 | | -Appendix 1 Figure 1 - Basic features tutorial |
| 55 | +Figure 8 - Basic features tutorial |
150 | 56 |
|
151 | 57 | You will need to run tutorial3.py first or download files from here |
152 | 58 | https://www.dropbox.com/sh/6kykj4d3dx3fp5s/AAACtN49VCbAHA9otOfNXbnOa?dl=0 |
153 | 59 |
|
154 | 60 | tutorial_basic.py |
155 | 61 |
|
156 | 62 | ~~~~~~~~~~~~~~~~~~~~~~~ |
157 | | -Appendix 1 Figure 2 - Noisy electrodes tutorial |
| 63 | + |
| 64 | +Figure 9 - Noisy electrodes tutorial |
158 | 65 |
|
159 | 66 | tutorial_noisy_electrodes.py |
160 | 67 |
|
161 | | -~~~~~~~~~~~~~~~~~~~~~~~~ |
162 | | -Appendix 1 Figure 3 - Broken electrodes tutorial |
| 68 | +~~~~~~~~~~~~~~~~~~~~~~~ |
| 69 | +Figure 10 - Broken electrodes tutorial |
163 | 70 |
|
164 | 71 | Download first from |
165 | 72 | https://www.dropbox.com/sh/6kykj4d3dx3fp5s/AAACtN49VCbAHA9otOfNXbnOa?dl=0 |
166 | 73 | (generated from tweaking tutorial3.py) |
167 | 74 |
|
168 | 75 | tutorial_broken_electrodes.py |
169 | 76 |
|
170 | | -~~~~~~~~~~~~~~~~~~~~~~~~~~ |
171 | | -Appendix 1 Figure 4 - 3D source reconstruction |
| 77 | +~~~~~~~~~~~~~~~~~~~~~~~ |
| 78 | +Figure 11 - Error propagation maps for 1D |
| 79 | + |
| 80 | +pots_propagation.py |
| 81 | + |
| 82 | +~~~~~~~~~~~~~~~~~~~~~~~ |
| 83 | +Figure 12 - 3D source reconstruction |
172 | 84 |
|
173 | 85 | tutorial_basic_3d.py |
174 | 86 |
|
175 | | -~~~~~~~~~~~~~~~~~~~~~~~~~~ |
176 | | -Appendix 1 Figure 5 - sKCSD example |
| 87 | +~~~~~~~~~~~~~~~~~~~~~~~ |
| 88 | +Figure 13 - sKCSD example |
| 89 | + |
| 90 | +You will need to install LFPy package first: |
| 91 | +pip install lfpy |
177 | 92 |
|
178 | 93 | skcsd_and_l_curve_complex_morphology.py |
0 commit comments