... | ... | @@ -28,14 +28,14 @@ Below we have a .htb pipeline script that is looking for 5 swap string inputs 4 |
|
|
```
|
|
|
The swap string [batch_dfn] is one of a few special strings as it automatically takes its information from the loaded data set files.
|
|
|
![newstrswap](/uploads/9f8d8151adde97d5ddc8979eb612067c/newstrswap.png)
|
|
|
When these .m files are executed in matlab they will preform the code that is now complete.
|
|
|
When these .m files are executed in matlab they will perform the code that is now complete.
|
|
|
|
|
|
You can have any number of swap strings and for any type of variable, as the strings are swapped out for their values before the code is run.
|
|
|
You can have any number of swap strings and for any type of variable, as the strings are swapped out for their values before the code is run.
|
|
|
***
|
|
|
|
|
|
* Please refer to [Configuration](https://git.sharcnet.ca/bucanl_eeglab_extensions/batch_context/wikis/configuration-files) for more information on how to give your swap strings values from inside the configuration file.
|
|
|
* Please refer to [Configuration](configuration-files) for more information on how to give your swap strings values from inside the configuration file.
|
|
|
* Continue on to learn about how to place the [swap_strings] into your own scripts.
|
|
|
* You can also alter the string swaps even further which is helpful for naming schemes. [See Adv. String Swapping](https://git.sharcnet.ca/bucanl_eeglab_extensions/batch_context/wikis/adv-str-swap)
|
|
|
* You can also alter the string swaps even further which is helpful for naming schemes. [See Adv. String Swapping](adv-str-swap)
|
|
|
|
|
|
***
|
|
|
|
... | ... | @@ -94,6 +94,8 @@ toc |
|
|
## Building Manual Steps into your Pipeline
|
|
|
Creating a pipeline with manual steps is also possible when running the batch locally. In the example below the batch will automatically open the file and do a plot. It will then wait for the user to type in the *ms* milliseconds time they would like to investigate. It then proceeds to open that time frame for inspection. Once the first plot is closed, the next .m file will run and load the next dataset. This aspect speeds up any manual steps that you need to do, such as investigating time frame, component, channel or location differences between subjects.
|
|
|
|
|
|
Please note that if you use manual steps / user input during a pipeline script you cannot run this remotely on a parallel cluster without additional modification/tooling.
|
|
|
|
|
|
```matlab
|
|
|
% LOAD DATASET FILE...
|
|
|
EEG = pop_loadset('filename','[batch_dfn]','filepath','[batch_dfp]');
|
... | ... | @@ -107,9 +109,11 @@ uiwait(gcf); |
|
|
% Proceeds to next data file
|
|
|
```
|
|
|
|
|
|
If you are creating your own pipeline take a look at the [Configuration Files](https://git.sharcnet.ca/bucanl_eeglab_extensions/batch_context/wikis/configuration-files) section to learn more about changing swap string values and pipeline ordering.
|
|
|
:b: If you are following the tutorial you can go to [Running Scripts](https://git.sharcnet.ca/bucanl_eeglab_extensions/batch_context/wikis/running-scripts) to start running some jobs!
|
|
|
If you are creating your own pipeline take a look at the [Configuration Files](configuration-files) section to learn more about changing swap string values and pipeline ordering.
|
|
|
:b: If you are following the tutorial you can go to [Running Scripts](running-scripts) to start running some jobs!
|
|
|
|
|
|
***
|
|
|
|
|
|
[ :house: **Return to Main Page**](https://git.sharcnet.ca/bucanl_eeglab_extensions/batch_context/wikis/home) |
|
|
\ No newline at end of file |
|
|
*Updated/Verified by Brad Kennedy on 2017-08-01*
|
|
|
|
|
|
[ :house: **Return to Main Page**](home) |
|
|
\ No newline at end of file |