tedana.metrics.external.load_validate_external_regressors
- load_validate_external_regressors(external_regressors: str, external_regressor_config: Dict, n_vols: int) Tuple[DataFrame, Dict][source]
Load and validate external regressors and descriptors in dictionary.
- Parameters:
- Returns:
external_regressors (
pandas.DataFrame) – Each column is a labelled regressor and the number of rows should match the number of timepoints in the fMRI time seriesexternal_regressor_config (
dict) – A validated dictionary with info for fitting external regressors to component time series. If regex patterns like ‘^mot_.*$’ are used to define regressor names, this is replaced with a list of the match column names used in external_regressors