Table Of Contents

Previous topic

misc.fsl.base

Next topic

misc.fsl.melodic

This content refers to the previous stable release of PyMVPA. Please visit www.pymvpa.org for the most recent version of PyMVPA and its documentation.

misc.fsl.flobs

Module: misc.fsl.flobs

Wrapper around FSLs halfcosbasis to generate HRF kernels

mvpa.misc.fsl.flobs.makeFlobs(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.