Inheritance diagram for nipy.modalities.fmri.experimental_paradigm:
Bases: nipy.modalities.fmri.experimental_paradigm.Paradigm
Class to handle block paradigms
Methods
| write_to_csv(csv_file[, session]) | Write the paradigm to a csv file |
| Parameters: | con_id: array of shape (n_events), type = string, optional :
onset: array of shape (n_events), type = float, optional :
amplitude: array of shape (n_events), type = float, optional, :
|
|---|
Write the paradigm to a csv file
| Parameters: | csv_file: string, path of the csv file : session: string, optional, session identifier : |
|---|
Bases: object
Simple class to handle the experimental paradigm in one session
Methods
| write_to_csv(csv_file[, session]) | Write the paradigm to a csv file |
| Parameters: | con_id: array of shape (n_events), type = string, optional :
onset: array of shape (n_events), type = float, optional, :
amplitude: array of shape (n_events), type = float, optional, :
|
|---|
Write the paradigm to a csv file
| Parameters: | csv_file: string, path of the csv file : session: string, optional, session identifier : |
|---|
Read a (.csv) paradigm file consisting of values yielding (occurrence time, (duration), event ID, modulation) and returns a paradigm instance or a dictionary of paradigm instances
| Parameters: | path: string, :
session: string, optional, session identifier :
|
|---|---|
| Returns: | paradigm, paradigm instance (if session is provided), or :
|
Notes
It is assumed that the csv file contains the following columns: (session id, condition id, onset), plus possibly (duration) and/or (amplitude). If all the durations are 0, the paradigm will be handled as event-related.