This script can be used to 'build' an average of multiple result views including waveform averages, PSTH's and interval histograms. Select result views to add to the Grand Average by opening a saved result view or creating a new result view and making it the current or 'top' window. Then simply click the ADD button in the script toolbar.
This script requires Spike2 v4.24 or higher.
Keywords: Grand average
This script generates multiple spike correlation histograms for all combinations of templated spikes in a channel. Currently it allows for up to 8 spike templates per channel (including code 0) for correlating between channels in the file.
The script is controlled from a toolbar where the user can open a data file for analysis and control the parameters for the correlation as well as the number of correlation results views to display at any one time. A suitable example data file, Extracellular spikes.smr, is included in the Data folder of your Spike2 directory.
This script requires Spike2 v4.24 or higher.
Keywords: Spike cross correlation
This script allows the user to interactively import peaks, troughs or threshold crossings based on an amplitude value defined with a pair of horizontal cursors, or a single horizontal cursor used as a threshold crossing.
The script utilises an idle routine that automatically updates the memory channel holding the event markers if the user adjusts the amplitudes or threshold levels. A suitable example data file, Blood pressure waveform.smr, is included in the Data folder of your Spike2 directory.
This script requires Spike2 v4.24 or higher.
Keywords: peak trough detection, threshold crossing
This script automates the process of taking multiple Cursor Regions type measurements. You simply specify the source channel, the type of measurement to take and the time range over which to make it. For example one could specify the mean of a waveform to be measured in 30 s bins. The results can be plotted as a RealMark or tabulated in the log. As a further refinement you can specify a State channel and marker codes to gate the analysis to time ranges of interest.
This script requires Spike2 v6.06 or higher.
The Gabor function is a sine wave damped by a Gaussian function.
This script allows you to fit a Gabor function to physiological data. An example application might be to detect oscillatory neural activity in auto-correlograms, e.g., Young et al (1992). The script also generates test data that you can use to familiarise yourself with the curve-fitting procedure.
You could also use this script as a template for fitting other functions by non-linear regression using the FitNLUser() script function.
This script requires Spike2 v6.06 or higher.
REFERENCE
Young MP, Tanaka K, Yamane S (1992) On Oscillating Neuronal Responses in the Visual Cortex of the Monkey J NeuroPhysiol 67:1464 - 1474
This archive contains scripts that enable you to:
They are beta versions. Send your bug reports and ideas for further development to geoff@ced.co.uk
This script allows you to create additional channels in your data file derived from a blood pressure trace. These extra channels include: Heart rate, diastolic bp, systolic bp, pulse bp, true mean blood pressure and “conventional” mean bp, that is, diastolic+x% pulse (where x is a value that you choose -typically between 30% and 40%). The relevant features of the raw blood pressure trace are detected using the Spike2 Active Cursor system.
You can use the script online or offline. You can also simulate online recording by replaying a previous recording via the Output Waveform command on the Spike2 Sample menu. Full user instructions are in the comments at the top of the script file itself.
This script requires Spike2 v6.06 or higher.
This script generates an amplitude distribution histogram from a Waveform, RealWave or WaveMark channel. You can select the required channel, time range, amplitude range and bin size using a combination of cursor dragging and dialog entries. The results can be displayed in various forms including number of points, Time and percent time in each amplitude bin. A user guide is included in the comments at the head of the script.
This script requires Spike2 version 6,04 or higher. It also makes use of functions in the script file GHutils.s2s (included in the download). This file must be located in a folder called include located inside the directory holding your copy of Spike2
This script will apply an existing filter from the Digital Filter bank to a number of channels in a data file. You can select the channels to filter by holding down the Ctrl key and clicking on the channel numbers to the left of the Y-axis. Selected channels will have the number highlighted with a grey box. A suitable example data file, Flow and CO2 Waveform.smr, is included in the Data folder of your Spike2 directory
This script requires Spike2 v5.21 or higher.
Keywords: Digital filter
This script copies marker filter settings from a nominated channel to any selected WaveMark or marker channels in a data file. You can select the channels to apply the copied settings to by holding down theCtrl key and clicking on the channel numbers to the left of the Y-axis. Selected channels will have the number highlighted with a grey box. A suitable example data file, Spike channels.smr, is included in the .Zip file.
This script requires Spike2 v5.21 or higher.
Keywords: Marker filter
This script will take a selected channel of multiple trace WaveMark data and create additional memory channels in the data file, each holding a single trace from the source channel. The user selectes the channel and type (stereotrode or tetrode) from a dialog when the script is run. A suitable example data file, Tetrode data.smr, is included in the .Zip file.
This script requires Spike2 v5.21 or higher.
Keywords: Multiple trace, stereotrode, tetrode
This script detects bursts of events against a background of more random events. These are copies of the script referred to on page 6 of the CED June 98 Newsletter.
Create level channels in a data file that mark groups of Events, Markers or Wavemarks. Plot burst duration, inter-burst interval, burst period or events /burst vs time.
Create additional channels showing burst rate, burst onset times, and events within bursts and events not in bursts.
Generate a table of burst statistics that can be easily copied to a spreadsheet for further analysis.
This script is intended to supersede the w_bursts.s2s located in the spike2 scripts folder. See the accompanying datasheet Bursts.pdf for a detailed user guide.
For many applications it is important to know the timing and duration of periods when the level of a waveform channel exceeded a user-defined upper threshold, fell below a lower threshold or was between these levels. This script provides a convenient method of displaying and analyzing the number and duration of high, intermediate and low states.
The script allow you to do the following:
Software requirements
This script requires Spike2 version 5.09 or higher.
This script records trigger and response signals. It creates a PSTH result view and integrates it to produce a cumulative display. This is done on-line as the data is sampled. Two channels are defined: a trigger channel and a response event channel.
This is a script for locating peaks and troughs of a waveform which lie between two user-defined levels. It will ask you to open a data file and then place two horizontal cursors on the screen. The script will then create a new event channel containing events at peak/trough times of the waveform which lie between the two horizontal cursors.
This is an on-line script (i.e. it runs whilst sampling is in progress).
The user is allowed to have one sampled 'raw data' waveform channel. The script then creates another waveform channel with the integral of the raw data waveform. There is a choice of 4 possible modes of integration.
| 1. Free run mode | The integrated channel is just the integral of the raw data. |
| 2. Inspiration only | The integrated channel is held at zero whilst the raw data is negative. |
| 3. Expiration only | The integrated channel is held at zero whilst the raw data is positive. |
| 4. Zero reset | Every time the raw data crosses zero, the integrated channel is reset to zero. |
When data capture is complete, the user gets the opportunity to dump measurements of flow and volume to a text file.
This script removes a sinusoid of known frequency from a waveform channel. This can occur where a sinusoidal stimulus is presented and the resulting biological signal contains the original sinusoid (with unknown and varying phase and amplitude) plus the desired response. The task is to remove (as far as is possible) the stimulating sinusoid while preserving the response.
The sinusoid phase and amplitude are detected by multiplying the source channel by a sine wave and a cosine wave of the desired frequency. The script works through the data in steps of one sinusoid cycle time. The user sets the number of sinusoid cycles to average before and after each target cycle to improve the result.
This script assigns sleep scores (Wake, NREM, REM and Doubt) based on recordings of hippocampal EEG and nuchal EMG. It implements the method of Costa-Miserachs et al (2003). The script includes a brief user guide that should be read in conjunction with the original article:
Costa-Miserachs D, Portel-Cortez I, Torras-Garcia M, Morgado-Bernal I (2003) Automated sleep staging in rat with a standard spreadsheet. J.Neurosci Methods 130:93-101
Software requirements
This script requires Spike2 version 5.20 or higher.
This script is intended for online or offline sleep staging in freely moving rats, mice or chicks based on recordings of one EEG and one EMG channel. The script uses the spectral functions of Virtual channels in Spike2 v7 to plot EEG power in Delta, Theta and two user-defined bands together with Theta/Delta ratio. Sleep stages are then assigned based on a series of user-defined rules such as:
When performing sleep scoring online, you can use the sequencer and sampling configuration supplied to generate an output pulse when a particular sleep stage is detected. This pulse can be used to trigger external equipment, for example, to turn on the lights.
This script allows you to perform the following tasks:
Software requirements
This script requires Spike2 version 5.09 or higher.
The purpose of the script is to calculate the mean and the mean deviation of a set of angles (or other variables) given by a textfile. In addition, it performs the Rayleigh test of uniformity, which tests whether the distribution of angles differs significantly from uniformity. The down-load contains the script and two test files.
Keram Pfeiffer
Dept of Physiology & Biophysics
Dalhousie University
Sir Charles Tupper Medical Building
5850 College Street
Halifax
Canada
email Keram.pfeiffer @ dal.ca
These scripts are stored as WinZip files, myscript.zip, except where they are shown as spike\scripts\myscript.s2s. Those latter files were installed with Spike2 and spike stands for the directory in which you installed Spike2. See the summaries by clicking on the description line, below. Then you can down-load them by clicking on the filename; please check the size received.