mvpa2.misc.fsl.flobs.make_flobs

mvpa2.misc.fsl.flobs.make_flobs(pre=0, rise=5, fall=5, undershoot=5, undershootamp=0.3, nsamples=1, resolution=0.05, nsecs=-1, nbasisfns=2)

Wrapper around the FSL tool halfcosbasis.

This function uses halfcosbasis to generate samples of HRF kernels. Kernel parameters can be modified analogous to the Make_flobs GUI which is part of FSL.

 ^         /-\
 |        /   \
 1       /     \
 |      /       \
 |     /         \
 |    /           \
-----/             \     /-----  |
                    \--/         |  undershootamp
|    |      |     |        |
|    |      |     |        |

 pre   rise  fall  undershoot

Parameters ‘pre’, ‘rise’, ‘fall’, ‘undershoot’ and ‘undershootamp’ can be specified as 2-tuples (min-max range for sampling) and single value (setting exact values – no sampling).

If ‘nsec’ is negative, the length of the samples is determined automatically to include the whole kernel function (until it returns to baseline). ‘nsec’ has to be an integer value and is set to the next greater integer value if it is not.

All parameters except for ‘nsamples’ and ‘nbasisfns’ are in seconds.