pl-surfigures is a ChRIS
ds plugin which creates PNG figures visualizing MNI .obj surfaces
and vertex-wise data.
pl-surfigures works well for the outputs of
pl-surfdisterr
and pl-smoothness-error.
Any number of surfaces per subject is supported. For instance:
- 1 surface output from pl-fetal-surface-extract
- 2 surfaces, WM and GM from CLASP
- 3 or more surfaces from... anywhere, for whatever purpose
pl-surfigures is a ChRIS plugin, meaning it can
run from either within ChRIS or the command-line.
surfigures discovers inputs based on naming conventions.
Two conventions are supported:
- left and right surfaces are in the same directory, where file names contain either the words "left" or "right", in the same position. e.g.
subject001/wm_left.obj subject001/wm_right.obj - left and right surfaces are in sibling directories. File names are exactly the same, parent directory names must contain either the words "left" or "right", in the same position, e.g.
subject001-left/wm.obj subject001-right/wm.obj
To get started with local command-line usage, use Apptainer
(a.k.a. Singularity) to run pl-surfigures as a container:
apptainer exec docker://fnndsc/pl-surfigures surfigures [--args values...] input/ output/To print its available options, run:
apptainer exec docker://fnndsc/pl-surfigures surfigures --helpValid values for the options --font-color and --background-color are described here: https://imagemagick.org/script/color.php
Valid values for --color-map are described in colour_object -help.
gray, hot, hot_inv, cold_metal, cold_metal_inv, green_metal, green_metal_inv, lime_metal, lime_metal_inv, red_metal, red_metal_inv, purple_metal, purple_metal_inv, spectral, red, green, blue, label, rgba
surfigures requires two positional arguments: a directory containing
input data, and a directory where to create output data.
apptainer exec docker://fnndsc/pl-surfigures:latest surfigures incoming/ outgoing/For a dark theme:
apptainer exec docker://fnndsc/pl-surfigures:latest surfigures \
--font-color green1 --background-color black \
incoming/ outgoing/Let's say your vertex-wise data files use the file extensions .area.s5
and .depth.s5, where the range for values of .area.s5 data are between
0 and 1, and the range for values of .depth.s5 is -0.5 to 0.5.
Use the --range option to specify this. The format isfile_extension:min:max, multiple values are comma-delimited.
apptainer exec docker://fnndsc/pl-surfigures:latest surfigures \
--range .area.s5:0.0:1.0,.depth.s5:0.0:5.0 \
incoming/ outgoing/