qc.vis.failcount.by.region: Visualize the number of outlier subjects per region in your...

View source: R/seg_stats.R

qc.vis.failcount.by.regionR Documentation

Visualize the number of outlier subjects per region in your dataset.

Description

The function helps you to see which regions are affected the most by QC issues: for each region, it plots the number of subjects which are outliers in the region.

Usage

qc.vis.failcount.by.region(
  qc_res,
  atlas,
  subjects_dir = fsaverage.path(),
  subject_id = "fsaverage",
  ...
)

Arguments

qc_res

hemilist of QC results, as returned by functions like qc.for.group or qc.from.segstats.tables.

atlas

string. The brain atlas to use. E.g., 'aparc' or 'aparc.a2009s'.

subjects_dir

string. The FreeSurfer SUBJECTS_DIR, i.e., a directory containing the data for all your subjects, each in a subdir named after the subject identifier.

subject_id

string. The subject identifier.

...

extra parameters passed to vis.region.values.on.subject. E.g., to change to interactive view, get a colorbar and better resolution, try: draw_colorbar=T, rgloptions = rglo(), views='si'.

Note

You can visualize this on any subject you like, 'fsaverage' is a typical choice. The atlas must be the one used during the QC step.


dfsp-spirit/nitools documentation built on Jan. 26, 2024, 8:24 p.m.