Previous topic

mvpa.misc.fsl.base

Next topic

mvpa.misc.fsl.melodic

This Page

Quick search

mvpa.misc.fsl.flobs

Wrapper around FSLs halfcosbasis to generate HRF kernels

The comprehensive API documentation for this module, including all technical details, is available in the Epydoc-generated API reference for mvpa.misc.fsl.flobs (for developers).

mvpa.misc.fsl.flobs.makeFlobs(pre=0, rise=5, fall=5, undershoot=5, undershootamp=0.29999999999999999, nsamples=1, resolution=0.050000000000000003, 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.

See also

Full API documentation of makeFlobs() in module mvpa.misc.fsl.flobs.