... | ... | @@ -16,17 +16,18 @@ Below we have a .htb pipeline script that is looking for 5 swap string inputs 4 |
|
|
[high_bound],30
|
|
|
[out_path],analysis/data/2_preproc
|
|
|
```
|
|
|
The swap string [batch_dfn] is special as it automatically takes its information from the loaded dataset files.
|
|
|
***
|
|
|
The swap string [batch_dfn] is special as it automatically takes its information from the loaded dataset files.
|
|
|
![strswapbasics](/uploads/0410ed896b2d2e37cb20a7b6b0c993e5/strswapbasics.png)
|
|
|
When these .m files are executed they will apply the script filters too each of the dataset files.
|
|
|
|
|
|
Please refer to Configuration]() for more information on how change your swap string values.
|
|
|
Continue to learn about how to place the [strings] in your scripts.
|
|
|
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.
|
|
|
***
|
|
|
|
|
|
![strswapbasics](/uploads/0410ed896b2d2e37cb20a7b6b0c993e5/strswapbasics.png)
|
|
|
Now when these .m files are executed they will apply the script filters too each of the dataset files.
|
|
|
* Please refer to [Configuration](https://git.sharcnet.ca/jdesjard/batch_context/wikis/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 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.
|
|
|
:b: The swap strings for *s1_scalpart.htb*, the first script in the pipeline.
|
|
|
|
|
|
```matlab
|
... | ... | @@ -93,7 +94,7 @@ disp('TIME TO: FILTER HIGH PASS...'); |
|
|
toc
|
|
|
```
|
|
|
|
|
|
## Building in Manual Steps
|
|
|
## Building Manual Steps into your Pipeline
|
|
|
Running a pipeline with manual steps is also possible. 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* 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 loading the next dataset.
|
|
|
|
|
|
```matlab
|
... | ... | @@ -107,21 +108,4 @@ h2=figure;pop_topoplot(EEG,1, ms,'[batch_dfn],[1 1]' ,0,'electrodes','labels'); |
|
|
% Stops and waits until window is closed
|
|
|
uiwait(gcf);
|
|
|
% Proceeds to next data file
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
text here
|
|
|
# Saving scripts (*.htb files)
|
|
|
|
|
|
# Editing scripts (replace_strings)
|
|
|
text here
|
|
|
![smallerswpstr](/uploads/a067de0f3ac9d8ee2cd0ea4c5399eb2b/smallerswpstr.png)
|
|
|
text here
|
|
|
![swpstrpart2](/uploads/5d92049f629fcc35bdcbbdf2a4193fa1/swpstrpart2.png)
|
|
|
text here
|
|
|
# Best practices
|
|
|
text here |
|
|
\ No newline at end of file |
|
|
``` |
|
|
\ No newline at end of file |