###Preprocessing ScanM imaging data (with IgorPRO)
Import and export hdf5 files from Igor. Import these hdf5 files to Python.
####Prerequisites
-
the HDF5 Loader is installed (shortcuts to the files starting with
...\Wavemetrics\...\More Extensions\File Loaders\HDF5need to be present in...\User\...\WaveMetrics\Igor Pro 6 User Files\Igor Extensions) -
SARFIA is installed (see http://www.igorexchange.com/project/SARFIA)
-
the ScanM file loader is installed (see
ret_preprocessing/ScM/ScanM_FileIO)
-
Copy all "OS" scripts into your User Procedures in My Documents
-
Copy a shortcut for "OS_GUI"` to Igor Procedures
-
Restart Igor for changes to take effect
-
Run the function
"OS_GUI()". If you have followed the instructions listed above, this should open the GUI in Igor. -
Execute OS functions by clicking sequentially through the buttons on the GUI
-
Load Parameter Table: Creates table containing the parameters which control subsequent preprocessing scripts -
ROI placement can be done with either
Manually+ApplyorAutom. by Correlation -
Traces & Triggersthen extracts traces and triggers from the raw data -
Optional:
Basic Averagingperforms some simple statics and plots the ROIs in Igor -
Export for databasethen exports files from your current data folder to the folder specified in the procedure.
1. It is recommended that you modify the Export for database procedure before using it
2. Open procedure OS_hdf5Export.ipf
3. Modify targetPath to match the directory you would like to export the file to
4. Modify the string at the end of the line `HDF5CreateFile` to the name of the file you export
5. The waves after HDF5SaveData are then saved inside a HDF5 file at the specified directory
-
The following waves are exported:
-
OS_Parameters: The parameters generated by the
Load Parameter Tablefunction -
ROIs: The ROI mask used to extract the traces
-
Traces0_raw: The traces extracted using the ROI mask without normalisation
-
Traces0_znorm: Traces0_raw but with normalisation
-
Tracestimes0: Timestamp for each frame of each ROI (Dimension = Traces0_raw)
-
Triggertimes: Time (s) when trigger detected
-
Triggervalues: Peak value of a triggering event. Currently static.