aslprep.interfaces.plotting module

Plotting interfaces.

class ASLCarpetPlot(from_file=None, resource_monitor=None, **inputs)[source]

Bases: SimpleInterface

Create a combined carpet/line plot for ASL time series data.

Copy the x-form matrices from hdr_file to out_file.

Mandatory Inputs:

in_nifti (a pathlike object or string representing an existing file) – Input BOLD (4D NIfTI file).

Optional Inputs:
  • confounds_file (a pathlike object or string representing an existing file) – BIDS’ _confounds.tsv file.

  • confounds_list (a list of at least 1 items which are a string or a tuple of the form: (a string, a string or None) or a tuple of the form: (a string, a string or None, a string or None) or None) – List of headers to extract from the confounds_file.

  • drop_trs (an integer) – Dummy scans. (Nipype default value: 0)

  • in_cifti (a pathlike object or string representing an existing file) – Input BOLD (CIFTI dense timeseries).

  • in_segm (a pathlike object or string representing an existing file) – Volumetric segmentation corresponding to in_nifti.

  • str_or_tuple (a string or a tuple of the form: (a string, a string or None) or a tuple of the form: (a string, a string or None, a string or None))

  • tr (a float or None) – The repetition time. (Nipype default value: None)

Outputs:

out_file (a pathlike object or string representing an existing file) – Written file path.

class CBFByTissueTypePlot(from_file=None, resource_monitor=None, **inputs)[source]

Bases: SimpleInterface

Prepare an CBF summary plot for the report.

Mandatory Inputs:
  • cbf (a pathlike object or string representing an existing file)

  • seg_file (a pathlike object or string representing an existing file) – Segmentation file.

Outputs:

out_file (a pathlike object or string representing an existing file) – Written file path.

class CBFSummaryPlot(from_file=None, resource_monitor=None, **inputs)[source]

Bases: SimpleInterface

Prepare an CBF summary plot for the report.

This plot restricts CBF values to -20 (if there are negative values) or 0 (if not) to 100.

Mandatory Inputs:
  • cbf (a pathlike object or string representing an existing file)

  • label (a string) – Label.

  • ref_vol (a pathlike object or string representing an existing file)

  • vmax (an integer) – Max value of asl.

Outputs:

out_file (a pathlike object or string representing an existing file) – Written file path.