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.
Changed in version 0.19.0:
file_nametofilenamekwargs (
dict) --Keyword arguments used when saving figures. Valid keywords include:
- dpi:
int, default=300 Dots per inch for the figure. Default is 300 if
output_diris provided anddpiis not specified.
- dpi:
- figsize:
tuple, default=(11, 5) Size of the figure in inches. Default is (11, 5) if
figsizeis not specified.
- figsize:
- bbox_inches:
strorNone, default="tight" Alters size of the whitespace in the saved image.
- bbox_inches:
- Returns:
self -- .. versionadded:: 0.19.3
Note
Parcellation Approach: the "nodes" and "regions" sub-keys are required in
parcel_approach.