|
|
# Creating HTB Files
|
|
|
HTB files are just regular Matlab files with template placeholders. They may also be command line patterns that start binary programs, as with Amica. This page outlines how to create two htb scripts that are to run in series.
|
|
|
|
|
|
## Bandpass
|
|
|
|
|
|
This is a comment less version of our s01_bandpass.htb in the `scripts/` directory
|
|
|
## Bandpass Example
|
|
|
|
|
|
```matlab
|
|
|
disp('Loading set file: [batch_dfn]...');
|
... | ... | @@ -36,8 +34,6 @@ fprintf(fidparam, '%s', swapstr_2); |
|
|
fclose(fidparam);
|
|
|
```
|
|
|
|
|
|
This htb file has 4 user provided string swaps. [Writing scripts is document more here](script-files). You can additionally look [here for Advanced String Swapping Techniques](adv-str-swap)
|
|
|
|
|
|
We don't count the `repstr_*` string swaps because they are actually being used to replace string in the Amica param file we are writing.
|
|
|
|
|
|
The user provided string swaps are
|
... | ... | @@ -52,9 +48,7 @@ In the next step we will make the configuration for these jobs which will requir |
|
|
|
|
|
## Amica
|
|
|
|
|
|
Amica is a binary program that can be run from the command line. Batch_context is capable of incorporating these into our pipeline as well. You use the .htb file to form the command line that is submitted to the scheduler.
|
|
|
|
|
|
Amica does ICA on the eegdata. We do this twice since Amica is stochastic and will have different results after every run.
|
|
|
Amica is a binary program that can be run from the command line. Batch_context is capable of incorporating these into our pipeline as well. You use the .htb file to form the command line call.
|
|
|
|
|
|
Normally Amica is run from the command line like so
|
|
|
|
... | ... | |