File: plugins.rst

package info (click to toggle)
spykeviewer 0.4.2-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,388 kB
  • ctags: 630
  • sloc: python: 8,909; makefile: 137
file content (308 lines) | stat: -rw-r--r-- 11,403 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
.. _plugins:

Plugins
=======

This section describes the configuration options of the plugins that are
included with Spyke Viewer. All included plugins create plots. For
information on how to create your own plugins, see :ref:`analysisplugins`.
You can find additional plugins at the
`Spyke Repository <http://spyke-viewer.g-node.org/>`_.


Signal Plot
-----------
Shows the selected analog signals. A number of options enable to include
additional information in the plot.

.. image:: /img/plugin-signals.png

Use Subplots
  Determines whether multiple subplots are used or all signals are shown in
  one large plot.

Show subplot names
  Only valid when subplots are used. Determines if each subplot has a title
  with the signal name (if available) or the recording channel name.

Included signals
  This option can be used to tune which type of signals are shown:
  AnalogSignal objects, AnalogSignalArray objects or both. In most cases, a
  file will only include one of the signal types, so the default option of
  including both will work well (you probably never need to change it if you
  do not know the difference between the signal objects).

Show events
  When this is checked, events in the selected trial will be shown in the
  plot.

Show epochs
  When this is checked, periods in the selected trial will be shown in the
  plot.

One plot per segment
  When this is not checked, only one plot with signals from the first
  selected segment is created. Otherwise, one plot for each selected
  segment is created.

Show spikes
  Determines whether spikes are included in the plot. The following options
  are used to select from what data how the spikes are displayed:

  Display as
    Spikes can be shown as their waveform overlaid on the analog signal or a
    vertical line marking their occurrence.

  Included data
    Determines whether to include spikes from SpikeTrain objects, Spike
    objects, or both.

  Use first spike as template
    This option can be used for a special case: All spikes in the SpikeTrain
    objects have the same waveform (e.g. because they use the same template
    from spike sorting). If this option is checked, the plugin assumes that
    each unit has a SpikeTrain and a single Spike. The waveform from the
    Spike object is used for every spike in the SpikeTrain. The data in the
    example file is structured in this way.

Spectrogram
-----------
Shows spectrograms of the selected analog signals.

.. image:: /img/plugin-spectrogram.png

Interpolate
  Determines whether the dipslayed spectrogram is interpolated.

Show color bar
  If this is checked, a colorbar will be shown with each plot, illustrating
  the logarithmic power represented by the colors.

FFT samples
  The number of signal samples used in each FFT window.

Included signals
  This option can be used to tune which type of signals are shown:
  AnalogSignal objects, AnalogSignalArray objects or both. In most cases, a
  file will only include one of the signal types, so the default option of
  including both will work well (you probably never need to change it if you
  do not know the difference between the signal objects).

Spike Waveform Plot
-------------------
Shows waveforms of selected spikes.

.. image:: /img/plugin-waveforms.png

Antialiased lines
  Determines if antialiasing (smoothing) is used for the plot. If you want to
  display thousands of spikes or more, unchecking this option will improve the
  plotting performance considerably.

Include spikes from
  Determines which data sources are used for the displayed spike waveforms.

  Spikes
    Waveforms from Spike objects can be ignored (Do not include), used as
    other spike data sources are (Regular) or drawn thicker on top of other
    spikes (Emphasized). The last option is useful if spike objects contain
    templates from spike sorting which you want to compare to corresponding
    spikes from the data.

  Spike Trains
    Spike waveforms embedded in SpikeTrain objects.

  Extracted from signal
    Spike waveforms can be automatically extracted from corresponding signals
    using spike times in SpikeTrain objects. In this case you have to choose
    the spike length and the alignment offset (the length of the signal to
    extract before each spike event).

Plot type
  Three different plot types can be selected: "One plot per channel" creates a
  subplot for each channel, "One plot per unit" creates a subplot for each
  unit and "Single plot" creates one plot containing all channels and units.

Split channels
  Multichannel waveforms can be split either horizontally or vertically.

Subplot layout
  You can choose one of two ways to arrange the resulting subplot: "Linear"
  will arrange the plots as one row or one column, depending on the other
  options. "Square" uses an equal number of row and columns.

Fade earlier spikes
  If this is enabled, earlier selected spikes for each unit are drawn more
  transparent than later spikes. This can be useful if you want to compare
  changes in a unit's waveform over time (i.e. multiple segments).

Correlogram
-----------
Creates auto- and crosscorrelograms for selected spike trains.

.. image:: /img/plugin-correlogram.png

Bin size (ms)
  The bin size used in the calculation of the correlograms.

Cut off (ms)
  The maximum time lag for which the correlogram will be calculated and
  displayed.

Data source
  The plugin supports two ways of organizing the data from which the
  correlograms are created: If "Units" is selected, the spike trains for each
  currently selected unit are treated as a dataset. For example, if two units
  are selected, the plugin creates three subplots: one autocorrelogram for
  each unit and a cross-correlogram between them.

  If "Selections" is chosen, spike trains from each saved selection are
  treated as a dataset. Note that the plot can only be created if all
  selections contain the same number of spike trains.

Counts per
  Determines if the counts are displayed per second or per segment.

Border correction
  Determines if an automatic correction for less data at higher timelags is
  applied.

Include mirrored plots
  Determines if all cross-correlograms are included, even if they are just
  mirrored versions of each other. The autocorrelograms are then displayed
  as the diagonal of a square plot matrix. Otherwise, mirrored
  cross-correlograms are omitted.

Interspike Interval Histogram
-----------------------------
Creates an interspike interval histogram for one or more units.

.. image:: /img/plugin-isi.png

Bin size (ms)
  The bin size used in the calculation of the histogram.

Cut off (ms)
  The maximum interspike interval that is displayed.

Type
  Determines the type of histogram. If "Bar" is selected, only the histogram
  for the first selected unit is displayed. If "Line" is selected, all
  selected units are included in the plot.

Data source
  The plugin supports two ways of organizing the data from which the
  histograms are created: If "Units" is selected, the spike trains for each
  currently selected unit are treated as a dataset. If "Selections" is chosen,
  spike trains from each saved selection are treated as a dataset.

Peristimulus Time Histogram
---------------------------
Creates a peristimulus time histogram (PSTH) for one or multiple units.

.. image:: /img/plugin-psth.png

Bin size (ms)
  The bin size used in the calculation of the histogram.

Start time (ms)
  An offset from the alignment event or start of the spike train. Calculation
  of the PSTH begins at this offset. Negative values are allowed (this can be
  useful when using an alignment event).

Stop time
  A fixed stop time for calculation of the PSTH. If this is not activated,
  the smallest stop time of all included spike trains is used. If the smallest
  stop time is smaller than the value entered here, it will be used instead.

Alignment event
  An event (identified by label) on which all spike trains are aligned before
  the PSTH is calculated. After alignment, the event is a time 0 in the plot.
  The event has to be present in all selected segments that include spike
  trains for the PSTH.

Type
  Determines the type of histogram. If "Bar" is selected, only the histogram
  for the first selected unit is displayed. If "Line" is selected, all
  selected units are included in the plot.

Data source
  The plugin supports two ways of organizing the data from which the
  histograms are created: If "Units" is selected, the spike trains for each
  currently selected unit are treated as a dataset. If "Selections" is chosen,
  spike trains from each saved selection are treated as a dataset.

Raster Plot
-----------
Creates a raster plot from multiple spiketrains.

.. image:: /img/plugin-rasterplot.png

Domain
  The raster plot can either be created from multiple units and one segment
  ("Units") or one unit over multiple segments ("Segments").

Show lines
  Determines if a small horizontal black line is displayed for each spike
  train.

Show events
  When this is checked, events in the selected trial will be shown in the
  plot. If the selected domain is "Segments", events from all selected
  segments are included.

Show epochs
  When this is checked, periods in the selected trial will be shown in the
  plot. If the selected domain is "Segments", epochs from all selected
  segments are included.

Spike Density Estimation
------------------------
Creates a spike density estimation (SDE) for one or multiple units. Optionally
computes the best kernel width for each unit.

.. image:: /img/plugin-sde.png

Kernel size (ms)
  The width of the kernel used for the plot. If kernel width optimization is
  enabled, this parameter is not used.

Start time (ms)
  An offset from the alignment event or start of the spike train. Calculation
  of the SDE begins at this offset. Negative values are allowed (this can be
  useful when using an alignment event).

Stop time
  A fixed stop time for calculation of the SDE. If this is not activated,
  the smallest stop time of all included spike trains is used. If the smallest
  stop time is smaller than the value entered here, it will be used instead.

Alignment event
  An event (identified by label) on which all spike trains are aligned before
  the SDE is calculated. After alignment, the event is a time 0 in the plot.
  The event has to be present in all selected segments that include spike
  trains for the SDE.

Data source
  The plugin supports two ways of organizing the data from which the
  density estimations are created: If "Units" is selected, the spike trains
  for each currently selected unit are treated as a dataset. If "Selections"
  is chosen, spike trains from each saved selection are treated as a dataset.

Kernel width optimization
  When this option is enabled, the best kernel width for each unit is
  determined using the algorithm from [1]_.

  Minimum kernel size (ms)
    The minimum kernel width that the algorithm should try.

  Maximum kernel size (ms)
    The maximum kernel width that the algorithm should try.

  Kernel size steps
    The number of steps from minimum to maximum kernel size that the algorithm
    should try. The steps are distributed equidistant on a logarithmic scale.


.. [1] Shimazaki, Shinomoto. (2010). Kernel bandwidth optimization in spike
       rate estimation. *Journal of Computational Neuroscience*, 29, 171-182.