Creating your own processing stream - BUNPC/Homer3 GitHub Wiki

If you have specific data processing needs that vary from the default configuration, the current processing stream can be edited or a custom processing stream can be created from the ProcStreamEditGUI. Please follow these steps:

  1. To start the ProcStreamEditGUI, go into the Tools menu and select Edit Processing Stream.


2. The ProcStreamEditGUI dialog will appear. The GUI mainly includes four sections: Registry Functions window, Usage Options window, Current Processing Stream window, and Help window, as seen below.

* **Registry Functions window** provides a list of functions that are commonly used in fNIRS data analysis. * **Usage Options window** provides possible usages for several functions (only hmrR_BlockAvg and hmrR_PCAFilter at present). For example, you can select to use the BlockAvg function on the optical density data or the concentration data by clicking the corresponding option in the Usage Options window. * **Help window** provides a brief description of the selected function or usage option. You can read the help information and familiarize yourself with these functions by clicking each function name in the Registry Functions and Usage Options window. * **Current Processing Stream window** shows the processing stream you are creating or using for the data.
  1. If you have loaded the default config file, four functions will display in the Current Processing Stream window. You can remove all the functions before creating a new processing stream by clicking the Clear All button.


The dialog would look like this, with no entries in the Current Processing Stream window.

4. Here is an example of creating a simple processing stream with four functions: a) **hmrR_Intensity2OD**: convert raw data to optical density; b) **hmrR_BandpassFilt**: bandpass filter on the optical density; c) **hmrR_OD2Conc**: convert the filtered optical density to Hb concentration; d) **hmrR_BlockAvg**: calculate the average response.

To create this processing stream, select each of the four functions above from the Registry Functions window and click the Add button one by one.




5. The order of these functions can be changed by selecting a function in the Processing Stream Window and clicking the Up or Down button to move the function one space up or down.


6. Similarly, you can also move to Subject or Group in the Registry Functions window and create the processing stream for the subject- or group-level analysis by adding functions.




7. When you complete the desired processing stream, click the Save button to save this stream to a config file (.cfg format).





⚠️ **GitHub.com Fallback** ⚠️