neurocaps.extraction.TimeseriesExtractor.visualize_bold#
- TimeseriesExtractor.visualize_bold(subj_id, run, roi_indx=None, region=None, show_figs=True, output_dir=None, filename=None, **kwargs)[source]#
Plot the Extracted Subject Timeseries.
Uses the
self.subject_timeseriesto visualize the extracted BOLD timeseries data of data Regions of Interest (ROIs) or regions for a specific subject and run.- Parameters:
subj_id (
strorint) -- The ID of the subject.run (
intorstr) -- The run ID of the subject to plot.roi_indx (
int,str,list[int],list[int]orNone, default=None) -- The indices of the parcellation nodes to plot. See "nodes" inself.parcel_approachfor valid nodes.region (
strorNone, default=None) -- The region of the parcellation to plot. If not None, all nodes in the specified region will be averaged then plotted. See "regions" inself.parcel_approachfor valid region.show_figs (
bool, default=True) -- Display figures.output_dir (
os.PathLikeorNone, default=None) -- Directory to save plot as png image. The directory will be created if it does not exist. If None, plot will not be saved.filename (
strorNone, default=None) -- Name of the file without the extension.**kwargs --
Keyword arguments used when saving figures. Valid keywords include:
dpi:
int, default=300 -- Dots per inch for the figure.figsize:
tuple, default=(11, 5) -- Size of the figure in inches.bbox_inches:
strorNone, default="tight" -- Alters size of the whitespace in the saved image.
- Returns:
self
Note
Parcellation Approach: the "nodes" and "regions" sub-keys are required in
parcel_approach.