Note
This page is a reference documentation. It only explains the function signature, and not how to use it. Please refer to the user guide for the big picture.
brainprep.interfaces.plotting.plot_pca¶
- brainprep.interfaces.plotting.plot_pca(pca_file, output_dir, dryrun=False)[source]¶
Plot the two first PCA components.
- Parameters:
- pca_fileFile
TSV file containing PCA two first components as two columns named
pc1andpc2, as well as BIDSparticipant_id,session, andrun.- output_dirDirectory
Directory where the result image will be saved.
- dryrunbool
If True, skip actual computation and file writing. Default False.
- Returns:
- pca_image_fileFile
Generated image with the two first PCA components.