This repository contains the latest scripts for preprocessing data in Igor and exporting it to Python. The intention is that data which has gone through this pipeline can be uploaded directly to a MySQL database using the Datajoint module for Python. In addition, scripts for uploading electrophysiology data to Python are under development, making use of the stfio module.
The sister repository, located at Eulerlab/ret_datajoint will contain further scripts for interfacing Python with MySQL. Development for this is not yet underway.
Comments and suggestions should be directed to the developer associated with particular scripts, who are as follows:
-
ScanM Form Generator and ScaM IO (Igor) - Thomas Euler
-
Preprocessing scripts (Igor) - Tom Baden
-
Datajoint (Python) - Philipp Berens
-
Electrophysiology (Python) - Theresa Stadler
-
Hdf5 export (Igor) and import (Python) - Luke Rogerson
Datajoint Homepage: https://datajoint.github.io/
In order to use the Igor Preprocessing Pipeline, you will need to set up the HDF5 Loader and SARFIA.
Igor Pro 9 should have this already integrated.
In Igor Pro 8 click on Data\Load Waves\Packages\Install HDF5 Package
and follow the instructions.
In Igor Pro 6, you can do the following:
The HDF5 Loader can be added to Igor by going to the Igor installation directory (Typically, under Program Files/Wavemetrics on your C: drive) and making a shortcut to the file: \Wavemetrics\...\More Extensions\File Loaders\HDF5
And copying this shortcut to: \User\...\WaveMetrics\Igor Pro 6 User Files\Igor Extensions
You can confirm that this has installed correctly by opening Igor and checking that the entry New HDF5 Browser is available under the menu Data:Load Waves.
For more information, see:
www.wavemetrics.com/products/igorpro/dataaccess/hdf5.htm
www.wavemetrics.net/doc/igorman/II-09%20Data%20Import%20Export.pdf
The scripts for SARFIA are available at: www.igorexchange.com/project/SARFIA
Installation instructions are available on that page.
Downloading the Repository
The Igor Preprocessing scripts are available at: github.com/eulerlab/ret_preproc
There are two methods by which you can set up the repository. The easiest way is to download the repository as a zip file by clicking the green 'Clone or Download' button on the right side of the webpage, and selecting download zip. You can then unpack this file using, for example, Winrar archive manager.
Alternatively, you can download Github for Windows Desktop, from: desktop.github.com/
Once this is installed, sign in with a Github account (which you can create for free if you don't have one), click the '+' symbol in the corner, and then click 'clone repository'. From here it should be possible to enter a repository url; enter the preprocessing repository provided above. The convenience of this method is that you can update to the latest version of the repository by simply clicking 'Sync' in the Github Desktop GUI. Once you have cloned (i.e. copied) the repository, you will be able to find a copy of it in your My Documents, under: My Documents/Github/Ret_Preproc
In order for Igor to be able to access the scripts, they have to be copied to the appropriate directory. Check that you have a Wavemetrics folder in your My Documents (this should be set up automatically when you install Igor). In /WaveMetrics/Igor Pro X User Files/User Procedures
create a folder called OS
, for the preprocessing scripts, and folder called ScanM
, for the ScanM file loader and header file writer.
From your downloaded copy of this repository, copy all the scripts under: ret_preproc/ScanM
to /WaveMetrics/Igor Pro X User Files/User Procedures/ScanM
, and ret_preproc/dataProcessing/Igor
to /WaveMetrics/Igor Pro X User Files/User Procedures/OS
.
In addition, in the folder /WaveMetrics/Igor Pro X User Files/
you need to make shortcuts for: /User Procedures/OS/OS_GUI.ipf
, /User Procedures/ScanM/ScanM_FileIO/ScM_FileIO.ipf
, and /User Procedures/ScanM/ScanM_formGenerator/ScM_formGenerator_GUI.ipf
, and copy these shortcuts to: Igor Procedures
.
Note: Please make sure that the respective folders under
/Wavemetrics
are calledScanM
and notScM
.
The scripts in your
The first button generates a parameter table, which allows you to modify some of the settings in the subsequent preprocessing scripts of the preprocessing scripts (the
Having drawn a ROI mask, the
Once you have finished executing these scripts, export your data using the
You can create a header file by selecting the option from the ScanM menu. If the option is not there, it is likely that the scripts have not been placed correctly within the Wavemetrics directory. When creating a new header file, you need to select the following template to generate the blank form: experimentHeaderFile_template.txt
. The option will then be given to load a previously completed form as a template. This can make the process of filling these forms considerably quicker, and is recommended.
Most of the entries in the table are quite self-explanatory. Project names can be chosen at your discretion, but please keep them short. Please provide surnames when prompted for a name. Descriptions of some entries are included on the form, but is there is any ambiguity, please ask. Once you have completed the form, save it using the button at the bottom and copy the file to the appropriate Experiment folder on the server. If you need to close the header GUI, repeatedly clicking the cross in the corner will cause a prompt to come up which will allow you to do so.