ffrprep.group.merge_covariates¶
- ffrprep.group.merge_covariates(metrics, covariate_paths, return_sources=False)[source]¶
Left-join subject-level covariate TSVs onto a metrics table.
Each TSV needs a
participant_idcolumn (sub-<label>, as in a BIDSparticipants.tsvorphenotype/*.tsv). Columns already present inmetricsare not overwritten. Missing files are skipped with a warning.- Returns:
metricswith the covariate columns appended. Withreturn_sources=Truea(table, sources)tuple, wheresourcesmaps each appended column to the file it came from.- Return type: