4.6. Marker#
4.6.1. Description#
The Marker
is an object that is responsible for feature extraction. It primarily operates on data loaded
in memory by Data Reader and stored in the data
key of each data type
in the Data object. In some cases, it can also operate on pre-processed data as obtained
from the Preprocess step of the pipeline. It is important to note that this pre-process is
not similar to pre-processing done by tools like FSL, SPM, AFNI, etc. . For example, one can perform confound
removal on loaded data and then perform feature extraction.
Markers are meant to be used inside the datagrabber context but you can operate on them outside the context as long as the actual data is in the memory and the Python runtime has not garbage-collected it.
If you are interested in using already provided markers, please go to Built-in Pipeline steps and data. And, if you want to implement
your own marker, you need to provide concrete implementation of BaseMarker
. Specifically, you
need to override get_output_type
, store
and compute
methods.