run¶
Import in python using from mcot.core._scripts.to_dataframe_tree import run
-
mcot.core._scripts.to_dataframe_tree.run(tree: fsl.utils.filetree.filetree.FileTree, names: Sequence[str], vol_mask: str = None, surf_mask: str = None, join='inner', ignore_vars=('basename', 'name')) → pandas.core.frame.DataFrame[source]¶ Extracts the information from the files matching the named templates into a dataframe
Parameters: - tree – set of input files
- names – names matching templates in the tree
- vol_mask – volumetric NIFTI mask
- surf_mask – surface GIFTI mask
- join – How to join the dataframes from the different templates (use ‘outer’ to keep all data)
- ignore_vars – which variables to ignore
Returns: pandas dataframe with all the information of the NIFTI/GIFTI/CIFTI files