tedana.io
.save_comptable¶
-
save_comptable
(df, filename, label='ica', metadata=None)[source]¶ Save pandas DataFrame as a BIDS Derivatives-compatible json file.
- Parameters
df (
pandas.DataFrame
) – DataFrame to save to file.filename (
str
) – File to which to output DataFrame.label (
str
, optional) – Prefix to add to component names in json file. Generally either “ica” or “pca”.metadata (
dict
or None, optional) – Additional top-level metadata (e.g., decomposition description) to add to json file. Default is None.