Inheritance diagram for nipy.modalities.fmri.design_matrix:
This module implements fMRI Design Matrix creation.
The DesignMatrix object is just a container that represents the design matrix. Computations of the different parts of the design matrix are confined to the make_dmtx() function, that instantiates the DesignMatrix object. All the remainder are just ancillary functions.
Design matrices contain three different types of regressors:
Author: Bertrand Thirion, 2009-2011
This is a container for a light-weight class for design matrices This class is only used to make IO and visualization
Methods
show([rescale, ax]) | Visualization of a design matrix |
write_csv(path) | write self.matrix as a csv file with appropriate column names |
Visualization of a design matrix
Parameters : | rescale: bool, optional :
ax: axis handle, optional :
|
---|---|
Returns : | ax: axis handle : |
write self.matrix as a csv file with appropriate column names
Parameters : | path: string, path of the resulting csv file : |
---|
Return a DesignMatrix instance from a csv file
Parameters : | path: string, path of the .csv file : |
---|---|
Returns : | A DesignMatrix instance : |
Make a design matrix while avoiding framework
Parameters : | see make_dmtx, plus : path: string, optional: a path to write the output : |
---|---|
Returns : | dmtx array of shape(nreg, nbframes): :
names list of strings of len (nreg) :
|
Generate a design matrix from the input parameters
Parameters : | frametimes: array of shape(nbframes), the timing of the scans : paradigm: Paradigm instance, optional :
hrf_model: string, optional, :
drift_model: string, optional :
hfcut: float, optional :
drift_order: int, optional :
fir_delays: array of shape(nb_onsets) or list, optional, :
add_regs: array of shape(nbframes, naddreg), optional :
add_reg_names: list of (naddreg) regressor names, optional :
|
---|---|
Returns : | DesignMatrix instance : |